473,396 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1793
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
4
by: sandhya.net | last post by:
Hi, I have a dropdown which displays the Products and Add button on my Asp.net web page. When the user selects a product from the dropdown and Clicks the add button it adds the selected product...
9
by: PK9 | last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is actually calling my last onClick event. I thought that asp.net was supposed to be stateless in that it shouldn't...
5
by: Peter | last post by:
1) I have a C# web application and what I am trying to do is create a popup window from a link on the parent window 2) the popup window will have a button and when a user clicks on the button the...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
2
by: Kapil Jain | last post by:
Dear All, I would like to disable back and forward button + Refresh button. Please help in doing this. I want this because i am displaying data from mysql database and on back and forward button...
11
by: nuhura01 | last post by:
Hi.. I have a button to preview image using the following code, which preview the image in html page: Dim oStringWriter As System.IO.StringWriter = New System.IO.StringWriter Dim...
2
by: malcster2 | last post by:
hello, i am a beginner to ajax. i have created a mysql database, which i would like to access from a web page. i have created 3 files, a html to display the data, a php file to extract the data,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.