Click here to Skip to main content
15,922,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
my requirement is i want to redirect to page from web service and get response from that page how can i do that.plz provide me help on dot net C#.
Posted

1 solution

Your question is not very specific, perhaps a little work on it for clarification may help.

But...


For a browser redirect try this.
This redirects according to local variable (in this case Language)


C#
Response.BufferOutput = true;
if (UserLanguage == "English")
{
   Response.Redirect("http://www.website.com/eng.htm");
}
else if (UserLanguage == "Deutsch")
{
   Response.Redirect("http://www.website.com/deu.htm");
}
else if (UserLanguage == "Español")
{
   Response.Redirect("http://www.microsoft.com/esp.htm");
}



or...

For a server side request,

C#
private void Button1_Click(object sender, System.EventArgs e)
{
   Server.Transfer("Webform2.aspx");
}



for an HTTPRedirect,

MIDL
Response.Redirect("http://www.website.com");


Hope that helps
 
Share this answer
 

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