I'm trying to build a user custom control (.ascx)
I want to support absolute positioning in grid layout
I'm using a grid panel (div - htmlgenericcontrol) and define a STYLE Property , but when I run the project , I get an "Object reference not set to an instance of an object."
Here's my code , what's wrong?
(I'm Using .Net FrameWork 1.1 & VS.Net 2003)
Protected WithEvents pnlGrid1 As System.Web.UI.HtmlControls.HtmlGenericControl
.
.
.
Public Property Style() As String
Get
Return pnlGrid1.Attributes.Item("style")
End Get
Set(ByVal Value As String)
pnlGrid1.Attributes.Item("style") = Value
End Set
End Property
And here's the HTML code
<DIV id="pnlGrid1" style="Z-INDEX: 101; POSITION: absolute" ms_positioning="GridLayout">
.
.
.
</DIV>
ThnX