Hi,
Thanx for the solution. I have written the function to check whether the
checkbox is enabled..but now my problem is that this checkbox which i need
to check and the three text boxes which i need to enable when the checkbox
is checked are Web Controls...How do i refer to them inside the function...
Also In my aspx page i have a Page_Load event and a OK Button Click
event....So as u have suggested to add to the Attribute Collection the click
event handle...where do i place the piece of code which adds this event
handler to the Attribute Collection of Checkbox.
I tried putting it in the Page_Load event but it does not work..where am i
Going wrong??
Also Please help me regarding how to refer to my web controls in my java
script function.
Thanx ,
Smita.
[quoted text, click to view] "Eran Amitai" <eranamitai@hotmail.com> wrote in message
news:#gKimaM5DHA.2008@TK2MSFTNGP10.phx.gbl...
> Add a script block to the static section of your aspx page (for example
> within the head element) with a javascript function that enables/disables
> the three text boxes. Then add a call to the function from your checkbox's
> onclick handler. How to add a handler depends on whether you use an HTML
> control or web control. For HTML controls you just specify the onclick
> attribute as you do for any html element; for web controls you have to use
> the Attributes collection (add an "onclick" attribute with a string that
> calls your function with the up to date checkbox value).
>
> Eran
>
> "smita" <smita@rarefind.com> wrote in message
> news:%23OiL3CL5DHA.1936@TK2MSFTNGP12.phx.gbl...
> > Hi Jeffrey,
> > I have a web page on which i have a placed a checkbox . Now what
i
> > need is ..when this checkbox is checked , i want to enable three text
> boxes
> > present on the same page.
> > I am aware that i need to use java script here for client side
> > scripting...but how exactly do i need to write this java script..i am
> > confused..and where will it fit in my aspx page...
> > Please can you guide me...
> > Thanx in advance:-)
> >
> > regards,
> > Smita.
> >
> >
>
>