Groups | Blog | Home
all groups > asp.net > january 2004 >

asp.net : Adding dynamic script to HTML with VB.Net


Greg Park
1/17/2004 10:11:05 PM
Steve C. Orr [MVP, MCSD]
1/17/2004 11:10:32 PM
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/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassRegisterStartupScriptTopic.asp

RegisterClientScriptBlock:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassRegisterClientScriptBlockTopic.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" <INVALIDgp@INVALID_PLEASE DONT_SPAMMEdaniacorp.com> wrote in
message news:336C5372-B8EB-4D88-923A-D9A60CD67EED@microsoft.com...
[quoted text, click to view]
How can I do this? I've tried "RegisterClientScriptBlock" from VB, but that
doesn't seem to work.

AddThis Social Bookmark Button