Click here to Skip to main content
15,891,607 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Hierachial Structure in Asp Pin
Anonymous27-Apr-05 17:16
Anonymous27-Apr-05 17:16 
GeneralReading and Printing PDF files Pin
brian5527-Apr-05 0:14
brian5527-Apr-05 0:14 
GeneralRe: Reading and Printing PDF files Pin
Yulianto.27-Apr-05 15:55
Yulianto.27-Apr-05 15:55 
GeneralRe: Reading and Printing PDF files Pin
brian556-May-05 11:57
brian556-May-05 11:57 
GeneralDropdownlist problems Pin
brian5527-Apr-05 0:12
brian5527-Apr-05 0:12 
Questionhow to draw a transparent rect in vml? Pin
ganeshMohan26-Apr-05 23:33
ganeshMohan26-Apr-05 23:33 
Generalopen new browser window with c# Pin
ABBASI_RA26-Apr-05 15:17
ABBASI_RA26-Apr-05 15:17 
GeneralRe: open new browser window with c# Pin
Torsten Mauz30-Apr-05 0:51
Torsten Mauz30-Apr-05 0:51 
Hi,

if you need to do it in c# (i.e. server side) then in the buttons click event handler you can add a startup script....

e.g.
protected void Button_OnClick(object sender, System.EventArgs e)
{
    Page.RegisterStartupScript("NewWinScript", "<script>window.open('someurl.aspx');</script>");
}

Then when the postback occurs and the click event fires the page will emit javascript to open the window.

However, unless you genuinely need to have a postback occur, you'd be better off just handling this purely on the client (saves a server round trip)....

e.g.
<input type="button" id="btnOpenWin" value="Open Window" onclick="window.open('someurl.aspx');">


HTH
GeneralLong-term web-development: Win/MS or Linux/open src Pin
Vlad Gabovich26-Apr-05 5:21
Vlad Gabovich26-Apr-05 5:21 
GeneralRe: Long-term web-development: MS or Linux Pin
NewSilence26-Apr-05 7:09
NewSilence26-Apr-05 7:09 
GeneralRe: Long-term web-development: MS or Linux Pin
Vlad Gabovich26-Apr-05 7:38
Vlad Gabovich26-Apr-05 7:38 
GeneralRe: Long-term web-development: MS or Linux Pin
DavidNohejl26-Apr-05 8:18
DavidNohejl26-Apr-05 8:18 
GeneralRe: Long-term web-development: MS or Linux Pin
NewSilence26-Apr-05 8:41
NewSilence26-Apr-05 8:41 
QuestionIs HTTP GET method secure over HTTPS? Pin
Anonymous25-Apr-05 17:18
Anonymous25-Apr-05 17:18 
AnswerRe: Is HTTP GET method secure over HTTPS? Pin
JKroschel26-Apr-05 3:38
JKroschel26-Apr-05 3:38 
Generalmirroring sql server 2000 database Pin
Rajesh_K_Sharma25-Apr-05 2:58
Rajesh_K_Sharma25-Apr-05 2:58 
GeneralConfiguration Error - .NET, Web Pin
Pete Belcher25-Apr-05 0:53
Pete Belcher25-Apr-05 0:53 
GeneralRe: Configuration Error - .NET, Web Pin
Pete Belcher4-May-05 3:33
Pete Belcher4-May-05 3:33 
Generalpage cannot be displayed... Pin
Anonymous24-Apr-05 22:06
Anonymous24-Apr-05 22:06 
GeneralRe: page cannot be displayed... Pin
Noorl24-Apr-05 22:08
Noorl24-Apr-05 22:08 
GeneralRe: page cannot be displayed... Pin
Yulianto.24-Apr-05 22:47
Yulianto.24-Apr-05 22:47 
QuestionHow to access relational tables in asp.net Pin
Anonymous24-Apr-05 8:14
Anonymous24-Apr-05 8:14 
GeneralPreload Images with Javascript. Need Help. Thank You. Pin
shapper24-Apr-05 3:57
shapper24-Apr-05 3:57 
Generaldynamic content according to date Pin
SouthernFried22-Apr-05 11:40
sussSouthernFried22-Apr-05 11:40 
Generalsharepoint login Pin
JKroschel22-Apr-05 7:28
JKroschel22-Apr-05 7:28 

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.