Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi guys,

 

When i move between two pages i am using the Response.Redirect command, however in some cases i would like to be able to open up a new window. Any suggestions??

 

mike55

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted
Anyone got some code that will do it???

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted
Anyone got some code that will do it???

i cant speak for everyone coding style, but i add the js into the <body> tag

 

so i have on the aspx page

<body id="bTag" runat="server">

 

and in the code, i can add attributes to it:

bTag.Attributes.Add("onLoad","window.open('page2.aspx');")

 

that's how i'd do it

If you make it idiot proof, they'll build a better idiot :-)
Posted

Thanks for the way of doing it, even if I didn't asked.

Wasn't informed that you could call a window open from the server(well... you know what I want to say... inserting javascript from the server to open a window).

 

Thanx

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

  • Moderators
Posted
Arch4ngel, yes you can insert the JS from your server code but the execution must still be from a client side event for example OnClick of a control, OnLoad of the Body etc....
Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...