468,132 Members | 1,564 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,132 developers. It's quick & easy.

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
Oct 20 '08 #1
3 1565
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
Oct 20 '08 #2
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
http://www.scientia.com.ar
http://www.programandoamedianoche.com
http://foro.scientia.com.ar

-----Mensaje original-----
De: rodchar [mailto:ro*****@discussions.microsoft.com]
Expuesto a las: Lunes, 20 de Octubre de 2008 12:50 p.m.
Expuesto en: microsoft.public.dotnet.framework.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

Oct 20 '08 #3
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
Oct 21 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Mark | last post: by
4 posts views Thread by sandhya.net | last post: by
9 posts views Thread by PK9 | last post: by
5 posts views Thread by Peter | last post: by
7 posts views Thread by Juan Romero | last post: by
2 posts views Thread by Kapil Jain | last post: by
11 posts views Thread by nuhura01 | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.