Ask a Question related to ASP, Design and Development.
-
Dwayne #1
response.redirect
I use Respose.Redirect quite a bit but on one of my pages
it has an odd behavior. Any time I use it on this page it
will come up in a new Window. I didn't even think this
was an option and can't find how to turn it on or off.
Using Response.Redirect("Newpage.aspx");
to add to this it has another odd behavior.
Start on "Page1"
redirect to "Page2"
Redirect back to "Page1" at this point I get a new window
Using the new window now the redirects work as expected
replaceing the previous page (On the new window), and
even repeatedly using the same redirect it will not bring
up a new page.
If I go Back to the original window, hitting the redirect
button now affects the new window, not the original
Anyone have any ideas????
Dwayne Guest
-
asp response.redirect
> FORM ACTION="Goto_yahoo" must be Goto_yahoo.asp -
Response.Flush / Response.Redirect
Hi, I've had a good google and can't find anything already on this so : I'm currently trying to have a 'Page Loading' page on a site. The way... -
response.redirect?
Is it possible to set a interval for response.redirect? SOmething you see on different forums. I've written a page where the people can change there... -
Response.Write and Response.Redirect
On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous... -
Redirect to New Browser Window like Response.Redirect
That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in... -
Dwayne Goerges #2
Re: response.redirect
Checked for BASE TARGET its not on either of the pages I'm redirecting
to.
Unfortunatly the pages are on a secured website so I can't give access
to them :(
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Dwayne Goerges Guest
-
dwayne #3
Re: response.redirect
Found it I had target="_blank" in the body tag
Thanks Dwayne
maybe you could show>-----Original Message-----
>Any chance there is a <BASE TARGET tag in the page? Orourselves?>us the page in question so we could see the symptompages>
>
>
>
>>> I use Respose.Redirect quite a bit but on one of myit>> it has an odd behavior. Any time I use it on this pagewindow>> will come up in a new Window. I didn't even think this
>> was an option and can't find how to turn it on or off.
>>
>> Using Response.Redirect("Newpage.aspx");
>>
>> to add to this it has another odd behavior.
>> Start on "Page1"
>> redirect to "Page2"
>> Redirect back to "Page1" at this point I get a newbring>> Using the new window now the redirects work as expected
>> replaceing the previous page (On the new window), and
>> even repeatedly using the same redirect it will notredirect>> up a new page.
>> If I go Back to the original window, hitting the>>> button now affects the new window, not the original
>>
>> Anyone have any ideas????
>
>.
>dwayne Guest
-
C #4
Response.Redirect
Hi,
I have a Popup window where a user inputs soem data.
On successfully entering this data I redirect the user to
a page in the same popup indicating that the form has
submitted successfully.
I want to resize the page that I redirect the user to.
Is this possible in ASP?
Thanks,
C
C Guest
-
Ray at #5
Re: Response.Redirect
No, it's not possible with ASP, becuase it doesn't know what a "window" is.
You can only do something like that using client-side code such as
Javascript. Try a group like .scripting.jscript.
Ray at home
"C" <anonymous@discussions.microsoft.com> wrote in message
news:0d3601c3930a$cd116090$a301280a@phx.gbl...> Hi,
>
> I have a Popup window where a user inputs soem data.
>
> On successfully entering this data I redirect the user to
> a page in the same popup indicating that the form has
> submitted successfully.
>
> I want to resize the page that I redirect the user to.
>
> Is this possible in ASP?
>
> Thanks,
> C
Ray at Guest
-
Paul #6
Response.redirect
I'm not getting the results I want when I use
Response.Redirct in a ASP page.
I enter this line of code in a asp page from domain1.com.
Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
& "?PubID=" & PubID & "&PubName=" & PubName
The query string is data to open a DB. the page displays
but the DB does not open.
That's because when it redirects I notice in the address
bar of IE that it looks like this
[url]http://www.domain1.com/VDIR1/table.asp?[/url]
PubID=100&PubName=thename
I told it to redirect to domain2 but I see domain1 in the
address bar.
If I type out the URL to domain2 with all the params
everything works fine, so the problem is with how I am
redirecting there.
The redirect above is inside an IF statement which says if
the PubID is less then 100 I go to the table.asp page on
domain2.com else I stay with table.asp on domain1.com
Any ideas
PAul
Paul Guest
-
Adrienne #7
Re: Response.redirect
Gazing into my crystal ball I observed "Paul"
<anonymous@discussions.microsoft.com> writing in news:06ce01c39447$98c015a0
$a101280a@phx.gbl:
What happens if you response.write in the IF statement?> I'm not getting the results I want when I use
> Response.Redirct in a ASP page.
>
> I enter this line of code in a asp page from domain1.com.
>
>
> Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
> & "?PubID=" & PubID & "&PubName=" & PubName
>
> The query string is data to open a DB. the page displays
> but the DB does not open.
>
> That's because when it redirects I notice in the address
> bar of IE that it looks like this
>
> [url]http://www.domain1.com/VDIR1/table.asp?[/url]
> PubID=100&PubName=thename
>
> I told it to redirect to domain2 but I see domain1 in the
> address bar.
>
> If I type out the URL to domain2 with all the params
> everything works fine, so the problem is with how I am
> redirecting there.
>
> The redirect above is inside an IF statement which says if
> the PubID is less then 100 I go to the table.asp page on
> domain2.com else I stay with table.asp on domain1.com
>
> Any ideas
>
> PAul
>
if pubid < 100 then
response.write "I am going to domain2"
else
response.write "I staying right here"
end if
Is Pubid really a number, or is it a string? If it's a string, convert it
to a number, and then test it.
--
Adrienne Boswell
Please respond to the group so others can share
[url]http://www.arbpen.com[/url]
Adrienne Guest
-
Paul #8
Re: Response.redirect
If I do the test you suggested it works as expected. and
yes PubId is a number.
The If statement works correctly, if pubID > 100 I stay on
my IIS server, if PubID < 100 I redirect to another IIS
server someplace else. the problem occurs when PubId < 100
and I redirect using this line of code:
Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
& "?PubID=" & PubID & "&PubName=" & PubName
When PubId < 100 I see In the IE address bar the redirect
above with the acception that [url]www.domain2.com[/url] is replaced
with [url]www.domain1.com[/url].
domain1 is my domain, It points to my IIS server, domain2
is somebody elses IIS server that I need to redirect to.
When PubID < 100 and things fail, I merely need to edit
the address bar URL by changing domain1.com to domain2.com
and hit return. Then I get what I want.
So some how even though I redirect to domain2 something is
replacing it with domain1.
news:06ce01c39447$98c015a0>-----Original Message-----
>Gazing into my crystal ball I observed "Paul"
><anonymous@discussions.microsoft.com> writing indomain1.com.>$a101280a@phx.gbl:
>>> I'm not getting the results I want when I use
>> Response.Redirct in a ASP page.
>>
>> I enter this line of code in a asp page fromResponse.Redirect "http://www.domain2.com/VDIR2/table.asp">>
>>
>>displays>> & "?PubID=" & PubID & "&PubName=" & PubName
>>
>> The query string is data to open a DB. the pageaddress>> but the DB does not open.
>>
>> That's because when it redirects I notice in thethe>> bar of IE that it looks like this
>>
>> [url]http://www.domain1.com/VDIR1/table.asp?[/url]
>> PubID=100&PubName=thename
>>
>> I told it to redirect to domain2 but I see domain1 inif>> address bar.
>>
>> If I type out the URL to domain2 with all the params
>> everything works fine, so the problem is with how I am
>> redirecting there.
>>
>> The redirect above is inside an IF statement which sayson>> the PubID is less then 100 I go to the table.asp pagestring, convert it>>> domain2.com else I stay with table.asp on domain1.com
>>
>> Any ideas
>>
>> PAul
>>
>What happens if you response.write in the IF statement?
>
>if pubid < 100 then
>response.write "I am going to domain2"
>else
>response.write "I staying right here"
>end if
>
>Is Pubid really a number, or is it a string? If it's a>to a number, and then test it.
>
>--
>Adrienne Boswell
>Please respond to the group so others can share
>[url]http://www.arbpen.com[/url]
>.
>Paul Guest
-
Paul #9
Re: Response.redirect
I just figured it out.
You need to do a Response.Clear before you redirect to
another server.
Thanks anyway
on>-----Original Message-----
>If I do the test you suggested it works as expected. and
>yes PubId is a number.
>
>The If statement works correctly, if pubID > 100 I stay100>my IIS server, if PubID < 100 I redirect to another IIS
>server someplace else. the problem occurs when PubId <>and I redirect using this line of code:
>
>Response.Redirect "http://www.domain2.com/VDIR2/table.asp"domain2.com>& "?PubID=" & PubID & "&PubName=" & PubName
>
>When PubId < 100 I see In the IE address bar the redirect
>above with the acception that [url]www.domain2.com[/url] is replaced
>with [url]www.domain1.com[/url].
>
>domain1 is my domain, It points to my IIS server, domain2
>is somebody elses IIS server that I need to redirect to.
>
>When PubID < 100 and things fail, I merely need to edit
>the address bar URL by changing domain1.com tois>and hit return. Then I get what I want.
>
>So some how even though I redirect to domain2 something>replacing it with domain1.
>
>
>
>
>
>
>>news:06ce01c39447$98c015a0>>-----Original Message-----
>>Gazing into my crystal ball I observed "Paul"
>><anonymous@discussions.microsoft.com> writing in>domain1.com.>>$a101280a@phx.gbl:
>>>>> I'm not getting the results I want when I use
>>> Response.Redirct in a ASP page.
>>>
>>> I enter this line of code in a asp page from>Response.Redirect "http://www.domain2.com/VDIR2/table.asp">>>
>>>
>>>says>displays>>> & "?PubID=" & PubID & "&PubName=" & PubName
>>>
>>> The query string is data to open a DB. the page>address>>> but the DB does not open.
>>>
>>> That's because when it redirects I notice in the>the>>> bar of IE that it looks like this
>>>
>>> [url]http://www.domain1.com/VDIR1/table.asp?[/url]
>>> PubID=100&PubName=thename
>>>
>>> I told it to redirect to domain2 but I see domain1 in>>> address bar.
>>>
>>> If I type out the URL to domain2 with all the params
>>> everything works fine, so the problem is with how I am
>>> redirecting there.
>>>
>>> The redirect above is inside an IF statement which>if>on>>> the PubID is less then 100 I go to the table.asp page>string, convert it>>>>> domain2.com else I stay with table.asp on domain1.com
>>>
>>> Any ideas
>>>
>>> PAul
>>>
>>What happens if you response.write in the IF statement?
>>
>>if pubid < 100 then
>>response.write "I am going to domain2"
>>else
>>response.write "I staying right here"
>>end if
>>
>>Is Pubid really a number, or is it a string? If it's a>.>>to a number, and then test it.
>>
>>--
>>Adrienne Boswell
>>Please respond to the group so others can share
>>[url]http://www.arbpen.com[/url]
>>.
>>
>Paul Guest
-
ven #10
response.redirect
hello
i have problem with response.redirect method, namely i have default page
home.aspx where is html table :
<%@ Page Language="VB" %>
<script runat="server">
' Insert page code here
'
</script>
<%@ Register TagPrefix="eCommerce" TagName="Menu" Src="Menu.ascx" %>
<html>
<head>
<title>zamówienia Wf-Mag</title>
<link href="stylee.css" rel="stylesheet" />
</head>
<body>
<form runat="server">
<table width="100%" border="0">
<tbody>
<tr valign="top">
<td colspan="2">
<!-- HEADER -->
<div style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px;
PADDING-BOTTOM: 5px; COLOR: white; PADDING-TOP: 5px; BACKGROUND-COLOR:
#990000"><span style="FONT-WEIGHT: bold; FONT-SIZE:
32pt">zamowienia.intak.pl</span>
</div>
</td>
</tr>
<tr valign="top">
<td width="20%">
<!-- MENU -->
<ECOMMERCE:MENU runat="server" />
</td>
<td width="80%">
<!-- CONTENT -->retreter</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
and everything is ok but when i call response.redirect from menu.ascx new
page is opening in browser, but not in third table cell.... what should i do
to open new page in third cell ???
thanks
Patrick
ven Guest



Reply With Quote

