p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

aspdotnet_website_programming thread: Accessing the onLoad Javascript event from .NET

Message #1 by "Phillip" <phillipurrea@h...> on Thu, 20 Feb 2003 12:45:13
Hi all, 
I'm having a bit of a problem being able to set the onLoad event 
programmatically from .NET. I'm obviously able to edit the aspx page and 
add in <body onload="doOnLoad()"> but I need to be able to pass in 
parameters to the function. Is there any way of doing this, perhaps 
similarly to the way its done for a control. i.e iTextBox.Attributes.Add
("onclick", "doOnClick");

  Return to Index