vb.net - Code Behind Client Side Alert -
i previous asked assistance don't think ask right question. new coding & have web app form on has yes/no dropdown & textbox after reason. managed write code behind msgbox need on client side. know it's not complicated thihk. code behind used server side msgbox:
protected sub submitbutton_click(sender object, e event args) handles submitbutton.click if criticallist.text = "yes" if textbox13.text <> "" sqldatasource1.insert() response.redirect("formsreport.aspx") else msgbox("if critical, must provide reason.") end if else sqldatasource1.insert() response.redirect("formsreport.aspx") end if end sub
can someone, please give me guidance of how write client side alert? preferably in code behind.
dim message string = "if critical, must provide reason." dim script string = "<script type='text/javascript'> alert('" + message + "');</script>"
correction above this
clientscript.registerclientscriptblock(me.gettype(), "alertbox", script)
dont forget single qouts @ alert code
Comments
Post a Comment