M
Mich
Hi,
1)
i defined a html line in the aspx file like this but it's still visible::
<hr id="hr1" visible="false" />
So i defined it like this and now it's hidden:
<hr id="hr1" style="visibility:hidden" />
My first question: why does it not work with property 'visible' (it's
present in the dropdownlist of Visual Web Dev.)?
2)
In code-behind, i want to make it visible:
Dim hr As HtmlControl
hr = FindControl("hr1")
hr.Style("visibility") = "visible"
bit this gives an error (Object reference not set to an instance of an
object)
on line "hr.Style("visibility") = "visible"
What's wrong with this code?
Thanks for help
Mich
1)
i defined a html line in the aspx file like this but it's still visible::
<hr id="hr1" visible="false" />
So i defined it like this and now it's hidden:
<hr id="hr1" style="visibility:hidden" />
My first question: why does it not work with property 'visible' (it's
present in the dropdownlist of Visual Web Dev.)?
2)
In code-behind, i want to make it visible:
Dim hr As HtmlControl
hr = FindControl("hr1")
hr.Style("visibility") = "visible"
bit this gives an error (Object reference not set to an instance of an
object)
on line "hr.Style("visibility") = "visible"
What's wrong with this code?
Thanks for help
Mich