PC Review


Reply
Thread Tools Rate Thread

Page object disappears inside event handler

 
 
Joel
Guest
Posts: n/a
 
      22nd Jul 2004
I am having a weird problem with a hidden asp:button when it reaches its
event handler.

Upon clicking the button programmatically in javascript, when I look at the
any objects inside "Page_Load" everything looks OK (ie Page, Session,
Request, Response...).

When the code reaches the buttons event handler I can not access any objects
Page, Session... I get "cannot obtain value".

Has anyone ever seen this? I have other hidden buttons and controls which
all appear to work properly.

As a note: the button is inside a user web control.

Thanks in advance

Joel


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      25th Jul 2004
"Joel" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I am having a weird problem with a hidden asp:button when it reaches its
> event handler.
>
> Upon clicking the button programmatically in javascript, when I look at

the
> any objects inside "Page_Load" everything looks OK (ie Page, Session,
> Request, Response...).
>
> When the code reaches the buttons event handler I can not access any

objects
> Page, Session... I get "cannot obtain value".


Where do you get "cannot obtain value"? Do you mean in the debugger? What
happens when you're not in the debugger?

Also, what do you mean when you say that the button is "hidden"? Do you mean
Visible="False"? If so, you should check the page with View Source, as I
suspect that the button did not render.
--
John Saunders
johnwsaundersiii at hotmail


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Is it any point to make these two event handler into one event handler Tony Johansson Microsoft C# .NET 1 22nd Dec 2012 01:02 AM
Event Handler that creates adds another event handler kaczmar2@gmail.com Microsoft ASP .NET 1 22nd Feb 2007 08:37 AM
rendering Button inside Render() event, makes it loose its click event handler association sonic Microsoft ASP .NET 1 7th Jan 2005 07:33 PM
How to Remove an Event Handler without knowing the name of the handler Charles Law Microsoft VB .NET 4 10th Jun 2004 03:48 PM
Create new event handler or override existing handler? =?Utf-8?B?V29vbiBLaWF0?= Microsoft Dot NET Framework Forms 1 5th Jan 2004 09:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:37 AM.