May 11, 2010, 5:34 AM
[CLOSED] TextField Reset Text from ServerSide Not Working
hi,
why after I clear the TextField Text in the server side "TextField.Clear()" it's not working??
same thing when I try to set it also...
i.e.,
Markup:
Please Help ASAP.
why after I clear the TextField Text in the server side "TextField.Clear()" it's not working??
same thing when I try to set it also...
i.e.,
Markup:
<ext:Button runat="server" ID="btnAdd" Icon="Add" FieldLabel="Add">
<DirectEvents>
<Click OnEvent="btnAdd_Click" ></Click>
</DirectEvents>
</ext:Button>
<ext:TextField runat="server" ID="txtName" FieldLabel="Name" />
Code Behind:protected void btnAdd_Click(object sender, EventArgs e)
{
txtName.Text = "Any New Text";
}
Its not always an option for me to use "this.getForm().reset();" in which server side controls reset serve critical requirements for me. Please Help ASAP.