Home All Groups Group Topic Archive Search About

call user controls inside the same Panel



Author
29 Dec 2005 9:52 PM
Adriano
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

Author
29 Dec 2005 11:12 PM
Bob Barrows [MVP]
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"
Author
29 Dec 2005 11:21 PM
Adriano
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"
>
>
>

AddThis Social Bookmark Button