By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,025 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,025 IT Pros & Developers. It's quick & easy.

.Net Posting back twice

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.