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

.Net Posting back twice

I have a .Net web page that is posting twice after the
submit button is clicked once. How can that happen? I
have turned tracing on and it writes two records to the
trace log and posts twice. Is this possible? What can I
do to stop this from happening?

Jul 21 '05 #1
3 2888
Hi Roger,

Did you use the authentication setting in the IIS manager?
You may check that by following the steps below.
1. run inetmgr in the run dialog
2. navigated to Internet Information Services/ <Computer name>/ WebSites
/Default Web Site
3. Right click on the Default Web Site,select Properties
4. Select Directory Security, click edit in the Authentication and access
control section
5. Did you check anything in the Authenticated access?
6. Did you uncheck the Enable anonymous access?

Can you post the log and code for me to reproduce the problem, so that I
can troubleshoot the problem?
I look forward to hearing from you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: "Roger Walter" <rg******@srpnet.com>
Sender: "Roger Walter" <rg******@srpnet.com>
Subject: .Net Posting back twice
Date: Wed, 17 Sep 2003 14:42:02 -0700
Lines: 6
Message-ID: <09****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcN9ZIgCx7+sILtJRp6gLnj5QzQpww==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:108953
NNTP-Posting-Host: TK2MSFTNGXA06 10.40.1.53
X-Tomcat-NG: microsoft.public.dotnet.general

I have a .Net web page that is posting twice after the
submit button is clicked once. How can that happen? I
have turned tracing on and it writes two records to the
trace log and posts twice. Is this possible? What can I
do to stop this from happening?


Jul 21 '05 #2
I don't know what authentification would have to do with
it since the page has already authenticated before the
Post occurs. But in case it does, anonymous access is
turned off. The page has a very complex DataGrid on it
with a lot of 'stuff' going on, so it would be difficult
to post all the code.

I have the trace logs available if that is what you want,
but I don't know how to send them to you. They don't read
correctly if I just paste them in to this note, and I
don't see any attachment option.

-----Original Message-----
Hi Roger,

Did you use the authentication setting in the IIS manager?
You may check that by following the steps below.
1. run inetmgr in the run dialog
2. navigated to Internet Information Services/ <Computer name>/ WebSites/Default Web Site
3. Right click on the Default Web Site,select Properties
4. Select Directory Security, click edit in the Authentication and accesscontrol section
5. Did you check anything in the Authenticated access?
6. Did you uncheck the Enable anonymous access?

Can you post the log and code for me to reproduce the problem, so that Ican troubleshoot the problem?
I look forward to hearing from you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Roger Walter" <rg******@srpnet.com>
Sender: "Roger Walter" <rg******@srpnet.com>
Subject: .Net Posting back twice
Date: Wed, 17 Sep 2003 14:42:02 -0700
Lines: 6
Message-ID: <09****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcN9ZIgCx7+sILtJRp6gLnj5QzQpww==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:108953NNTP-Posting-Host: TK2MSFTNGXA06 10.40.1.53
X-Tomcat-NG: microsoft.public.dotnet.general

I have a .Net web page that is posting twice after the
submit button is clicked once. How can that happen? I
have turned tracing on and it writes two records to the
trace log and posts twice. Is this possible? What can Ido to stop this from happening?


.

Jul 21 '05 #3
Hi Roger,

1.You may try to take a look at the link below.
http://groups.google.com/groups?hl=z...&threadm=eDRdT
NHdCHA.2240%40tkmsftngp11&rnum=2&prev=/groups%3Fq%3D%2522posting%2Bback%2Btw
ice%2522%26hl%3Dzh-CN%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3DeDRdTNHdCHA
2240%2540tkmsftngp11%26rnum%3D2

2. The problem seems like some codes in the special page caused the
problem. For example, if we have the AutoEventWireup attribute set to True
for the page, and we also have the "Handles eventname" clause for the event
handler procedures, the events can be triggered twice. Some code logic can
also cause this issue to occur. So I hope you can email me the code or you
may write a simple small demo to reproduce the problem and email it to me.
This will help me to troubleshoot the problem. I will appreciate your
efforts. You may email to me by omitting the "online" in my email address.

