refresh button help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?cm9kY2hhcg==?=

    refresh button help

    hi all,
    i betcha here's a question never asked before ;)
    i have a simple web form with a gridview and a button. the button doesn't do
    anything but a postback.
    i load up the gridview from the database, hit the button, then hit the
    refresh button and here's where my question occurs. I get a message saying
    that "it needs to resubmit/resend the data?"

    what is happening here and how do I resolve this undesired message?

    thanks,
    rodchar
  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: refresh button help

    this is a standard browser question. it happens whenever a refresh is
    actually a postback of form data. this hack was added to most browsers due to
    the adbundance of poorly written web applications that could not handle this
    event (double billing credit cards, etc).

    you can use ajax instead, or do a redirect after postback to avoid this
    message.


    -- bruce (sqlwork.com)


    "rodchar" wrote:
    hi all,
    i betcha here's a question never asked before ;)
    i have a simple web form with a gridview and a button. the button doesn't do
    anything but a postback.
    i load up the gridview from the database, hit the button, then hit the
    refresh button and here's where my question occurs. I get a message saying
    that "it needs to resubmit/resend the data?"
    >
    what is happening here and how do I resolve this undesired message?
    >
    thanks,
    rodchar

    Comment

    • Gustavo Cantero

      #3
      Re: refresh button help

      Rodchar:
      When you hit the "refresh" button, the browser need to resend the form's
      fields to recreate the page, this is the reason to show the dialog with
      message "it needs to resubmit/resend the data?".
      To prevent this you can add a button to the webform that recreate the
      page and use this instead the browserr's "refresh" button.

      Gustavo A. Cantero
      CEO - Scientia® Soluciones Informáticas
      MCP - MCSD - MCTS

      El blog de Scientia® Soluciones Informáticas





      -----Mensaje original-----
      De: rodchar [mailto:rodchar@ discussions.mic rosoft.com]
      Expuesto a las: Lunes, 20 de Octubre de 2008 12:50 p.m.
      Expuesto en: microsoft.publi c.dotnet.framew ork.aspnet
      Conversación: refresh button help
      Asunto: refresh button help

      hi all,
      i betcha here's a question never asked before ;)
      i have a simple web form with a gridview and a button. the button doesn't
      do
      anything but a postback.
      i load up the gridview from the database, hit the button, then hit the
      refresh button and here's where my question occurs. I get a message saying
      that "it needs to resubmit/resend the data?"

      what is happening here and how do I resolve this undesired message?

      thanks,
      rodchar

      Comment

      • =?Utf-8?B?cm9kY2hhcg==?=

        #4
        RE: refresh button help

        thanks all for the help,
        rod.

        "rodchar" wrote:
        hi all,
        i betcha here's a question never asked before ;)
        i have a simple web form with a gridview and a button. the button doesn't do
        anything but a postback.
        i load up the gridview from the database, hit the button, then hit the
        refresh button and here's where my question occurs. I get a message saying
        that "it needs to resubmit/resend the data?"
        >
        what is happening here and how do I resolve this undesired message?
        >
        thanks,
        rodchar

        Comment

        Working...