Originally Posted by jackster
sadly you have missed the point of asp.net
you are using traditional html tags which renders asp.net useless.
read up on server controls.
<form runat=server>
<asp:button id=button1 runat=server>
</form>
--
in the page load add:
button1 .Attributes.Add("onclick", "whatEverYouWantTheJavaSciptToDo");
i think this is right
if you wanna learn .net
buy ASP.NET for Beginners using c# from WROX
jack
www.ansariltd.com
Actually I didn't think I missed the point. The question was simple and answered. No requirements were stated. And besides that
OnClick could have contained
="Load_NewPage()" which points to a
Load_NewPage() function (or method) in the C# code behind. I just gave the suggestion as a general means of doing it.
But then again, he can use whatever method he wants!