vb.net - Javascript alert for ASP.NET (VB) will not appear? -
for reason message box not show up. type in code 0 errors, run page, click button, , nothing happens. idea what's going on?
here code:
protected sub btncheckin(byval sender object, byval e system.eventargs) dim message string = "checked-in!" dim sb new system.text.stringbuilder() sb.append("<script type = 'text/javascript'>") sb.append("window.onload=function(){") sb.append("alert('") sb.append(message) sb.append("')};") sb.append("</script>") clientscript.registerclientscriptblock(me.gettype(), "alert", sb.tostring()) end sub
Comments
Post a Comment