S
Sue
Anyone have any ideas on why the code below will show up
in a browser's sourcecode as an empty table, and is not
visible?
aspx:
<headertemplate>
<asp:Table ID="MyTable" runat="server" />
</headertemplate>
codebehind:
Class MyClass....
Protected WithEvents CaseTypeHeaderTable As
System.Web.UI.WebControls.Table = New
System.Web.UI.WebControls.Table
Protected WithEvents CaseTypeSortButton As
System.Web.UI.WebControls.Button = New
System.Web.UI.WebControls.Button
Protected WithEvents CaseTypeFilterDropDown As
System.Web.UI.WebControls.DropDownList = New
System.Web.UI.WebControls.DropDownList
Protected WithEvents CaseTypeHRow1 As
System.Web.UI.WebControls.TableRow = New
System.Web.UI.WebControls.TableRow
Protected WithEvents CaseTypeHRow2 As
System.Web.UI.WebControls.TableRow = New
System.Web.UI.WebControls.TableRow
Protected WithEvents CaseTypeHCell1 As
System.Web.UI.WebControls.TableCell = New
System.Web.UI.WebControls.TableCell
Protected WithEvents CaseTypeHCell2 As
System.Web.UI.WebControls.TableCell = New
System.Web.UI.WebControls.TableCell
private sub Page_Load.....
call setMyTable()
end sub
Private Sub setMyTable()
With Me.MySortButton
.BackColor = Color.Maroon
.ForeColor = Color.White
.ID = "MySortButton"
.Text = "Sort This Column"
.ToolTip = "Click to sort this column"
.EnableViewState = True
End With
With Me.MyFilterBox
.ID = "MyFilterBox"
.ToolTip = "Enter value on which to filter records
and press [ENTER]. To show all records clear the box and
press [ENTER]."
.EnableViewState = True
End With
With Me.MyCell1
.VerticalAlign = VerticalAlign.Bottom
.HorizontalAlign = HorizontalAlign.Center
.Controls.Add(Me.MySortButton)
End With
With Me.MyCell2
.HorizontalAlign = HorizontalAlign.Center
.VerticalAlign = VerticalAlign.Top
.Controls.Add(Me.MyFilterBox)
End With
With Me.MyRow1
.Cells.Add(Me.MyCell1)
End With
With Me.MyRow2
.Cells.Add(Me.MyCell2)
End With
With Me.MyTable
.Rows.Add(Me.MyRow1)
.Rows.Add(Me.MyRow2)
End With
End Sub
End Class
tia for any help,
Sue
in a browser's sourcecode as an empty table, and is not
visible?
aspx:
<headertemplate>
<asp:Table ID="MyTable" runat="server" />
</headertemplate>
codebehind:
Class MyClass....
Protected WithEvents CaseTypeHeaderTable As
System.Web.UI.WebControls.Table = New
System.Web.UI.WebControls.Table
Protected WithEvents CaseTypeSortButton As
System.Web.UI.WebControls.Button = New
System.Web.UI.WebControls.Button
Protected WithEvents CaseTypeFilterDropDown As
System.Web.UI.WebControls.DropDownList = New
System.Web.UI.WebControls.DropDownList
Protected WithEvents CaseTypeHRow1 As
System.Web.UI.WebControls.TableRow = New
System.Web.UI.WebControls.TableRow
Protected WithEvents CaseTypeHRow2 As
System.Web.UI.WebControls.TableRow = New
System.Web.UI.WebControls.TableRow
Protected WithEvents CaseTypeHCell1 As
System.Web.UI.WebControls.TableCell = New
System.Web.UI.WebControls.TableCell
Protected WithEvents CaseTypeHCell2 As
System.Web.UI.WebControls.TableCell = New
System.Web.UI.WebControls.TableCell
private sub Page_Load.....
call setMyTable()
end sub
Private Sub setMyTable()
With Me.MySortButton
.BackColor = Color.Maroon
.ForeColor = Color.White
.ID = "MySortButton"
.Text = "Sort This Column"
.ToolTip = "Click to sort this column"
.EnableViewState = True
End With
With Me.MyFilterBox
.ID = "MyFilterBox"
.ToolTip = "Enter value on which to filter records
and press [ENTER]. To show all records clear the box and
press [ENTER]."
.EnableViewState = True
End With
With Me.MyCell1
.VerticalAlign = VerticalAlign.Bottom
.HorizontalAlign = HorizontalAlign.Center
.Controls.Add(Me.MySortButton)
End With
With Me.MyCell2
.HorizontalAlign = HorizontalAlign.Center
.VerticalAlign = VerticalAlign.Top
.Controls.Add(Me.MyFilterBox)
End With
With Me.MyRow1
.Cells.Add(Me.MyCell1)
End With
With Me.MyRow2
.Cells.Add(Me.MyCell2)
End With
With Me.MyTable
.Rows.Add(Me.MyRow1)
.Rows.Add(Me.MyRow2)
End With
End Sub
End Class
tia for any help,
Sue