Solved

Open A Html Page in New Window using javascript with Asp.Net

Posted on 2004-10-04
4
277 Views
Last Modified: 2010-04-17
Hi all,
I am New To Asp
In Asp.Net i have a button btnShow. And I also have few option button of same group name. I want to know that

' if i checked any one of the option button and then click btnShow, then that must lead me to open a new blank page and it should load a .html file '

Advance Thanx
Nalinkumarbalaji.Shanmugam
0
Comment
Question by:Nalinkumarbalaji
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 25 total points
ID: 12224242
Hi Nalinkumarbalaji,

Can you put this inside the button? onclick="window.open('yourhtml.html','myWin','width=200,height=200');"

Regards,
Zyloch
0
 
LVL 1

Assisted Solution

by:muellerfan
muellerfan earned 25 total points
ID: 12228591
If your button does not have "runat=server" in it, then the above will work.  Otherwise, in your code behind, you will need to add the following to the page_load function:

btnShow.Attributes.Add("onclick","window.open('yourhtml.html','myWin','width=200,height=200');return false;");
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question