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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -