I want to use vb script in asp.net using c#.How can i use
vb script in asp.net
Collapse
X
-
Tags: None
-
Two ways to do............
go to Html Page and put Ur Code.........in between the Head tag
or write in webform.aspx.vb like below
it is javascript example u can use same model for vbscript also.......just put ur code inside javascript.appe nd().
Dim scriptkey As KeyRestrictionB ehavior
Dim javaScript As New System.Text.Str ingBuilder
Dim script
javaScript.Appe nd("<script language=javaSc ript>" + ControlChars.Lf )
javaScript.Appe nd("<!--" + ControlChars.Lf )
javaScript.Appe nd("alert('mla' );" + ControlChars.Lf )
javaScript.Appe nd("// -->" + ControlChars.Lf )
javaScript.Appe nd("</script>" + ControlChars.Lf )
RegisterStartup Script(scriptKe y, javaScript.ToSt ring())
Davidson
8 March 2008
Comment