Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8479717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:06:35+00:00 2026-06-10T19:06:35+00:00

I have a DetailsView control like so: <asp:DetailsView ID=DetailsView1 runat=server AutoGenerateRows=False DataKeyNames=IssueId DataSourceID=edsIssues DefaultMode=Insert

  • 0

I have a DetailsView control like so:

<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="IssueId"
    DataSourceID="edsIssues" DefaultMode="Insert" OnItemInserted="DetailsView1_ItemInserted"
    OnItemInserting="DetailsView1_ItemInserting" OnItemUpdated="DetailsView1_ItemUpdated"
    OnItemUpdating="DetailsView1_ItemUpdating">
    <Fields>

After inserting and updating I want to redirect to another page (a list page containing a GridView). So I did this:

protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
{
    Response.Redirect("IssueList.aspx");
}

protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
{
    Response.Redirect("IssueList.aspx");
}

When inserting a new record it works fine. However, when updating a record the Redirect causes the Update to cancel.

If I remove the Repsonse.Redirect from ItemUpdated then the update works – but then the DetailsView loads blank (I guess in insert mode).

How can I redirect to another page after updating without cancelling the update?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:06:37+00:00Added an answer on June 10, 2026 at 7:06 pm

    Although I don’t like the answer as it seems wrong – using Threading.Thread.Sleep() did in fact do the job. I would love to know if there was a better answer though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a control that look something like this: <asp:DetailsView ID=dvUsers runat=server DataSourceID=odsData DataKeyNames=Id>
<asp:DetailsView ID=DetailsView1 runat=server AutoGenerateRows=False DataSourceID=TimeEntriesDataSource RowStyle-VerticalAlign=Top DefaultMode=Insert HeaderStyle-HorizontalAlign=Center BackColor=White BorderColor=#336666 BorderStyle=Double BorderWidth=3px CellPadding=4 OnItemInserted=DetailsView1_ItemInserted
I have a asp.net detailsview control on a page. I've noticed that it always
I have details view control in my asp.net web form, which on of its
I am using a DetailsView control. Here I have both edit and delete buttons.
I have 2 DetailsView. The first one is hidden (display:none) with DefaultMode=Insert, has RequiredFieldValidator
What is the best solution to have something like a web_application DetaisView control(horizontal dataGrid
I have a DetailsView control that I want to populate with a data table.
I have an ObjectDataSource that I'm binding to a DetailsView control. I have the
I have a DetailsView Control, inside as a template a TextBox. I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.