I look forward to hearing from you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: "Roger Walter" <rg******@srpnet.com>
Sender: "Roger Walter" <rg******@srpnet.com>
References: <09****************************@phx.gbl> <ja**************@cpmsftngxa06.phx.gbl>Subject: RE: .Net Posting back twice
Date: Thu, 18 Sep 2003 07:58:02 -0700
Lines: 78
Message-ID: <0f****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcN99UJAGSppBh/+TEKq0YEydF4lqA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109042
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.general

I don't know what authentification would have to do with
it since the page has already authenticated before the
Post occurs. But in case it does, anonymous access is
turned off. The page has a very complex DataGrid on it
with a lot of 'stuff' going on, so it would be difficult
to post all the code.

I have the trace logs available if that is what you want,
but I don't know how to send them to you. They don't read
correctly if I just paste them in to this note, and I
don't see any attachment option.

-----Original Message-----
Hi Roger,

Did you use the authentication setting in the IIS manager?
You may check that by following the steps below.
1. run inetmgr in the run dialog
2. navigated to Internet Information Services/ <Computer

name>/ WebSites
/Default Web Site
3. Right click on the Default Web Site,select Properties
4. Select Directory Security, click edit in the

Authentication and access
control section
5. Did you check anything in the Authenticated access?
6. Did you uncheck the Enable anonymous access?

Can you post the log and code for me to reproduce the

problem, so that I
can troubleshoot the problem?
I look forward to hearing from you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: "Roger Walter" <rg******@srpnet.com>
Sender: "Roger Walter" <rg******@srpnet.com>
Subject: .Net Posting back twice
Date: Wed, 17 Sep 2003 14:42:02 -0700
Lines: 6
Message-ID: <09****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcN9ZIgCx7+sILtJRp6gLnj5QzQpww==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.general:108953NNTP-Posting-Host: TK2MSFTNGXA06 10.40.1.53
X-Tomcat-NG: microsoft.public.dotnet.general

I have a .Net web page that is posting twice after the
submit button is clicked once. How can that happen? I
have turned tracing on and it writes two records to the
trace log and posts twice. Is this possible? What canIdo to stop this from happening?


.


Jul 21 '05 #4

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

Similar topics

11
by: TTroy | last post by:
Hello C programmers, Can someone tell me why ungetc can't sent back EOF, but it's sister function getc has no trouble sending it to us? For a file, this might not make a difference, but for an...
1
by: Frawls | last post by:
Hi Can any one give me some help with this problem please? Here is the scenario: A user submits page 1 which is a web form. After the form has been submitted they are (redirected) onto...
2
by: Frawls | last post by:
Hi Can any one give me some help with this problem please? Here is the scenario: A user submits page 1 which is a web form.
4
by: ani | last post by:
I have a datalist control in my aspx page(this is paginated and everytime submits to itself). I am calling a function within my datalist that returns a html control (radio button ) in the form of...
6
by: Boban Dragojlovic | last post by:
I have a webform that shows a long list of customers (500 - 1000) to the user. At the top of the form are various filtering options, including a quick search input box.
3
by: Roger Walter | last post by:
I have a .Net web page that is posting twice after the submit button is clicked once. How can that happen? I have turned tracing on and it writes two records to the trace log and posts twice. ...
43
by: balakrishnan.dinesh | last post by:
Hi all, Im working in javascript, I want to use Ajax in javcascript, Can u tel me how to use ajax in javascript, whether i have to include any code as like to include *css or *.js file, what are...
8
by: rdemyan via AccessMonster.com | last post by:
Anyone have any ideas on how to determine when the back-end file (containing only tables) has been updated with new data. The date/time of the file won't work because it gets updated to the...
1
by: =?Utf-8?B?QWxCcnVBbg==?= | last post by:
I have a form containing three AJAX UpdatePanels, two of which contain a pair of listboxes and a pair of buttons, with the third one containing a pair of radio buttons in a radiobutton list and...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.