Click here to Skip to main content
15,896,063 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: aspx page in iframe reloading issues Pin
Abhishek Sur2-Dec-09 4:45
professionalAbhishek Sur2-Dec-09 4:45 
GeneralRe: aspx page in iframe reloading issues Pin
robustm2-Dec-09 5:08
robustm2-Dec-09 5:08 
QuestionHow to open URL in new browser window Pin
Nekkantidivya2-Dec-09 1:08
Nekkantidivya2-Dec-09 1:08 
AnswerRe: How to open URL in new browser window Pin
Dinesh Mani2-Dec-09 1:25
Dinesh Mani2-Dec-09 1:25 
AnswerRe: How to open URL in new browser window Pin
sumit70342-Dec-09 1:43
sumit70342-Dec-09 1:43 
AnswerRe: How to open URL in new browser window Pin
Abhishek Sur2-Dec-09 1:48
professionalAbhishek Sur2-Dec-09 1:48 
AnswerRe: How to open URL in new browser window Pin
Gamzun2-Dec-09 3:19
Gamzun2-Dec-09 3:19 
AnswerRe: How to open URL in new browser window Pin
Christopher Duncan2-Dec-09 4:08
Christopher Duncan2-Dec-09 4:08 
Of course, when you're using a hyperlink or a linkbutton you can just set the target, and of course as others have mentioned, there's always javascript. That said, if you really need to use a button, or any other scenario where you want a new window to be fired up from an event handler in your code, this trick might be helpful.

On your page (or on your master page) find the form by its ID:

<br />
HtmlForm frm = Page.FindControl("YourFormID") as HtmlForm;<br />
if (null != frm)<br />
{<br />
// this will cause the links to open in a new window<br />
frm.Target = "_blank";<br />
}<br />


Hope this helps -


QuestionCell Format in excel. [modified] Pin
dayakar_dn2-Dec-09 0:34
dayakar_dn2-Dec-09 0:34 
AnswerRe: Cell Format in excel. Pin
Dinesh Mani2-Dec-09 0:46
Dinesh Mani2-Dec-09 0:46 
AnswerRe: Cell Format in excel. Pin
Abhishek Sur2-Dec-09 3:09
professionalAbhishek Sur2-Dec-09 3:09 
AnswerRe: Cell Format in excel. Pin
Gamzun2-Dec-09 3:20
Gamzun2-Dec-09 3:20 
QuestionThe server rejected one or more recipient addresses. The server response was: 501 5.5.4 Invalid Address Pin
Amit Spadez1-Dec-09 23:43
professionalAmit Spadez1-Dec-09 23:43 
AnswerRe: The server rejected one or more recipient addresses. The server response was: 501 5.5.4 Invalid Address Pin
Abhijit Jana1-Dec-09 23:47
professionalAbhijit Jana1-Dec-09 23:47 
GeneralRe: The server rejected one or more recipient addresses. The server response was: 501 5.5.4 Invalid Address Pin
Amit Spadez1-Dec-09 23:49
professionalAmit Spadez1-Dec-09 23:49 
GeneralRe: The server rejected one or more recipient addresses. The server response was: 501 5.5.4 Invalid Address Pin
Abhijit Jana2-Dec-09 0:01
professionalAbhijit Jana2-Dec-09 0:01 
GeneralRe: The server rejected one or more recipient addresses. The server response was: 501 5.5.4 Invalid Address Pin
Amit Spadez2-Dec-09 0:39
professionalAmit Spadez2-Dec-09 0:39 
QuestionHTTP 500 Internal Server Error Pin
Aman Bhullar1-Dec-09 23:29
Aman Bhullar1-Dec-09 23:29 
AnswerRe: HTTP 500 Internal Server Error Pin
Abhijit Jana1-Dec-09 23:34
professionalAbhijit Jana1-Dec-09 23:34 
GeneralRe: HTTP 500 Internal Server Error Pin
Amit Spadez1-Dec-09 23:50
professionalAmit Spadez1-Dec-09 23:50 
GeneralRe: HTTP 500 Internal Server Error Pin
Abhijit Jana2-Dec-09 0:02
professionalAbhijit Jana2-Dec-09 0:02 
QuestionBack Button is not working in IE Popup Window Pin
sam#1-Dec-09 23:29
sam#1-Dec-09 23:29 
AnswerRe: Back Button is not working in IE Popup Window Pin
Dinesh Mani1-Dec-09 23:38
Dinesh Mani1-Dec-09 23:38 
GeneralRe: Back Button is not working in IE Popup Window Pin
sam#1-Dec-09 23:41
sam#1-Dec-09 23:41 
GeneralRe: Back Button is not working in IE Popup Window Pin
Dinesh Mani2-Dec-09 0:14
Dinesh Mani2-Dec-09 0:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.