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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -