?
Solved

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

Posted on 2004-10-04
4
Medium Priority
?
284 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 100 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 100 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

800 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