Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
if (chkTrustedForm.Checked)
            {
                ViewState["TrustedFormOfferID"] = Request.QueryString["CID"].ToString();
                Server.Transfer("Offer.aspx");
            }


What I have tried:

Hi Guys,
I tried server.transfer and response.redirect and getting
C#
The file '/RM/Admin/Offer.aspx' does not exist


Problem is,In the solution the 'offer' page is outside admin folder and file from where I'am redirecting 'EditCamapign.aspx' is in Admin folder. I tried with response.redirect and server.transfer method but still getting the same error. Please assist me what changes to be made
Posted
Comments
Jawad Ahmed Tanoli 18-Nov-16 7:50am    
try like this
Response.Redirect("~/RM/Admin/Offer.aspx")
Amith 12807185 18-Nov-16 8:03am    
Hi Jawad,

Thanks You so much, it worked. In my case it was Response.Redirect("~/Offer.aspx").
Jawad Ahmed Tanoli 18-Nov-16 8:08am    
you Welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900