Usercontrol events not fired, ProcessPostData Second Try present in trace

S

Steven

Hi all,

I have been having an odd problem that I've been trying to track down for a
few days, and I'm coming up short.

I have a user control that encapsulates search functionality for a set of
pages in a website. It has a textbox and a button, and all it needs to do
is redirect to search.aspx?keywords=[keywords]. I have the click event
wired up (by the VS designer), and I can see the event properly connected in
the code. However when I hit the button, the event does not get fired. I
have tried placing the user control on a blank page and the same thing
occurs. If I place the same code in a page (without the user control) it
works fine.

The only odd thing I have noticed is in the trace. After clicking the
button, I see this in the trace
aspx.page Begin ProcessPostData 0.001334 0.000071
aspx.page End ProcessPostData 0.001412 0.000078
aspx.page Begin ProcessPostData Second Try 0.001644 0.000231
aspx.page End ProcessPostData Second Try 0.001711 0.000067



This is leading me to beleive that the postback data is becoming corrupted
somehow.

The form collection part of the trace looks good fine, and I can see the
data I have entered in the textbox for that control.

Any ideas would be greatly appreciated.

Thanks,

Steven.
 
V

Victor Garcia Aprea [MVP]

Hi Steven,

What you're seeing (ProcessPostData Second Try) is totally normal.

If you could post the code (as small as possible to repro the issue) that
you're using then that could help the guessing game,


--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://clariusconsulting.net/vga
My profile: http://aspnet2.com/mvp.ashx?vga




--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://clariusconsulting.net/vga
My profile: http://aspnet2.com/mvp.ashx?vga
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top