|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
call user controls inside the same Panel
Hi,
With ASP, I can add user contrlos inside the same Panel and then programmatically change the view state of each one...but I don't want to have all the controls allready loaded into the Panel when the page starts, instead I want to call each control (from outside the page) as needed. I have tried to declare the control class and then programmatically load and change the view state but it din't work... Any suggestion in how to better deal with many constrols to the same panel/page ? Thanks, Adriano Adriano wrote:
> Hi, No, you can't do this with ASP: you _can_ do it with ASP.Net> With ASP, I can add user contrlos inside the same Panel and then > programmatically change the view state of each one... > but I don't want I'm not sure I understand what you mean by "outside the page" ... are you > to have all the controls allready loaded into the Panel when the page > starts, instead I want to call each control (from outside the page) talking about client-side code? if so, then what you want is not possible. > as needed. I have tried to declare the control class and then There was no way for you to know it, but this is a classic asp newsgroup.> programmatically load and change the view state but it din't work... > > Any suggestion in how to better deal with many constrols to the same > panel/page ? > While you may be lucky enough to find a dotnet-knowledgeable person here who can answer your question, you can eliminate the luck factor by posting your question to a group where those dotnet-knowledgeable people hang out. I suggest microsoft.public.dotnet.framework.aspnet. -- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM" Thanks!
Show quote "Bob Barrows [MVP]" wrote: > Adriano wrote: > > Hi, > > With ASP, I can add user contrlos inside the same Panel and then > > programmatically change the view state of each one... > > No, you can't do this with ASP: you _can_ do it with ASP.Net > > > but I don't want > > to have all the controls allready loaded into the Panel when the page > > starts, instead I want to call each control (from outside the page) > > I'm not sure I understand what you mean by "outside the page" ... are you > talking about client-side code? if so, then what you want is not possible. > > > as needed. I have tried to declare the control class and then > > programmatically load and change the view state but it din't work... > > > > Any suggestion in how to better deal with many constrols to the same > > panel/page ? > > > There was no way for you to know it, but this is a classic asp newsgroup. > While you may be lucky enough to find a dotnet-knowledgeable person here who > can answer your question, you can eliminate the luck factor by posting your > question to a group where those dotnet-knowledgeable people hang out. I > suggest microsoft.public.dotnet.framework.aspnet. > > -- > Microsoft MVP - ASP/ASP.NET > Please reply to the newsgroup. This email account is my spam trap so I > don't check it very often. If you must reply off-line, then remove the > "NO SPAM" > > > |
|||||||||||||||||||||||