Ask a Question related to ASP.NET General, Design and Development.
-
VB Programmer #1
Help: Usercontrol - different behaviors based on parent
I have a usercontrol that is basically a webapp-wide menu (dropdownlists,
etc...)
Is there a way I can program a certain dropdownlist in the uc to act
differently BASED on who is currently using the uc?
VB Programmer Guest
-
Can we use a usercontrol inside a usercontrol
hi group can we use a usercontrol inside a usercontrol. i mean can we use <%Register tagprefix..... src=....ascx%> in an ascx file. thanks in... -
Usercontrol interacting with it's parent page?
Hi all, Is it possible for a usercontrol to call a public method of a page it is contained within? If so, how? Regards John. -
Event not firing in usercontrol inside usercontrol
I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these... -
#24735 [NEW]: call_user_func on parent method does not use parent private property
From: tater at potatoe dot com Operating system: OS X 10.2 PHP version: 5CVS-2003-07-21 (dev) PHP Bug Type: Zend Engine 2... -
Use LoadControl to load a usercontrol but the webcontrol in the usercontrol can not AutoPostBack
a uscontrol test.ascx have a dropdownlist web control the dropdownlist's AutoPostBack property is set "true" but when i use... -
William F. Robertson, Jr. #2
Re: Usercontrol - different behaviors based on parent
Yes you can.
You can either do it with a switch statement depending on the user, or a
session/placeholder.
I guess it really depends on how differently the different user's UC will
look.
But to answer you question...yes.
HTH,
bill
"VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
news:eaQmNT#PDHA.1216@TK2MSFTNGP11.phx.gbl...> I have a usercontrol that is basically a webapp-wide menu (dropdownlists,
> etc...)
>
> Is there a way I can program a certain dropdownlist in the uc to act
> differently BASED on who is currently using the uc?
>
>
William F. Robertson, Jr. Guest
-
VB Programmer #3
Re: Usercontrol - different behaviors based on parent
Are you saying to use a public var, like CurrentParentForm, to keep track of
which one their looking at?
"William F. Robertson, Jr." <wfrobertson@kpmg.com> wrote in message
news:OVO7hj%23PDHA.2160@TK2MSFTNGP11.phx.gbl...(dropdownlists,> Yes you can.
>
> You can either do it with a switch statement depending on the user, or a
> session/placeholder.
>
> I guess it really depends on how differently the different user's UC will
> look.
>
> But to answer you question...yes.
>
> HTH,
>
> bill
>
>
>
>
> "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
> news:eaQmNT#PDHA.1216@TK2MSFTNGP11.phx.gbl...> > I have a usercontrol that is basically a webapp-wide menu>> > etc...)
> >
> > Is there a way I can program a certain dropdownlist in the uc to act
> > differently BASED on who is currently using the uc?
> >
> >
>
VB Programmer Guest
-
William F. Robertson, Jr. #4
Re: Usercontrol - different behaviors based on parent
You can have the user control, like on its Page_Load method, check to see
what user it is, and then change the content of the page that way. If you
use the same logic to decide on the content of the page on first load and
post back, that control will keep track itself of what content was on the
page.
bill
"VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
news:uySiXI$PDHA.560@TK2MSFTNGP10.phx.gbl...of> Are you saying to use a public var, like CurrentParentForm, to keep trackwill> which one their looking at?
>
> "William F. Robertson, Jr." <wfrobertson@kpmg.com> wrote in message
> news:OVO7hj%23PDHA.2160@TK2MSFTNGP11.phx.gbl...> > Yes you can.
> >
> > You can either do it with a switch statement depending on the user, or a
> > session/placeholder.
> >
> > I guess it really depends on how differently the different user's UC> (dropdownlists,> > look.
> >
> > But to answer you question...yes.
> >
> > HTH,
> >
> > bill
> >
> >
> >
> >
> > "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
> > news:eaQmNT#PDHA.1216@TK2MSFTNGP11.phx.gbl...> > > I have a usercontrol that is basically a webapp-wide menu>> >> > > etc...)
> > >
> > > Is there a way I can program a certain dropdownlist in the uc to act
> > > differently BASED on who is currently using the uc?
> > >
> > >
> >
>
William F. Robertson, Jr. Guest



Reply With Quote

