D
Dan
Hi,
In my simple web control I am trying to add the following script onto the page
Protected Overrides Sub AddAttributesToRender(ByVal writer As System.Web.UI.HtmlTextWriter)
Page.RegisterClientScriptBlock("ccr", "<SCRIPT Language=VBScript>" & vbCrLf & _
"function test(inp)" & vbCrLf & _
" alert ""hi"" " & vbCrLf & _
"end function")
MyBase.AddAttributesToRender(writer)
End Sub
I want this rendered out in to the page containing the web control.
But the script isnt rendering. I am using VS.NET 2003 w/ framework 1.1.
Can anyone help me out. Whats going wrong?
btw the web controls are still rendering fine.
In my simple web control I am trying to add the following script onto the page
Protected Overrides Sub AddAttributesToRender(ByVal writer As System.Web.UI.HtmlTextWriter)
Page.RegisterClientScriptBlock("ccr", "<SCRIPT Language=VBScript>" & vbCrLf & _
"function test(inp)" & vbCrLf & _
" alert ""hi"" " & vbCrLf & _
"end function")
MyBase.AddAttributesToRender(writer)
End Sub
I want this rendered out in to the page containing the web control.
But the script isnt rendering. I am using VS.NET 2003 w/ framework 1.1.
Can anyone help me out. Whats going wrong?
btw the web controls are still rendering fine.