c# - Upon Button Click Display Pop-Up for Certain Time and then Redirect Page - ASP.NET -


i have form. upon clicking submit button, want display message (say: ""submitted successfully) pop-up. pop-up must stay 3 seconds , after want reload/redirect page.

i aware can achieve using jquery. want know if there way achieve through asp.net/c# can write in cs file of aspx page.

how achieve this?

below button-click method have written currently. notice code: thread.sleep(3000) - during 3 second delay want show pop-up.

protected void btnsubmit_click(object sender, eventargs e) {     sqlconnection con = new sqlconnection(configurationmanager.connectionstrings["defaultconnection"].connectionstring);     con.open();      sqlcommand cmd = new sqlcommand("insert demo_userinfo values (@userid, 'fx1234', (select releaseid demo_releaseinfo productname='asd'), 0)", con);      cmd.parameters.addwithvalue("@userid", txtuserid.text);      cmd.executenonquery();     con.close();              thread.sleep(3000);     response.redirect("~/admin/mapreleaseitem.aspx"); } 

you can put loader instead this article can you


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -