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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -