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

Usercontrol events not fired, ProcessPostData Second Try present in trace

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.
Nov 18 '05 #1
1 3261
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

"Steven" <ms******@berkovitz.org> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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.

Nov 18 '05 #2

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

Similar topics

2
by: Xaviero | last post by:
Is it possible to see what events are being traced. Such as datagird_editCommand or linkbutton_click etc. I have the trace enabled but that only gives info such as beginInit, LoadViewstate,...
3
by: michael_vanommeren | last post by:
I have two web applications that I am working with and I am trying to do a Response.Redirect from one to the other. They are setup as separate web applications on the same IIS server. If I go...
0
by: tshad | last post by:
I am trying to figure out how to handle a couple of problem using multiple events tied to the same button. Following is the button: <asp:button ID="submitAnswer" CommandName="SubmitAnswer"...
3
by: Jeremy | last post by:
How do I go about tracing what occurs between ProcessPostData and ProcessPostData Second Try. Reason is that is takes nearly 2 seconds between these events. Thanks Jeremy
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
2
by: Simon Verona | last post by:
I have a usercontrol with code in the "leave" event which updates the final data back into a database. This works fine except if I have a default "accept" button on a form and invoke it by...
0
by: Michal Valent | last post by:
this is ProcessRequestMain from System.Web.UI.Page Assembly: System.Web, Version=2.0.0.0 the question is how can one custom server control make its events fired earlier than Page_Load event ?
2
by: Michal Valent | last post by:
I would like to fire some custom server control event before Page_Load event like this (from the trace of an aspx page) : Trace Information Category Message From First(s) From Last(s) aspx.page...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.