Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using tab controller in a page, In this page I'm saving the data to database after that i need the message to be displayed in another page. For this i done as below


//tab controller page
Response.Redirect("CustomerEdit.aspx?Name="+TxtCustomerName.Text);



//In another page
if (Request.QueryString["Name"] != null)
{
string CustomerName = Request.QueryString["Name"].ToString();
LblMsg.Text = CustomerName + " " + "Details Added Successfully.";
}

But I'm able to get the message ,it is not redirecting to another page ?
Posted
Updated 22-Oct-13 19:22pm
v2
Comments
TrushnaK 23-Oct-13 1:13am    
Are you sure about the path "CustomerEdit.aspx"
or else
use like "~/CustomerEdit.aspx"

1 solution

try this.

VB
Dim url As String = "~/SomeDirectory/SomePage.aspx"
Response.Redirect(url.Replace("~"c, Request.ApplicationPath))


or like this

Response.Redirect("./hello");
 
Share this answer
 
v2

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