Hello ,
I am using web matrix and c#.
I want to open a new browser from a button click.
How can I do that?
Thanks in advance.
Steve
steven
0
Newbie Poster
Recommended Answers
Jump to PostOne way is with a JScript function in the OnClick event for a button.
<form id="Form1"> <INPUT Type="button" OnClick="window.open('http://www.google.ca')" value="enter"> </form>
That help?
Jump to Postsadly 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>
…
Jump to Postyou are using traditional html tags which renders asp.net useless.
read up on server controls.
I would consider myself a professional ASP.NET Web Developer, and I use HTML over ASP.NET Controls wherever I can. This is taught; the less controls, the less …
Jump to Postsadly 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 …
All 13 Replies
Paladine
138
Master Poster
Team Colleague
jackster
0
Light Poster
Tekmaven
258
Software Architect
Team Colleague
Paladine
138
Master Poster
Team Colleague
jackster
0
Light Poster
Paladine
138
Master Poster
Team Colleague
Tekmaven
258
Software Architect
Team Colleague
tidustr
0
Newbie Poster
f1 fan
16
Posting Whiz in Training
humhaingaurav
0
Newbie Poster
leester39
0
Newbie Poster
k4kasun
0
Newbie Poster
dbeura
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.