Prompt for Save in ASP.Net Web forms

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Prompt for Save in ASP.Net Web forms

    hi All,
    I had a requirement like, the web form should
    prompt for save when the user enters/modifies some data on
    the form and trying to go to other form by means of some
    Navigation.Then the web form should popup a message box
    asking to save.plz tell me how could i handle it. Plz do
    help me

    Regards,
    Siva

    SIVAKUMAR Guest

  2. Similar Questions and Discussions

    1. Acitvex control to fill and save PDF forms
      Hi, I am developing a windows application where I would like to open a PDF document within a windows form and let the user fill the form...
    2. Users cannot save Acrobat forms
      Thanks--how is this done? 500 respondents would be more than enough. The form is only to be used on a case-by-case basis...
    3. prompt user to save changes in datagrid editmode when they try to navigate away from page...how do you do that?
      Hello, I have a custom datagrid control that works great. But I was thinking about adding some functionality to it. Currently, I use the...
    4. prompt to save changes in datagrid in editmode if user tries to navigate away
      Hello, I have a custom datagrid control that works great. But I was thinking about adding some functionality to it. Currently, I use the...
    5. disable save record on a Continuous Forms
      "Adelin C." <adelin.champagne@hrdc-drhc.gc.ca> wrote in message news:0c3c01c356a8$34bcaaa0$a501280a@phx.gbl... If you don't want the user to make...
  3. #2

    Default Re: Prompt for Save in ASP.Net Web forms

    use js return confirm("Can i save foo"); in the click event of the
    button....

    "SIVAKUMAR" <sivak@sqlstarintl.com> wrote in message
    news:0db801c33b69$231ca2f0$a001280a@phx.gbl...
    > hi All,
    > I had a requirement like, the web form should
    > prompt for save when the user enters/modifies some data on
    > the form and trying to go to other form by means of some
    > Navigation.Then the web form should popup a message box
    > asking to save.plz tell me how could i handle it. Plz do
    > help me
    >
    > Regards,
    > Siva
    >

    Rajesh.V Guest

  4. #3

    Default Re: Prompt for Save in ASP.Net Web forms

    That's fine,
    But i am not using HTML controls for Navigation.I am using web
    controls(web button). If i execute that javascript with
    RegisterStartupScript() function.Then how can i capture the value of the
    Message box in my .vb file Based on the that value i should save the
    data on the form if he press "yes" else he should go the the next page.
    plz do help me.

    Regards,
    Siva


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Siva Kumar Guest

  5. #4

    Default Re: Prompt for Save in ASP.Net Web forms

    You can use the body "onbeforeunload" event to do this.

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.

    "Siva Kumar" <anonymous@devdex.com> wrote in message
    news:uqIWae9ODHA.3836@tk2msftngp13.phx.gbl...
    > That's fine,
    > But i am not using HTML controls for Navigation.I am using web
    > controls(web button). If i execute that javascript with
    > RegisterStartupScript() function.Then how can i capture the value of the
    > Message box in my .vb file Based on the that value i should save the
    > data on the form if he press "yes" else he should go the the next page.
    > plz do help me.
    >
    > Regards,
    > Siva
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Kevin Spencer Guest

  6. #5

    Default Re: Prompt for Save in ASP.Net Web forms

    Say the cmd button is cmd1
    then
    cmd1.attributes.add("onClick","return confirm(""Ok to delete"");")


    .Net Developer,
    247customer.com
    Bangalore, India.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Rajesh V Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139