Adding dynamic script to HTML with VB.Net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm creating javascript code in VB Code and need it to be in my HTML code. How can I do this? I've tried "RegisterClientScriptBlock" from VB, but that doesn't seem to work.
 
It should work. I've done scenarios like that.
Maybe show us some code and give us more details about exactly what is not
working and/or what error messages you're getting.

You can output any javascript dynamically from your .NET code behind using
such function as:

RegisterStartupScript:
http://msdn.microsoft.com/library/d...mWebUIPageClassRegisterStartupScriptTopic.asp

RegisterClientScriptBlock:
http://msdn.microsoft.com/library/d...UIPageClassRegisterClientScriptBlockTopic.asp

Attributes.Add:
http://www.flws.com.au/showusyourcode/codeLib/code/NET_jsAddTo.asp?catID=5

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



Greg Park said:
I'm creating javascript code in VB Code and need it to be in my HTML code.
How can I do this? I've tried "RegisterClientScriptBlock" from VB, but that
doesn't seem to work.
 
Back
Top