User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 426,412 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,362 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

Button to open a new browser window

Join Date: Jun 2004
Posts: 32
Reputation: jackster is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
jackster jackster is offline Offline
Light Poster

Re: Button to open a new browser window

  #3  
Jun 18th, 2004
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
Reply With Quote  
All times are GMT -4. The time now is 1:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC