Re: Client Side - click radio button - controls become enabled
- From: "Eliyahu Goldin" <removemeegoldin@xxxxxxxxxxxxxx>
- Date: Wed, 20 Jul 2005 12:38:42 +0200
Prepare css styles in design time and in run time set CssClass property for
web controls on server side or className property on client side.
Eliyahu
"UJ" <fred@xxxxxxxxxxx> wrote in message
news:e911olJjFHA.2852@xxxxxxxxxxxxxxxxxxxxxxx
> Thanks Eliyahu. I finally got the thing working correctly.
>
> Now here's the next problem - when I originally load the page, I don't
have
> anything filled in so I know the startup state. But there are conditions
> where I will pre-load the page values which means I need to be able to set
> the screen accordingly.
>
> In other words, I need to be either able to set the visibility from both
the
> client side and the server side, or I need to be able to on page load call
> some javascript to be able to activate the appropriate items.
>
> (I'm also going to post a separate item in here for this same problem.)
>
> Any suggestions?
>
> Thanks - Jeffrey.
>
> "Eliyahu Goldin" <removemeegoldin@xxxxxxxxxxxxxx> wrote in message
> news:eBA8XzFjFHA.2004@xxxxxxxxxxxxxxxxxxxxxxx
> > Jeffrey,
> >
> > Put every set in a container - a div, or a table or a table cell. For
the
> > radio buttons handle onclick event. In the event handler control the
> > container visibility like this:
> >
> > myContainer.style.display='none';
> > myContainer.style.display='inline';
> >
> > And you do need to learn some basics about javascript, no way around,
> >
> > Eliyahu
> >
> > "UJ" <fred@xxxxxxxxxxx> wrote in message
> > news:OrskPmFjFHA.2472@xxxxxxxxxxxxxxxxxxxxxxx
> >> Can somebody help me please? I have two 'sets' of controls on a page.
> > There
> >> are two radio buttons that enable the two sets (when radiobutton A is
> >> checked, set A should be enabled, B, Set B should be enabled). I know
how
> > to
> >> do it on the server side but not on the client side (I'd rather not
have
> > the
> >> page reload).
> >>
> >> Can somebody help me? I know I need to use Javascript but don't have a
> > clue
> >> on how to do it.
> >>
> >> TIA - Jeffrey.
> >>
> >>
> >
> >
>
>
.
- References:
- Prev by Date: Determine view in Datagrid based on Checkbox selected
- Next by Date: session variable not working with frame forwarding
- Previous by thread: Re: Client Side - click radio button - controls become enabled
- Next by thread: Web.Config Question
- Index(es):