RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

Button to open a new browser window

Join Date: Feb 2003
Location: Canada
Posts: 786
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Rep Power: 9
Solved Threads: 25
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Solution Re: Button to open a new browser window

  #6  
Jun 21st, 2004
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!

Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:05 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC