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

On postback, EVENTTARGET is populated but IsPostback == false, no events fire?!

P: n/a
I am having a very odd problem. On a page that was working until very
recently we are now encountering the following situation:

The page is a very basic fill in the blank form used for changing ones
password in a forms based authentication scenario. After the user fills out
the form and clicks the Change Password button, the page simply reloads as
if nothing happened. We turned on page tracing and also added the following
lines to the PageLoad event:

Trace.Write( Request.Form["__EVENTTARGET"] );
Trace.Write( cmdChangePassword.UniqueID );
Trace.Write( Page.IsPostback );

From which we get:
ctl00$cphMain$cmdChangePassword
ctl00$cphMain$cmdChangePassword
false

The first two values tell me that IsPostback should be true and that the
cmdChangePassword click event should fire. But IsPostback is false and the
cmdChangePassword_OnClick event handler is never called.

As I said this was working and now suddenly stopped. Any ideas?

--Ken
Jun 4 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
IsPostback is a test if "__VIEWSTATE" is not empty and valid. use
fiddler to check your requests.

-- bruce (sqlwork.com)
Kenneth Baltrinic wrote:
I am having a very odd problem. On a page that was working until very
recently we are now encountering the following situation:

The page is a very basic fill in the blank form used for changing ones
password in a forms based authentication scenario. After the user fills out
the form and clicks the Change Password button, the page simply reloads as
if nothing happened. We turned on page tracing and also added the following
lines to the PageLoad event:

Trace.Write( Request.Form["__EVENTTARGET"] );
Trace.Write( cmdChangePassword.UniqueID );
Trace.Write( Page.IsPostback );

From which we get:
ctl00$cphMain$cmdChangePassword
ctl00$cphMain$cmdChangePassword
false

The first two values tell me that IsPostback should be true and that the
cmdChangePassword click event should fire. But IsPostback is false and the
cmdChangePassword_OnClick event handler is never called.

As I said this was working and now suddenly stopped. Any ideas?

--Ken

Jun 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.