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 cannot be
displayed......".
But I won't get any error if I only click the "click me" button one time and
then click the browser's "Back" button.
In fact, this is an example from the Book "Essential ASP.NET with Examples
in C#" by Fritz Onion ( Listing 2-5). Please try this simplest code and tell
me if you get the same problem. What causes the problem? Maybe it is caused
by webserver setting?
Can anyone help me!
Q.
-----------------------------------------------------------------
<%@ Page Language="C#" %>
<html>
<script runat=server>
protected void OnClickMyButton(object src, EventArgs e)
{
_message.InnerText = "You clicked the button!";
}
protected void Page_Init(object src, EventArgs e)
{
_MyButton.ServerClick +=
new EventHandler(OnClickMyButton);
}
</script>
<body>
<form runat=server>
<h2>ASP.NET event page</h2>
<p>
<input type=button id=_MyButton
value="Click me!" runat=server />
</p>
<span id=_message runat=server/>
</form>
</body>
</html>
----------------------------------------------------------------- 3 1467
The page is set to time out most likely. You should not be able to use the
back button on a form. There are nicer ways of telling the user, however.
Have not seen this particular book.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************************************************
Think outside the box!
*************************************************
"Quentin Huo" <q.***@manyworlds.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl... 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 cannot be displayed......".
But I won't get any error if I only click the "click me" button one time and then click the browser's "Back" button.
In fact, this is an example from the Book "Essential ASP.NET with Examples in C#" by Fritz Onion ( Listing 2-5). Please try this simplest code and tell me if you get the same problem. What causes the problem? Maybe it is caused by webserver setting?
Can anyone help me!
Q.
----------------------------------------------------------------- <%@ Page Language="C#" %>
<html> <script runat=server> protected void OnClickMyButton(object src, EventArgs e) { _message.InnerText = "You clicked the button!"; }
protected void Page_Init(object src, EventArgs e) { _MyButton.ServerClick += new EventHandler(OnClickMyButton); } </script> <body> <form runat=server>
<h2>ASP.NET event page</h2> <p> <input type=button id=_MyButton value="Click me!" runat=server /> </p> <span id=_message runat=server/> </form> </body> </html> -----------------------------------------------------------------
Hi:
Thank you!
I tried the same code in another machine, it works! No matter how many the
click times are, I can click "Back" button of the browser without getting
any error. So I think it should be a configuration issue.
And I checked the web.config file and the value of "timeout" in
<sessionState> is "20".
Where is the problem? Where can I check?
Qing
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:uG**************@TK2MSFTNGP15.phx.gbl... The page is set to time out most likely. You should not be able to use the back button on a form. There are nicer ways of telling the user, however. Have not seen this particular book.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************* Think outside the box! ************************************************* "Quentin Huo" <q.***@manyworlds.com> wrote in message news:e9**************@TK2MSFTNGP10.phx.gbl... 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 cannot be displayed......".
But I won't get any error if I only click the "click me" button one time and then click the browser's "Back" button.
In fact, this is an example from the Book "Essential ASP.NET with Examples in C#" by Fritz Onion ( Listing 2-5). Please try this simplest code and tell me if you get the same problem. What causes the problem? Maybe it is caused by webserver setting?
Can anyone help me!
Q.
----------------------------------------------------------------- <%@ Page Language="C#" %>
<html> <script runat=server> protected void OnClickMyButton(object src, EventArgs e) { _message.InnerText = "You clicked the button!"; }
protected void Page_Init(object src, EventArgs e) { _MyButton.ServerClick += new EventHandler(OnClickMyButton); } </script> <body> <form runat=server>
<h2>ASP.NET event page</h2> <p> <input type=button id=_MyButton value="Click me!" runat=server /> </p> <span id=_message runat=server/> </form> </body> </html> -----------------------------------------------------------------
It looks more like a client side issue as you have a different effect on two
machines. Check perhaps the "cache settings" in IE.
Patrice
--
"Quentin Huo" <q.***@manyworlds.com> a écrit dans le message de
news:ev*************@TK2MSFTNGP11.phx.gbl... Hi:
Thank you!
I tried the same code in another machine, it works! No matter how many the click times are, I can click "Back" button of the browser without getting any error. So I think it should be a configuration issue.
And I checked the web.config file and the value of "timeout" in <sessionState> is "20".
Where is the problem? Where can I check?
Qing
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in message news:uG**************@TK2MSFTNGP15.phx.gbl... The page is set to time out most likely. You should not be able to use
the back button on a form. There are nicer ways of telling the user,
however. Have not seen this particular book.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************* Think outside the box! ************************************************* "Quentin Huo" <q.***@manyworlds.com> wrote in message news:e9**************@TK2MSFTNGP10.phx.gbl... 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 cannot be displayed......".
But I won't get any error if I only click the "click me" button one
time and then click the browser's "Back" button.
In fact, this is an example from the Book "Essential ASP.NET with Examples in C#" by Fritz Onion ( Listing 2-5). Please try this simplest code and tell me if you get the same problem. What causes the problem? Maybe it is caused by webserver setting?
Can anyone help me!
Q.
----------------------------------------------------------------- <%@ Page Language="C#" %>
<html> <script runat=server> protected void OnClickMyButton(object src, EventArgs e) { _message.InnerText = "You clicked the button!"; }
protected void Page_Init(object src, EventArgs e) { _MyButton.ServerClick += new EventHandler(OnClickMyButton); } </script> <body> <form runat=server>
<h2>ASP.NET event page</h2> <p> <input type=button id=_MyButton value="Click me!" runat=server /> </p> <span id=_message runat=server/> </form> </body> </html> -----------------------------------------------------------------
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raymond Hettinger |
last post by:
Sourceforge is used to track bug reports, feature requests, and patches:
https://sourceforge.net/projects/python/
Each of those submissions needs to be reviewed and discussed.
A good way to...
|
by: wtnt |
last post by:
Hello.
I've searched all over and haven't seen another thread with this
problem. Please bear with me as I try to explain. thanks. :)
I have some programs that need to be cross-platform...
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
...
|
by: Rahul |
last post by:
Hi Everybody
I have some problem in my script. please help me. This is script file.
I have one *.inq file. I want run this script in XML files. But this
script errors shows . If u want i am...
|
by: justicerulesok |
last post by:
Hello,
I've just started a new job where at interview I said my week point was
MS Access. I got the job & they've asked me to create a DB on Access
97 to log calls to the IT department & keep a...
|
by: deppy_3 |
last post by:
Hi.I am started learning Programm language C before some time.I am
trying to make a programm about a very simple "sell shop".This programm
hasn't got any compile problem but when i run it i face...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted...
|
by: adamurbas |
last post by:
ya so im pretty much a newb to this whole python thing... its pretty
cool but i just started today and im already having trouble. i
started to use a tutorial that i found somewhere and i followed...
|
by: William (Tamarside) |
last post by:
Please, if you have the time and knowledge to help me I'd truly
appreciate it!
I need to build a calendar page that displays available/unavailable
info from a DB and colour a cell according to...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
|
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...
| | |