Hi Ben,
Thanks for your followup. Well, let's focus on the client side scripting
for control in asp.net. In fact, we use the WebServer's Attributes
Collection to register clientside script handler is because ASP.NET
webserver control doesn't
support write clienside event handler inline in html source such as
<input type=button onclick="" />
Of course you can register a "onload" clienside event for page as
<body onload="..">
because <body > tag is an plain html element rather than server control. In
addition, if you still want the inline style client side event registering,
I think you can take a look at the ASP.NET 's HtmlServerControls, they're
more similar to the plain HTML element and we can register their clientside
events in Page's HTML source inline. Here is the reference in MSDN on the
ASP.NET HtmlServerControls:
#HTML Server Controls
http://msdn.microsoft.com/library/en...syntaxforhtmlc
ontrols.asp?frame=true
#Adding HTML Server Controls to a Web Forms Page
http://msdn.microsoft.com/library/en...HTMLControlsTo
WebFormsPage.asp?frame=true
#The Forgotten Controls: HTML Server Contro
http://msdn.microsoft.com/library/en...gottenControls
..asp?frame=true
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx