If it's a NullReferenceException then that means that one of the objects was not instanciated in memory. So, in your case, check whether the StepsTable or the stepRow object has null value by putting a breakpoint at line number 84. If it does then try to
figure out why it is null and why it is not getting any value.
tejpalthatte
Member
692 Points
126 Posts
Re: Why my collapsible Panel doesn't read the ClientID from my web User Control?
Nov 07, 2008 04:11 PM|LINK
You can try using the ScriptManagerProxy control in your user control class:
http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanagerproxy.aspx
Also, see if this helps:
http://msdn.microsoft.com/en-us/library/bb398780.aspx
eddyperu1
Member
6 Points
17 Posts
Re: Why my collapsible Panel doesn't read the ClientID from my web User Control?
Nov 07, 2008 04:32 PM|LINK
For the First Link: When I use the ScriptManager proxy I still have the same error
For the second Lin: That is not quiet what I was looking for...Any another ideas.
But the way thank you so much to help me with this coding..I am sore it of NEW in this C# stuff
Thanks :)tejpalthatte
Member
692 Points
126 Posts
Re: Why my collapsible Panel doesn't read the ClientID from my web User Control?
Nov 07, 2008 04:40 PM|LINK
Hey. No Problem. Check the following link out and see if that helps in any way:
http://msmvps.com/blogs/luisabreu/archive/2006/11/16/adding-removing-updatepanels-dynamicaly-from-a-page.aspx
You can try shifting your code to the Page PreInit event.
eddyperu1
Member
6 Points
17 Posts
Re: Why my collapsible Panel doesn't read the ClientID from my web User Control?
Nov 07, 2008 05:03 PM|LINK
Yeah I read that blog but he explained but he doesn't publis a coding answer :(
I am sore it off new...in this c# stuff..
thanks
eddyperu1
Member
6 Points
17 Posts
Re: Why my collapsible Panel doesn't read the ClientID from my web User Control?
Nov 07, 2008 05:06 PM|LINK
I try to use the Page_PreInit but I have this error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Refering to this Line 84: StepsTable.Rows.Add(stepRow);
tejpalthatte
Member
692 Points
126 Posts
Re: Why my collapsible Panel doesn't read the ClientID from my web User Control?
Nov 07, 2008 05:24 PM|LINK
If it's a NullReferenceException then that means that one of the objects was not instanciated in memory. So, in your case, check whether the StepsTable or the stepRow object has null value by putting a breakpoint at line number 84. If it does then try to figure out why it is null and why it is not getting any value.
eddyperu1
Member
6 Points
17 Posts
Re: Why my collapsible Panel doesn't read the ClientID from my web User Control?
Nov 07, 2008 06:11 PM|LINK
It looks like putting inside Page_PreInit doesn't allow to load my stepCell with the controls that I want to...why?