Help with detailsView insert

Discussion in 'ASP .Net Web Controls' started by sim18, May 7, 2013.

  1. sim18

    sim18

    Joined:
    May 7, 2013
    Messages:
    1
    Likes Received:
    0
    Hi all, thanks in advance.

    I have a DetailsView1 and when I press the insert button the records get added to my database and the fields all turn blank.

    My question is when I click on insert is there a way to navigate to a confirmation page that displays "thanks you have submitted" or something similar?

    When I double click on the DeatialsView I have tried adding both:

    Code (Text):
    protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
        {
            Response.Redirect(success.aspx);
        }

        protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
        {
            Response.Redirect(success.aspx);
        }
    None of these however work
     
    sim18, May 7, 2013
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Justin Rich

    Detailsview empty dataset insert

    Justin Rich, May 19, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,545
    Justin Rich
    May 19, 2005
  2. Eric Zhao

    Detailsview empty dataset insert

    Eric Zhao, Aug 30, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,134
    Brock Allen
    Aug 30, 2005
  3. William LaMartin

    DetailsView edit and insert row widths

    William LaMartin, Jan 22, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    13,728
    mrpink
    Mar 29, 2009
  4. Not Me
    Replies:
    3
    Views:
    9,431
    diegowarrior
    Oct 8, 2006
  5. cannontrodder
    Replies:
    1
    Views:
    1,006
    cannontrodder
    Jul 25, 2006
  6. news.sbcglobal.net

    Newbie: Help with DetailsView insert

    news.sbcglobal.net, Oct 2, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    544
    news.sbcglobal.net
    Oct 2, 2006
  7. eagle

    Insert & Insert/Repeat buttons in a detailsview

    eagle, Jul 12, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    1,336
    eagle
    Jul 12, 2007
  8. Feege
    Replies:
    0
    Views:
    790
    Feege
    Dec 20, 2005
Loading...