Text field set value from Client
Hello,
I have a text field:
Code:
<TextField ID="EmailNoVer" EnableKeyEvents="true" runat="server" FieldLabel="Email"
AllowBlank="false" BlankText="Edit your correct email." Text="" Icon="Email"
Regex="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"
RegexText="Email is not well formed"
Width="350">
</TextField>
In codebehind I set its value like this:
Code:
EmailNover.Text="Some Text";
Then the user reads correctly that value and change it. Then clicks a button which calls a direct event on click. If I try then to store this NEW value to my database I cant because it keeps its old value.
Code:
dbvar.email = EmailNoVer.Text;