currenly I worked on a project with heavy javascript, do all the logic at client side, that mean manipulate form field values using javascipt, but when I post back to server I cant get the value on server side. example below:
Aspx
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:Button ID="Button1" runat="server" Text="Button" />
<script type="text/javascript">
$("#<%= Label1.ClientId %>").html("200");
</script>
code behind
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Response.Write(Label1.Text)
End Sub
I have manipulate the values using javascript, but when click the button post back, I still get "Label". I not sure whether is the viewstate issue, I have try to turn off the viewstate of the control but the result is still same.