I have an html form with hidden values empty like below
<body>
<form runat="server" id="PostToMPI" name="PostToMPI" method="post" action="https://www.e-tahsildar.com.tr/V2/NetProvOrtakOdeme/NetProvPost.aspx" >
<asp:HiddenField ID="pHashB64" runat="server" Value="" />
<asp:HiddenField ID="pHashHex" runat="server" Value="" />
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
</form>
in the c#
protected void Button1_Click(object sender, EventArgs e)
{
pHashB64.Value = "calculated value";
pHashHex.Value = "calculated value";
}
it is using post method. when the user clicks the button, I am calculating the values set them to the hidden fields.
I am wondering if it submits the form before it sets the hidden fields? I mean that I am posting with empty fields?
thank you