Solved

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

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn different types of Android Layout and some basics of an Android App.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Starting up a Project

688 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