.Net Posting back twice

  • Thread starter Thread starter Roger Walter
  • Start date Start date
R

Roger Walter

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?
 
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.

--------------------
 
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.
 
Hi Roger,

1.You may try to take a look at the link below.
http://groups.google.com/groups?hl=zh-CN&lr=&ie=UTF-8&oe=UTF-8&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.

--------------------
 
Back
Top