c# - webapplication return label with text without AutoPostBack? -
is possible return label validation error text without autopostback? i'm working on login systems of heracles.nl football club in netherlands.
i have tried following:
protected void submitbutton_onclick(object sender, eventargs e){ int numberonly; if(!int.tryparse(wstextbox.text, out numberonly) || wstextbox.text.length != 8 || wtstextbox.text.substring(0, 2) != "25"){ // create message here!! return; } }
i solved problem updatepanels.. thanks. had ordinary panels, converted them updatepanels , worked out pretty :)
put update panel:
<asp:updatepanel> <contenttemplate> put buttons , labels here. </contenttemplate> </asp:updatepanel>
:)
Comments
Post a Comment