Solved

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

Posted on 2004-10-04
4
241 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
seriesUp challenge 7 107
java constructor error 8 88
countX 22 70
Exe program is not a valid Win 32 application 15 95
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now