asp.net - Displayng javascript pop up from VB code -


using vs 2013 , asp.net vb.

i using javascript display pop user if data missing form need complete. code below

passing string sub

notification("alert('please complete fields in section.')") 

the sub

    public sub notification(byval text string)      dim script string = text     if not page.clientscript.isstartupscriptregistered(me.gettype(), "alertscript")         page.clientscript.registerstartupscript(me.gettype(), "alertscript", script, true)      end if  end sub 

i following error

javascript critical error @ line 500, column 53 in http://localhost:61157/newncr.aspx\n\nscript1004: expected ';'

the thing have used same piece of code in previous application , works fine. missing something?


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -