in my appplication if i try to go to next page using
response.redire ct, it does not work and control remains on same page
but if i use server.transfer control goes to nex page??
can any one explain me why ????? 14 3973
Hi,
Can you post how you are using Response.Redire ct ?
Patrick
"gaurav tyagi" <gt*****@gmail. com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . in my appplication if i try to go to next page using response.redire ct, it does not work and control remains on same page but if i use server.transfer control goes to nex page??
can any one explain me why ?????
old way (Not
working)------------------------------------------------------------------------------------------------------
private void btnManagement_C lick(object sender, System.EventArg s e)
{
try
{
Response.Redire ct( "ManagementMenu .aspx", false );
}
catch( Exception aExc)
{
string sErrMsg = "Failed to go to requested web page !\n\n" +
"Details:\n \n" +
aExc.Message;
GuiManipulator. DisplayErrorPag e( this.Page, sErrMsg );
}
}
Next
way(notWorking)----------------------------------------------------------------------------------------------------
private void btnManagement_C lick(object sender, System.EventArg s e)
{
Response.Redire ct( "ManagementMenu .aspx", false );
}
new
Way(Working)---------------------------------------------------------------------------------------------------
private void btnManagement_C lick(object sender, System.EventArg s e)
{
Server.Transfer ("ManagementMen u.aspx");
}
i think you chould clear out the 2nd param :)
"gaurav tyagi" <gt*****@gmail. com> schreef in bericht
news:11******** **************@ g44g2000cwa.goo glegroups.com.. . old way (Not working)------------------------------------------------------------------------------------------------------
private void btnManagement_C lick(object sender, System.EventArg s e) { try {
Response.Redire ct( "ManagementMenu .aspx", false ); } catch( Exception aExc) { string sErrMsg = "Failed to go to requested web page !\n\n" + "Details:\n \n" + aExc.Message; GuiManipulator. DisplayErrorPag e( this.Page, sErrMsg ); }
}
Next way(notWorking)---------------------------------------------------------------------------------------------------- private void btnManagement_C lick(object sender, System.EventArg s e) { Response.Redire ct( "ManagementMenu .aspx", false );
}
new Way(Working)---------------------------------------------------------------------------------------------------
private void btnManagement_C lick(object sender, System.EventArg s e) { Server.Transfer ("ManagementMen u.aspx");
}
Edwin Knoppert wrote: i think you chould clear out the 2nd param :)
"gaurav tyagi" <gt*****@gmail. com> schreef in bericht news:11******** **************@ g44g2000cwa.goo glegroups.com.. . old way (Not working)------------------------------------------------------------------------------------------------------
private void btnManagement_C lick(object sender, System.EventArg s e) { try {
Response.Redire ct( "ManagementMenu .aspx", false ); } catch( Exception aExc) { string sErrMsg = "Failed to go to requested web page !\n\n" + "Details:\n \n" + aExc.Message; GuiManipulator. DisplayErrorPag e( this.Page, sErrMsg ); }
}
Next way(notWorking)---------------------------------------------------------------------------------------------------- private void btnManagement_C lick(object sender, System.EventArg s e) { Response.Redire ct( "ManagementMenu .aspx", false );
}
new Way(Working)---------------------------------------------------------------------------------------------------
private void btnManagement_C lick(object sender, System.EventArg s e) { Server.Transfer ("ManagementMen u.aspx");
}
i have checked this one also
if i remove second argument , by default it takes true this means
response.redire ct will stop the existing thread and go for new thread
but here it is not enable to open next page so a blank page comes.
so if i put false , framework do not close current thread and try to
open next page thread but here also it is not able to open next page
so current page remains there
NOT WORKING------------------------------
private void btnManagement_C lick(object sender,
System.EventArg s e)
{
Response.Redire ct( "ManagementMenu .aspx);
}
On 18 Jan 2006 04:06:53 -0800, "gaurav tyagi" <gt*****@gmail. com>
wrote: NOT WORKING------------------------------
private void btnManagement_C lick(object sender, System.EventAr gs e) { Response.Redire ct( "ManagementMenu .aspx);
}
When you do a response.redire ct like this, the server should send a
302 HTTP response with a location header that tells the browser where
to go. The browser will then do an HTTP GET for that location. A
Netmon trace (or a trace using Ethereal) will give you an indication
as to what is breaking down.
Jim Cheshire
--
Blog: http://blogs.msdn.com/jamesche
Tell me where is your Management.aspx page reside?
it is in same application Management.aspx resides.
both pages are in same application
Tell me the folder structure This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stephen |
last post by:
I was wondering if someone can help me with an web application design
problem. I have a aspx page which builds up an arraylist called addresses
and outputs the values in the arraylist items to a datagrid. I am using the
viewstate object to store the Arraylist items on the page on postback.
My PROBLEM is that I need to redirect the user to a new aspx page and on
this new page i need to be able to access the items in my arraylist. Is this...
|
by: \A_Michigan_User\ |
last post by:
Ok, I give up... why do 1-4 work fine... but 5-6 give "can't find" errors?
1. Client-side VBscript code: call navigate("\\209.11.22.33\MyDir")
2. Client-side VBscript code: location.href ="\\209.11.22.33\MyDir"
3. Typing "\\209.11.22.33\MyDir" into my ie6 browser.
4. Typing "\\209.11.22.33\MyDir" into my Windows Explorer.
5. Server-side ASP: server.transfer "\\209.11.22.33\MyDir"
6. Server-side ASP: response.redirect...
|
by: Justin |
last post by:
Hi,
Im confused here over the usage of Response.Redirect and
Server.Transfer. I used frameset for my work, what are the
proper usages of the two methods that seems working
similar..
The problem i faced while using Response.Redirect is that
the page that is directed to, does not looks as
desired..the textboxes are not visible anymore and so as
|
by: Paul de Goede |
last post by:
I set the Response.Filter in my aspnet application but I
have noticed that if you do a Server.Transfer that the
filter doesn't get called. And in actual fact the response
is mostly empty. It seems that only scripts get rendered.
I have seen this mentioned on this newsgroup before but
with no resolution. Can anyone give any insight into this
problem. Is there a work around? Manually push the
Reponse.OutputStream through your filter after...
|
by: Harsh Thakur |
last post by:
Hi,
I'd like to know the performance related differences between
Response.Redirect and Server.Transfer.
I'd like to redirect the user to a different page.
I can either do a Response.Redirect("URL") or a Server.Transfer("URL").
So I'd like to find out which is more efficient/better.
Can anyone please tell me or give any pointers to links on the web?
Thanks & Regards
| |
by: Sospeter |
last post by:
Hi Ken,
I have done that but still experiencing same problem. Tried the
following i.e. turning smartnavigation = false and using
server.transfer as below but nothing works.
Please help.
Page.SmartNavigation = False
FormsAuthentication.SetAuthCookie(txtCustID.Text, False)
|
by: Alan Silver |
last post by:
Hello,
Sorry if this is a stupid question, but I can't really see much
difference between these tow methods according to the scant info in the
SDK.
Could anyone enlighten me? TIA
--
Alan Silver
|
by: Nathan Sokalski |
last post by:
The last two lines of code in the Click event of a Button Control on my page
are:
Me.WelcomeEmail()
Response.Redirect("mainmenu.aspx")
The last line of code in Me.WelcomeEmail() is:
|
by: RN1 |
last post by:
When a server encounters the line
Response.Redirect("abcd.asp")
in a ASP script, the server tells the browser that it has to be
redirected to another page (which is abcd.asp, in this case). The
browser then makes a new request to the server to redirect itself to
abcd.asp after which the user gets redirected to abcd.asp.
But in case of Server.Execute (or Server.Transfer), when the server
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |