473,386 Members | 1,598 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,386 software developers and data experts.

simplest page in the world

hey all,
i have a web form with just a datagrid and on page load and not ispostback
it fills the dataset and binds to the datagrid and that's it.

i have a button that does nothing more than a postback. and when i push that
button and then i push the refresh button on the browser i get "cannot be
refreshed without resending..."

any ideas on how to resolved this?

thanks,
rodchar
Nov 19 '05 #1
5 1198
"=?Utf-8?B?cm9kY2hhcg==?=" <ro*****@discussions.microsoft.com> wrote in
news:FE**********************************@microsof t.com:
i have a button that does nothing more than a postback. and when i
push that button and then i push the refresh button on the browser i
get "cannot be refreshed without resending..."

any ideas on how to resolved this?


Since data is postback between each page...I don't think you can navigate
between pages without resending data.

You can try using javascript's go.history(-1)... that seems to to allow you
to navigate without resending data.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
Nov 19 '05 #2
This is standard behavior when you refresh a page that is the result of a
POST (which is what happens when you click a button). It has nothing to do
with ASP.NET.

As far as I know, you would either have to stay away from POST operations in
your web application and do everything with redirects, or live with it.

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
hey all,
i have a web form with just a datagrid and on page load and not ispostback
it fills the dataset and binds to the datagrid and that's it.

i have a button that does nothing more than a postback. and when i push
that
button and then i push the refresh button on the browser i get "cannot be
refreshed without resending..."

any ideas on how to resolved this?

thanks,
rodchar

Nov 19 '05 #3
Normal behavior. When you hit the button it POST some data to the server.
Hitting rfresh just repeats the last querty and it ask before resending...

--
Patrice

"rodchar" <ro*****@discussions.microsoft.com> a écrit dans le message de
news:FE**********************************@microsof t.com...
hey all,
i have a web form with just a datagrid and on page load and not ispostback
it fills the dataset and binds to the datagrid and that's it.

i have a button that does nothing more than a postback. and when i push that button and then i push the refresh button on the browser i get "cannot be
refreshed without resending..."

any ideas on how to resolved this?

thanks,
rodchar

Nov 19 '05 #4
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
i have a web form with just a datagrid and on page load and not ispostback
it fills the dataset and binds to the datagrid and that's it.

i have a button that does nothing more than a postback. and when i push
that
button and then i push the refresh button on the browser i get "cannot be
refreshed without resending..."

any ideas on how to resolved this?


How to resolve what? What you're seeing is perfectly normal behaviour.
Nov 19 '05 #5
thanks everyone.

"rodchar" wrote:
hey all,
i have a web form with just a datagrid and on page load and not ispostback
it fills the dataset and binds to the datagrid and that's it.

i have a button that does nothing more than a postback. and when i push that
button and then i push the refresh button on the browser i get "cannot be
refreshed without resending..."

any ideas on how to resolved this?

thanks,
rodchar

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
16
by: datactrl | last post by:
Hi, Is that posible to create a web page completely with javascript and open it without request to server? Please show a simple sample. Thanks in advance! Jack
1
by: jcwmtl | last post by:
Hello all I'm building a suite of free php applications to create virtual worlds. My problem is i can't get my file to refresh. Can this be done with javascript? I would like to have the display...
0
by: gene.ellis | last post by:
Put simply I have an XML file such as: <page> <door>brown</door> <roof>pink</roof> </page> Using the DOM functions in PHP, how would I test to see if the the element <door> is empty? Thanks...
3
by: Quentin Huo | last post by:
Hi: When I tried the following code, I got an error: if I clicked "Click me" button more than one time, and than click "back" button in the IE browser Toolbar, I will get an error: "The page...
3
by: | last post by:
For a given web form, I want to know what the +simplest+ way to add an attribute to all of a particular control type on that page. For example, I might want to add an onClick attribute to all...
11
by: Angel Salamanca | last post by:
Hello all, Just downloaded the .NET SDK and, to test it works, I write this "Hello world" code: Option explicit Imports System ' A "Hello World!" program in Visual Basic.
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
7
by: laredotornado | last post by:
Hello, I'm using PHP 4.4.4 with MySQL 5.0. I have a USERS table wher I store a username and password for each user. I have a directory (containing both HTML and PHP files) that I would like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.