__EVENTTARGET correct but events don't fire and IsPostback == false?

K

Kenneth Baltrinic

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
 
B

bruce barker

if ispostback is false no events will fire. it based on __viewstate
being in the form data.

-- bruce (sqlwork.com)
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top