Redirect Not working after UpdateItem

  • Thread starter Thread starter Rich
  • Start date Start date
R

Rich

Hi,

I'm using a DetailsView in asp.net 2.0 and C#.

After the UpdateItem(true) is hit, I want to redirect the page to the next page. The code won't do this though for some reason. As soon as the update is done, the same page just reloads. Could anyone help me with this? Here's a piece of the code I'm using:


Code:

else
{
RegistrationView.UpdateItem(true);
Response.Redirect("EditInfo2.aspx?d=" + Request.QueryString["d"]);


}
 
Hi,

I'm using a DetailsView in asp.net 2.0 and C#.

After the UpdateItem(true) is hit, I want to redirect the page to the next page. The code won't do this though for some reason. As soon as the update is done, the same page just reloads. Could anyone help me with this? Here's a piece of the code I'm using:


Code:

else
{
RegistrationView.UpdateItem(true);
Response.Redirect("EditInfo2.aspx?d=" + Request.QueryString["d"]);


}

Try this news group:

microsoft.public.dotnet.framework.aspnet

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top