> Awsome, that does it.
>
[quoted text clipped - 66 lines]
> > >
> > > <div >...
yes
ddlSearch.Attributes.Add("onchange", "return toggleDiv()")
bodytag.Attributes.Add("onload", "return toggleDiv()")
i have these two lines in between that if stmt but I tried both in and
outside that if stmt and saw no difference.
Thanks
> I can only make a guess without seeing code
>
[quoted text clipped - 71 lines]
> > > >
> > > > <div >...
Sreejith Ram - 28 Oct 2005 22:19 GMT
Well,my guess was that your onload=togglediv() is not working the first time
or in postbacks.. I meant you may have some other server side code to hide
div, like below ..
if(!Page.PostBack)
{
if(somevalue="0")
{
div1.attributes.add("style","visibility:none") ;
div1.attributes.add("style","visibility:hidden") ;
}
}
Any case the bottmline is, if one need to access the HTML elements using
javascript when the page loads, use Page.RegisterStartupScript ... :)
> yes
> ddlSearch.Attributes.Add("onchange", "return toggleDiv()")
[quoted text clipped - 80 lines]
> > > > >
> > > > > <div >...