Applying style to image control from the server side
hi guys,
Can u guys pls tell how to apply style to an image control in the server side.
I want to make it visible and invisible .. i hav tried it with imgControl.Visible.. but, that doesn't serve my needs..
I'm also using some client script to do some validations on button clicks.. so setting imgControl.visible = false, generates error .. saying that ' object required'..
thanx ..:-)
Re: Applying style to image control from the server side
Dear Dineshgirij,
apply this code see if it works,
imgControl.style.add(HtmlTextWriterStyle.Display, "block");