Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starting Page in new Browser window
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00878832
Message ID:
00878992
Views:
41
>>I feel like an idiot because I'm sure the answer is staring me in the face.
>>
>>I use Response.Redirect() to fire a new page off in the current browser window.
>>How do I fire the new page off in a new browser window?
>>
>>thank you in advanced.
>
>Put target="_blank" in your link tag or form tag.

Giving all the information up front would save some time.

This is not an option. I have a DataList driven menu system. My menu options reside in a SQL Serve table. I have a custom control on each page that queries that mennu table and builds the menu based on the page. When the user selects a menu option, a method is run with the page that needs to be displayed as a parameter.

private void datlstMenuPage_ItemCommand(object source, System.Web.UI.WebConstrols.DataListCommandEventArgs e)
{
string lcCmd = e.CommandArgument.ToString().Trim().ToUpper() ;
if (lcCmd.Substring(0,4)=="HTTP")
{
// calling different web site
Response.Redirect(lcCmd,true)
// Need code here instead of redirect to open new window for the site passed.
}
else
{
// calling page from this site
Response.Redirect(lcCmd,true)
}
}
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform