Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > On postback, EVENTTARGET is populated but IsPostback == false, no events fire?!

Reply
Thread Tools

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

 
 
Kenneth Baltrinic
Guest
Posts: n/a
 
      06-04-2007
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


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      06-04-2007
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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Do IsPostBack and Master.IsPostBack Always Fire Twice? Joey ASP .Net 2 10-09-2008 06:17 AM
__EVENTTARGET correct but events don't fire and IsPostback == false? Kenneth Baltrinic ASP .Net 1 05-31-2007 07:28 PM
RegisterOnSubmitStatement not posting eventtarget APA ASP .Net 4 02-20-2007 11:14 PM
eventtarget is null or is not an object =?Utf-8?B?Q29zaW1vIEdhbGFzc28=?= ASP .Net 1 11-22-2004 10:05 AM
EVENTTARGET EVENTARGUMENT RegisterHiddenField MeDhanush ASP .Net 1 08-28-2003 05:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57