473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Adding webcontrols.table to aspx - not rendering

Sue
On code-behind page:
(attributes set programatically for each of these elements)
linkbutton added to tablecell
textbox added to tablecell
tablecells added to tablerow
tablerow added to table (table.ID is TestTable)
On .aspx page:
<HeaderTemplate>
<asp:Table ID="TestTable" runat="Server" />
</HeaderTemplate>

Source code on .aspx page in browser shows the table and it's controls are
correctly created and placed. Controls for the Linkbutton and Textbox do
not display in browser. I suspect it has something to do with the
runat="server" attribute for the linkbutton or textbox for which I do not
find an attribute I can set (e.g. linkbutton.runat = "server"). Any ideas
on how I can get these elements to display?

tia,
Sue W.

Nov 22 '05 #1
13 1127
Hi Sue,

This problem doesn't occur to the following code snippet. Does it work on
your side? If so, you may want to show me the code snippet on your side so
that I can test it. Thanks.

private void Page_Load(object sender, System.EventArgs e)
{
int numrows = 3;
int numcells = 2;
for (int j=0; j<numrows; j++)
{
TableRow r = new TableRow();
for (int i=0; i<numcells; i++)
{
TableCell c = new TableCell();
LinkButton lb=new LinkButton ();

lb.Text=i.ToString();
if(i==0)c.Controls.Add(lb);
else c.Controls.Add(new TextBox());
r.Cells.Add(c);
}
Table1.Rows.Add(r);
}
}

Best Regards,
Lewis Wang
Support Professional

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| MIME-Version: 1.0
| X-MIMETrack: Serialize by Notes Client on Susan L WILLIS/MUL/OJD(Release
6.0.1|February
| 07, 2003) at 07/23/2003 11:45:57 AM,
| Serialize complete at 07/23/2003 11:45:57 AM,
| Serialize by Notes Client on Susan L WILLIS/MUL/OJD(Release
6.0.1|February
| 07, 2003) at 07/23/2003 11:46:02 AM,
| Serialize complete at 07/23/2003 11:46:02 AM
| From: Su*@ojd.state.or.us
| Subject: Adding webcontrols.table to aspx - not rendering
| X-Newsreader: Lotus Notes Release 6.0.1 February 07, 2003
| Content-Type: text/plain; charset="US-ASCII"
| Message-ID: <#T**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| Date: Wed, 23 Jul 2003 11:46:03 -0700
| NNTP-Posting-Host: 159.121.96.200
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102197
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| On code-behind page:
| (attributes set programatically for each of these elements)
| linkbutton added to tablecell
| textbox added to tablecell
| tablecells added to tablerow
| tablerow added to table (table.ID is TestTable)
| On .aspx page:
| <HeaderTemplate>
| <asp:Table ID="TestTable" runat="Server" />
| </HeaderTemplate>
|
| Source code on .aspx page in browser shows the table and it's controls
are
| correctly created and placed. Controls for the Linkbutton and Textbox do
| not display in browser. I suspect it has something to do with the
| runat="server" attribute for the linkbutton or textbox for which I do not
| find an attribute I can set (e.g. linkbutton.runat = "server"). Any ideas
| on how I can get these elements to display?
|
| tia,
| Sue W.
|
|

Nov 22 '05 #2
Hi Sue,

This problem doesn't occur to the following code snippet. Does it work on
your side? If so, you may want to show me the code snippet on your side so
that I can test it. Thanks.

private void Page_Load(object sender, System.EventArgs e)
{
int numrows = 3;
int numcells = 2;
for (int j=0; j<numrows; j++)
{
TableRow r = new TableRow();
for (int i=0; i<numcells; i++)
{
TableCell c = new TableCell();
LinkButton lb=new LinkButton ();

lb.Text=i.ToString();
if(i==0)c.Controls.Add(lb);
else c.Controls.Add(new TextBox());
r.Cells.Add(c);
}
Table1.Rows.Add(r);
}
}

Best Regards,
Lewis Wang
Support Professional

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| MIME-Version: 1.0
| X-MIMETrack: Serialize by Notes Client on Susan L WILLIS/MUL/OJD(Release
6.0.1|February
| 07, 2003) at 07/23/2003 11:45:57 AM,
| Serialize complete at 07/23/2003 11:45:57 AM,
| Serialize by Notes Client on Susan L WILLIS/MUL/OJD(Release
6.0.1|February
| 07, 2003) at 07/23/2003 11:46:02 AM,
| Serialize complete at 07/23/2003 11:46:02 AM
| From: Su*@ojd.state.or.us
| Subject: Adding webcontrols.table to aspx - not rendering
| X-Newsreader: Lotus Notes Release 6.0.1 February 07, 2003
| Content-Type: text/plain; charset="US-ASCII"
| Message-ID: <#T**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| Date: Wed, 23 Jul 2003 11:46:03 -0700
| NNTP-Posting-Host: 159.121.96.200
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102197
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| On code-behind page:
| (attributes set programatically for each of these elements)
| linkbutton added to tablecell
| textbox added to tablecell
| tablecells added to tablerow
| tablerow added to table (table.ID is TestTable)
| On .aspx page:
| <HeaderTemplate>
| <asp:Table ID="TestTable" runat="Server" />
| </HeaderTemplate>
|
| Source code on .aspx page in browser shows the table and it's controls
are
| correctly created and placed. Controls for the Linkbutton and Textbox do
| not display in browser. I suspect it has something to do with the
| runat="server" attribute for the linkbutton or textbox for which I do not
| find an attribute I can set (e.g. linkbutton.runat = "server"). Any ideas
| on how I can get these elements to display?
|
| tia,
| Sue W.
|
|

Nov 22 '05 #3
Hi Sue,

This problem doesn't occur to the following code snippet. Does it work on
your side? If so, you may want to show me the code snippet on your side so
that I can test it. Thanks.

private void Page_Load(object sender, System.EventArgs e)
{
int numrows = 3;
int numcells = 2;
for (int j=0; j<numrows; j++)
{
TableRow r = new TableRow();
for (int i=0; i<numcells; i++)
{
TableCell c = new TableCell();
LinkButton lb=new LinkButton ();

lb.Text=i.ToString();
if(i==0)c.Controls.Add(lb);
else c.Controls.Add(new TextBox());
r.Cells.Add(c);
}
Table1.Rows.Add(r);
}
}

Best Regards,
Lewis Wang
Support Professional

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| MIME-Version: 1.0
| X-MIMETrack: Serialize by Notes Client on Susan L WILLIS/MUL/OJD(Release
6.0.1|February
| 07, 2003) at 07/23/2003 11:45:57 AM,
| Serialize complete at 07/23/2003 11:45:57 AM,
| Serialize by Notes Client on Susan L WILLIS/MUL/OJD(Release
6.0.1|February
| 07, 2003) at 07/23/2003 11:46:02 AM,
| Serialize complete at 07/23/2003 11:46:02 AM
| From: Su*@ojd.state.or.us
| Subject: Adding webcontrols.table to aspx - not rendering
| X-Newsreader: Lotus Notes Release 6.0.1 February 07, 2003
| Content-Type: text/plain; charset="US-ASCII"
| Message-ID: <#T**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| Date: Wed, 23 Jul 2003 11:46:03 -0700
| NNTP-Posting-Host: 159.121.96.200
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102197
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| On code-behind page:
| (attributes set programatically for each of these elements)
| linkbutton added to tablecell
| textbox added to tablecell
| tablecells added to tablerow
| tablerow added to table (table.ID is TestTable)
| On .aspx page:
| <HeaderTemplate>
| <asp:Table ID="TestTable" runat="Server" />
| </HeaderTemplate>
|
| Source code on .aspx page in browser shows the table and it's controls
are
| correctly created and placed. Controls for the Linkbutton and Textbox do
| not display in browser. I suspect it has something to do with the
| runat="server" attribute for the linkbutton or textbox for which I do not
| find an attribute I can set (e.g. linkbutton.runat = "server"). Any ideas
| on how I can get these elements to display?
|
| tia,
| Sue W.
|
|

Nov 22 '05 #4
Hi Sue,

Thank you for your feedback.

Do you want to add a textbox and a linkbutton into table programmingly,
then put the table into a HeaderTemplate of datagrid's column? The
following code snippet demonstrates this.

If I misunderstood your concern, would you please provide more explanations
on your requirement? Thank you.

Dim CaseNumberHeaderTable As Table

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal e
As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
If e.Item.ItemType = ListItemType.Header Then
CaseNumberHeaderTable =
CType(e.Item.FindControl("CaseNumberHeaderTable"), Table)
setCaseNumberHeaderTable()
End If

End Sub

Private Sub setCaseNumberHeaderTable()

Dim CaseNumberHRow1 As TableRow = New TableRow
Dim CaseNumberHRow2 As TableRow = New TableRow
Dim CaseNumberHCell1 As TableCell = New TableCell
Dim CaseNumberHCell2 As TableCell = New TableCell

Dim CaseNumberSortButton As LinkButton = New LinkButton
Dim CaseNumberFilterBox As TextBox = New TextBox

CaseNumberSortButton.ID = "CaseNumberSortButton"
CaseNumberSortButton.Text = "Sort CaseNo"
CaseNumberSortButton.ToolTip = "Click to sort the case number
column"

CaseNumberFilterBox.ID = "CaseNumberFilterBox"
CaseNumberFilterBox.ToolTip = "Enter case number on which to filter
records"

CaseNumberHCell1.VerticalAlign = VerticalAlign.Bottom
CaseNumberHCell1.HorizontalAlign = HorizontalAlign.Center
CaseNumberHCell1.Controls.Add(CaseNumberSortButton )

CaseNumberHCell2.VerticalAlign = VerticalAlign.Top
CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
CaseNumberHCell2.Controls.Add(CaseNumberFilterBox)
CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
CaseNumberHeaderTable.Controls.Add(CaseNumberHRow1 )
CaseNumberHeaderTable.Controls.Add(CaseNumberHRow2 )
CaseNumberHeaderTable.ID = "CaseNumberHeaderTable"
CaseNumberHeaderTable.BorderColor = Color.Blue
End Sub
Lewis Wang

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering
| Date: Thu, 24 Jul 2003 11:38:45 -0700
| Lines: 87
| Message-ID: <01****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102328
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >your side? If so, you may want to show me the code
| snippet on your side so
| >that I can test it. Thanks.
|
| Lewis, tried your code, but I'm working in VB and
| couldn't remember half of how to get things set up for C
| (#?). I do have a similar table working just find
| further up in the web page. It's not part of a datagrid
| though. Below is the relevant code for this problem.
|
| Protected WithEvents CaseNumberSortButton As LinkButton =
| LinkButton
| Protected WithEvents CaseNumberFilterBox As TextBox = New
| TextBox
| Protected WithEvents CaseNumberHeaderTable As Table = New
| Table
| Protected WithEvents CaseNumberHRow1 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHRow2 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHCell1 As TableCell = New
| TableCell
| Protected WithEvents CaseNumberHCell2 As TableCell = New
| TableCell
|
| Private Sub Page_Load(ByVal sender As System.Object,
| ByVal e As System.EventArgs) Handles MyBase.Load
| Call setCaseNumberHeaderTable()
| End Sub
|
| Public Sub setCaseNumberHeaderTable()
| With CaseNumberSortButton
| .ID = "CaseNumberSortButton"
| .Text = "Sort CaseNo"
| .ToolTip = "Click to sort the case number column"
| End With
| With CaseNumberFilterBox
| .ID = "CaseNumberFilterBox"
| .ToolTip = "Enter case number on which to filter
| records"
| End With
| With Me.CaseNumberHCell1
| .VerticalAlign = VerticalAlign.Bottom
| .HorizontalAlign = HorizontalAlign.Center
| .Controls.Add(CaseNumberSortButton)
| End With
| With CaseNumberHCell2
| .VerticalAlign = VerticalAlign.Top
| .Text = "Filter by: <BR><HR><BR>"
| .Controls.Add(CaseNumberFilterBox)
| End With
| With Me.CaseNumberHRow1
| .Controls.Add(CaseNumberHCell1)
| End With
| With CaseNumberHRow2
| .Controls.Add(CaseNumberHCell2)
| End With
| With CaseNumberHeaderTable
| .Controls.Add(CaseNumberHRow1)
| .Controls.Add(CaseNumberHRow2)
| .ID = "CaseNumberHeaderTable"
| .Width.Percentage(100)
| End With
| End Sub
|
| .aspx file:
|
| <asp:datagrid id=DG runat="server">
| <Columns>
| <asp:TemplateColumn SortExpression="CaseNo">
| <HeaderTemplate>
| <asp:Table ID="CaseNumberHeaderTable"
| Runat="Server" />
| </HeaderTemplate>
| ......
| </asp:TemplateColumn>
| </Columns>
| </asp:Datagrid>
|
| Any help appreciated...
|
| Sue
|
|
|
|
|
|

Nov 22 '05 #5
Hi Sue,

Thank you for your feedback.

Do you want to add a textbox and a linkbutton into table programmingly,
then put the table into a HeaderTemplate of datagrid's column? The
following code snippet demonstrates this.

If I misunderstood your concern, would you please provide more explanations
on your requirement? Thank you.

Dim CaseNumberHeaderTable As Table

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal e
As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
If e.Item.ItemType = ListItemType.Header Then
CaseNumberHeaderTable =
CType(e.Item.FindControl("CaseNumberHeaderTable"), Table)
setCaseNumberHeaderTable()
End If

End Sub

Private Sub setCaseNumberHeaderTable()

Dim CaseNumberHRow1 As TableRow = New TableRow
Dim CaseNumberHRow2 As TableRow = New TableRow
Dim CaseNumberHCell1 As TableCell = New TableCell
Dim CaseNumberHCell2 As TableCell = New TableCell

Dim CaseNumberSortButton As LinkButton = New LinkButton
Dim CaseNumberFilterBox As TextBox = New TextBox

CaseNumberSortButton.ID = "CaseNumberSortButton"
CaseNumberSortButton.Text = "Sort CaseNo"
CaseNumberSortButton.ToolTip = "Click to sort the case number
column"

CaseNumberFilterBox.ID = "CaseNumberFilterBox"
CaseNumberFilterBox.ToolTip = "Enter case number on which to filter
records"

CaseNumberHCell1.VerticalAlign = VerticalAlign.Bottom
CaseNumberHCell1.HorizontalAlign = HorizontalAlign.Center
CaseNumberHCell1.Controls.Add(CaseNumberSortButton )

CaseNumberHCell2.VerticalAlign = VerticalAlign.Top
CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
CaseNumberHCell2.Controls.Add(CaseNumberFilterBox)
CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
CaseNumberHeaderTable.Controls.Add(CaseNumberHRow1 )
CaseNumberHeaderTable.Controls.Add(CaseNumberHRow2 )
CaseNumberHeaderTable.ID = "CaseNumberHeaderTable"
CaseNumberHeaderTable.BorderColor = Color.Blue
End Sub
Lewis Wang

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering
| Date: Thu, 24 Jul 2003 11:38:45 -0700
| Lines: 87
| Message-ID: <01****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102328
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >your side? If so, you may want to show me the code
| snippet on your side so
| >that I can test it. Thanks.
|
| Lewis, tried your code, but I'm working in VB and
| couldn't remember half of how to get things set up for C
| (#?). I do have a similar table working just find
| further up in the web page. It's not part of a datagrid
| though. Below is the relevant code for this problem.
|
| Protected WithEvents CaseNumberSortButton As LinkButton =
| LinkButton
| Protected WithEvents CaseNumberFilterBox As TextBox = New
| TextBox
| Protected WithEvents CaseNumberHeaderTable As Table = New
| Table
| Protected WithEvents CaseNumberHRow1 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHRow2 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHCell1 As TableCell = New
| TableCell
| Protected WithEvents CaseNumberHCell2 As TableCell = New
| TableCell
|
| Private Sub Page_Load(ByVal sender As System.Object,
| ByVal e As System.EventArgs) Handles MyBase.Load
| Call setCaseNumberHeaderTable()
| End Sub
|
| Public Sub setCaseNumberHeaderTable()
| With CaseNumberSortButton
| .ID = "CaseNumberSortButton"
| .Text = "Sort CaseNo"
| .ToolTip = "Click to sort the case number column"
| End With
| With CaseNumberFilterBox
| .ID = "CaseNumberFilterBox"
| .ToolTip = "Enter case number on which to filter
| records"
| End With
| With Me.CaseNumberHCell1
| .VerticalAlign = VerticalAlign.Bottom
| .HorizontalAlign = HorizontalAlign.Center
| .Controls.Add(CaseNumberSortButton)
| End With
| With CaseNumberHCell2
| .VerticalAlign = VerticalAlign.Top
| .Text = "Filter by: <BR><HR><BR>"
| .Controls.Add(CaseNumberFilterBox)
| End With
| With Me.CaseNumberHRow1
| .Controls.Add(CaseNumberHCell1)
| End With
| With CaseNumberHRow2
| .Controls.Add(CaseNumberHCell2)
| End With
| With CaseNumberHeaderTable
| .Controls.Add(CaseNumberHRow1)
| .Controls.Add(CaseNumberHRow2)
| .ID = "CaseNumberHeaderTable"
| .Width.Percentage(100)
| End With
| End Sub
|
| .aspx file:
|
| <asp:datagrid id=DG runat="server">
| <Columns>
| <asp:TemplateColumn SortExpression="CaseNo">
| <HeaderTemplate>
| <asp:Table ID="CaseNumberHeaderTable"
| Runat="Server" />
| </HeaderTemplate>
| ......
| </asp:TemplateColumn>
| </Columns>
| </asp:Datagrid>
|
| Any help appreciated...
|
| Sue
|
|
|
|
|
|

Nov 22 '05 #6
Hi Sue,

Thank you for your feedback.

Do you want to add a textbox and a linkbutton into table programmingly,
then put the table into a HeaderTemplate of datagrid's column? The
following code snippet demonstrates this.

If I misunderstood your concern, would you please provide more explanations
on your requirement? Thank you.

Dim CaseNumberHeaderTable As Table

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal e
As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
If e.Item.ItemType = ListItemType.Header Then
CaseNumberHeaderTable =
CType(e.Item.FindControl("CaseNumberHeaderTable"), Table)
setCaseNumberHeaderTable()
End If

End Sub

Private Sub setCaseNumberHeaderTable()

Dim CaseNumberHRow1 As TableRow = New TableRow
Dim CaseNumberHRow2 As TableRow = New TableRow
Dim CaseNumberHCell1 As TableCell = New TableCell
Dim CaseNumberHCell2 As TableCell = New TableCell

Dim CaseNumberSortButton As LinkButton = New LinkButton
Dim CaseNumberFilterBox As TextBox = New TextBox

CaseNumberSortButton.ID = "CaseNumberSortButton"
CaseNumberSortButton.Text = "Sort CaseNo"
CaseNumberSortButton.ToolTip = "Click to sort the case number
column"

CaseNumberFilterBox.ID = "CaseNumberFilterBox"
CaseNumberFilterBox.ToolTip = "Enter case number on which to filter
records"

CaseNumberHCell1.VerticalAlign = VerticalAlign.Bottom
CaseNumberHCell1.HorizontalAlign = HorizontalAlign.Center
CaseNumberHCell1.Controls.Add(CaseNumberSortButton )

CaseNumberHCell2.VerticalAlign = VerticalAlign.Top
CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
CaseNumberHCell2.Controls.Add(CaseNumberFilterBox)
CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
CaseNumberHeaderTable.Controls.Add(CaseNumberHRow1 )
CaseNumberHeaderTable.Controls.Add(CaseNumberHRow2 )
CaseNumberHeaderTable.ID = "CaseNumberHeaderTable"
CaseNumberHeaderTable.BorderColor = Color.Blue
End Sub
Lewis Wang

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering
| Date: Thu, 24 Jul 2003 11:38:45 -0700
| Lines: 87
| Message-ID: <01****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102328
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >your side? If so, you may want to show me the code
| snippet on your side so
| >that I can test it. Thanks.
|
| Lewis, tried your code, but I'm working in VB and
| couldn't remember half of how to get things set up for C
| (#?). I do have a similar table working just find
| further up in the web page. It's not part of a datagrid
| though. Below is the relevant code for this problem.
|
| Protected WithEvents CaseNumberSortButton As LinkButton =
| LinkButton
| Protected WithEvents CaseNumberFilterBox As TextBox = New
| TextBox
| Protected WithEvents CaseNumberHeaderTable As Table = New
| Table
| Protected WithEvents CaseNumberHRow1 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHRow2 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHCell1 As TableCell = New
| TableCell
| Protected WithEvents CaseNumberHCell2 As TableCell = New
| TableCell
|
| Private Sub Page_Load(ByVal sender As System.Object,
| ByVal e As System.EventArgs) Handles MyBase.Load
| Call setCaseNumberHeaderTable()
| End Sub
|
| Public Sub setCaseNumberHeaderTable()
| With CaseNumberSortButton
| .ID = "CaseNumberSortButton"
| .Text = "Sort CaseNo"
| .ToolTip = "Click to sort the case number column"
| End With
| With CaseNumberFilterBox
| .ID = "CaseNumberFilterBox"
| .ToolTip = "Enter case number on which to filter
| records"
| End With
| With Me.CaseNumberHCell1
| .VerticalAlign = VerticalAlign.Bottom
| .HorizontalAlign = HorizontalAlign.Center
| .Controls.Add(CaseNumberSortButton)
| End With
| With CaseNumberHCell2
| .VerticalAlign = VerticalAlign.Top
| .Text = "Filter by: <BR><HR><BR>"
| .Controls.Add(CaseNumberFilterBox)
| End With
| With Me.CaseNumberHRow1
| .Controls.Add(CaseNumberHCell1)
| End With
| With CaseNumberHRow2
| .Controls.Add(CaseNumberHCell2)
| End With
| With CaseNumberHeaderTable
| .Controls.Add(CaseNumberHRow1)
| .Controls.Add(CaseNumberHRow2)
| .ID = "CaseNumberHeaderTable"
| .Width.Percentage(100)
| End With
| End Sub
|
| .aspx file:
|
| <asp:datagrid id=DG runat="server">
| <Columns>
| <asp:TemplateColumn SortExpression="CaseNo">
| <HeaderTemplate>
| <asp:Table ID="CaseNumberHeaderTable"
| Runat="Server" />
| </HeaderTemplate>
| ......
| </asp:TemplateColumn>
| </Columns>
| </asp:Datagrid>
|
| Any help appreciated...
|
| Sue
|
|
|
|
|
|

Nov 22 '05 #7
Sue
>If I misunderstood your concern, would you please
provide more explanations
on your requirement? Thank you.
This is exactly what I wish to do. I have tried the code
below (modified for my object names) and got an invalid
cast error message at the CType line. I know this is
simple, I'm just not tripping onto the correct syntax
<sigh>. I've tried various options for the CType without
success. Any other ideas?

tia,
Sue

Dim CaseNumberHeaderTable As Table

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal eAs System.Web.UI.WebControls.DataGridItemEventArgs) HandlesDataGrid1.ItemDataBound
If e.Item.ItemType = ListItemType.Header Then
CaseNumberHeaderTable =
CType(e.Item.FindControl("CaseNumberHeaderTable") , Table)
setCaseNumberHeaderTable()
End If

End Sub

Private Sub setCaseNumberHeaderTable()

Dim CaseNumberHRow1 As TableRow = New TableRow
Dim CaseNumberHRow2 As TableRow = New TableRow
Dim CaseNumberHCell1 As TableCell = New TableCell
Dim CaseNumberHCell2 As TableCell = New TableCell

Dim CaseNumberSortButton As LinkButton = New LinkButton Dim CaseNumberFilterBox As TextBox = New TextBox

CaseNumberSortButton.ID = "CaseNumberSortButton"
CaseNumberSortButton.Text = "Sort CaseNo"
CaseNumberSortButton.ToolTip = "Click to sort the case numbercolumn"

CaseNumberFilterBox.ID = "CaseNumberFilterBox"
CaseNumberFilterBox.ToolTip = "Enter case number on which to filterrecords"

CaseNumberHCell1.VerticalAlign = VerticalAlign.Bottom CaseNumberHCell1.HorizontalAlign = HorizontalAlign.Center CaseNumberHCell1.Controls.Add (CaseNumberSortButton)
CaseNumberHCell2.VerticalAlign = VerticalAlign.Top CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
CaseNumberHCell2.Controls.Add (CaseNumberFilterBox) CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
CaseNumberHeaderTable.Controls.Add (CaseNumberHRow1) CaseNumberHeaderTable.Controls.Add (CaseNumberHRow2) CaseNumberHeaderTable.ID = "CaseNumberHeaderTable" CaseNumberHeaderTable.BorderColor = Color.Blue
End Sub
Lewis Wang

This posting is provided "AS IS" with no warranties, and confers no rights.--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering| Date: Thu, 24 Jul 2003 11:38:45 -0700
| Lines: 87
| Message-ID: <01****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102328| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >your side? If so, you may want to show me the code
| snippet on your side so
| >that I can test it. Thanks.
|
| Lewis, tried your code, but I'm working in VB and
| couldn't remember half of how to get things set up for C| (#?). I do have a similar table working just find
| further up in the web page. It's not part of a datagrid| though. Below is the relevant code for this problem.
|
| Protected WithEvents CaseNumberSortButton As LinkButton =| LinkButton
| Protected WithEvents CaseNumberFilterBox As TextBox = New| TextBox
| Protected WithEvents CaseNumberHeaderTable As Table = New| Table
| Protected WithEvents CaseNumberHRow1 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHRow2 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHCell1 As TableCell = New| TableCell
| Protected WithEvents CaseNumberHCell2 As TableCell = New| TableCell
|
| Private Sub Page_Load(ByVal sender As System.Object,
| ByVal e As System.EventArgs) Handles MyBase.Load
| Call setCaseNumberHeaderTable()
| End Sub
|
| Public Sub setCaseNumberHeaderTable()
| With CaseNumberSortButton
| .ID = "CaseNumberSortButton"
| .Text = "Sort CaseNo"
| .ToolTip = "Click to sort the case number column"
| End With
| With CaseNumberFilterBox
| .ID = "CaseNumberFilterBox"
| .ToolTip = "Enter case number on which to filter
| records"
| End With
| With Me.CaseNumberHCell1
| .VerticalAlign = VerticalAlign.Bottom
| .HorizontalAlign = HorizontalAlign.Center
| .Controls.Add(CaseNumberSortButton)
| End With
| With CaseNumberHCell2
| .VerticalAlign = VerticalAlign.Top
| .Text = "Filter by: <BR><HR><BR>"
| .Controls.Add(CaseNumberFilterBox)
| End With
| With Me.CaseNumberHRow1
| .Controls.Add(CaseNumberHCell1)
| End With
| With CaseNumberHRow2
| .Controls.Add(CaseNumberHCell2)
| End With
| With CaseNumberHeaderTable
| .Controls.Add(CaseNumberHRow1)
| .Controls.Add(CaseNumberHRow2)
| .ID = "CaseNumberHeaderTable"
| .Width.Percentage(100)
| End With
| End Sub
|
| .aspx file:
|
| <asp:datagrid id=DG runat="server">
| <Columns>
| <asp:TemplateColumn SortExpression="CaseNo">
| <HeaderTemplate>
| <asp:Table ID="CaseNumberHeaderTable"
| Runat="Server" />
| </HeaderTemplate>
| ......
| </asp:TemplateColumn>
| </Columns>
| </asp:Datagrid>
|
| Any help appreciated...
|
| Sue
|
|
|
|
|
|

.

Nov 22 '05 #8
Sue
>If I misunderstood your concern, would you please
provide more explanations
on your requirement? Thank you.
This is exactly what I wish to do. I have tried the code
below (modified for my object names) and got an invalid
cast error message at the CType line. I know this is
simple, I'm just not tripping onto the correct syntax
<sigh>. I've tried various options for the CType without
success. Any other ideas?

tia,
Sue

Dim CaseNumberHeaderTable As Table

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal eAs System.Web.UI.WebControls.DataGridItemEventArgs) HandlesDataGrid1.ItemDataBound
If e.Item.ItemType = ListItemType.Header Then
CaseNumberHeaderTable =
CType(e.Item.FindControl("CaseNumberHeaderTable") , Table)
setCaseNumberHeaderTable()
End If

End Sub

Private Sub setCaseNumberHeaderTable()

Dim CaseNumberHRow1 As TableRow = New TableRow
Dim CaseNumberHRow2 As TableRow = New TableRow
Dim CaseNumberHCell1 As TableCell = New TableCell
Dim CaseNumberHCell2 As TableCell = New TableCell

Dim CaseNumberSortButton As LinkButton = New LinkButton Dim CaseNumberFilterBox As TextBox = New TextBox

CaseNumberSortButton.ID = "CaseNumberSortButton"
CaseNumberSortButton.Text = "Sort CaseNo"
CaseNumberSortButton.ToolTip = "Click to sort the case numbercolumn"

CaseNumberFilterBox.ID = "CaseNumberFilterBox"
CaseNumberFilterBox.ToolTip = "Enter case number on which to filterrecords"

CaseNumberHCell1.VerticalAlign = VerticalAlign.Bottom CaseNumberHCell1.HorizontalAlign = HorizontalAlign.Center CaseNumberHCell1.Controls.Add (CaseNumberSortButton)
CaseNumberHCell2.VerticalAlign = VerticalAlign.Top CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
CaseNumberHCell2.Controls.Add (CaseNumberFilterBox) CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
CaseNumberHeaderTable.Controls.Add (CaseNumberHRow1) CaseNumberHeaderTable.Controls.Add (CaseNumberHRow2) CaseNumberHeaderTable.ID = "CaseNumberHeaderTable" CaseNumberHeaderTable.BorderColor = Color.Blue
End Sub
Lewis Wang

This posting is provided "AS IS" with no warranties, and confers no rights.--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering| Date: Thu, 24 Jul 2003 11:38:45 -0700
| Lines: 87
| Message-ID: <01****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102328| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >your side? If so, you may want to show me the code
| snippet on your side so
| >that I can test it. Thanks.
|
| Lewis, tried your code, but I'm working in VB and
| couldn't remember half of how to get things set up for C| (#?). I do have a similar table working just find
| further up in the web page. It's not part of a datagrid| though. Below is the relevant code for this problem.
|
| Protected WithEvents CaseNumberSortButton As LinkButton =| LinkButton
| Protected WithEvents CaseNumberFilterBox As TextBox = New| TextBox
| Protected WithEvents CaseNumberHeaderTable As Table = New| Table
| Protected WithEvents CaseNumberHRow1 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHRow2 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHCell1 As TableCell = New| TableCell
| Protected WithEvents CaseNumberHCell2 As TableCell = New| TableCell
|
| Private Sub Page_Load(ByVal sender As System.Object,
| ByVal e As System.EventArgs) Handles MyBase.Load
| Call setCaseNumberHeaderTable()
| End Sub
|
| Public Sub setCaseNumberHeaderTable()
| With CaseNumberSortButton
| .ID = "CaseNumberSortButton"
| .Text = "Sort CaseNo"
| .ToolTip = "Click to sort the case number column"
| End With
| With CaseNumberFilterBox
| .ID = "CaseNumberFilterBox"
| .ToolTip = "Enter case number on which to filter
| records"
| End With
| With Me.CaseNumberHCell1
| .VerticalAlign = VerticalAlign.Bottom
| .HorizontalAlign = HorizontalAlign.Center
| .Controls.Add(CaseNumberSortButton)
| End With
| With CaseNumberHCell2
| .VerticalAlign = VerticalAlign.Top
| .Text = "Filter by: <BR><HR><BR>"
| .Controls.Add(CaseNumberFilterBox)
| End With
| With Me.CaseNumberHRow1
| .Controls.Add(CaseNumberHCell1)
| End With
| With CaseNumberHRow2
| .Controls.Add(CaseNumberHCell2)
| End With
| With CaseNumberHeaderTable
| .Controls.Add(CaseNumberHRow1)
| .Controls.Add(CaseNumberHRow2)
| .ID = "CaseNumberHeaderTable"
| .Width.Percentage(100)
| End With
| End Sub
|
| .aspx file:
|
| <asp:datagrid id=DG runat="server">
| <Columns>
| <asp:TemplateColumn SortExpression="CaseNo">
| <HeaderTemplate>
| <asp:Table ID="CaseNumberHeaderTable"
| Runat="Server" />
| </HeaderTemplate>
| ......
| </asp:TemplateColumn>
| </Columns>
| </asp:Datagrid>
|
| Any help appreciated...
|
| Sue
|
|
|
|
|
|

.

Nov 22 '05 #9
Sue
>If I misunderstood your concern, would you please
provide more explanations
on your requirement? Thank you.
This is exactly what I wish to do. I have tried the code
below (modified for my object names) and got an invalid
cast error message at the CType line. I know this is
simple, I'm just not tripping onto the correct syntax
<sigh>. I've tried various options for the CType without
success. Any other ideas?

tia,
Sue

Dim CaseNumberHeaderTable As Table

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal eAs System.Web.UI.WebControls.DataGridItemEventArgs) HandlesDataGrid1.ItemDataBound
If e.Item.ItemType = ListItemType.Header Then
CaseNumberHeaderTable =
CType(e.Item.FindControl("CaseNumberHeaderTable") , Table)
setCaseNumberHeaderTable()
End If

End Sub

Private Sub setCaseNumberHeaderTable()

Dim CaseNumberHRow1 As TableRow = New TableRow
Dim CaseNumberHRow2 As TableRow = New TableRow
Dim CaseNumberHCell1 As TableCell = New TableCell
Dim CaseNumberHCell2 As TableCell = New TableCell

Dim CaseNumberSortButton As LinkButton = New LinkButton Dim CaseNumberFilterBox As TextBox = New TextBox

CaseNumberSortButton.ID = "CaseNumberSortButton"
CaseNumberSortButton.Text = "Sort CaseNo"
CaseNumberSortButton.ToolTip = "Click to sort the case numbercolumn"

CaseNumberFilterBox.ID = "CaseNumberFilterBox"
CaseNumberFilterBox.ToolTip = "Enter case number on which to filterrecords"

CaseNumberHCell1.VerticalAlign = VerticalAlign.Bottom CaseNumberHCell1.HorizontalAlign = HorizontalAlign.Center CaseNumberHCell1.Controls.Add (CaseNumberSortButton)
CaseNumberHCell2.VerticalAlign = VerticalAlign.Top CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
CaseNumberHCell2.Controls.Add (CaseNumberFilterBox) CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
CaseNumberHeaderTable.Controls.Add (CaseNumberHRow1) CaseNumberHeaderTable.Controls.Add (CaseNumberHRow2) CaseNumberHeaderTable.ID = "CaseNumberHeaderTable" CaseNumberHeaderTable.BorderColor = Color.Blue
End Sub
Lewis Wang

This posting is provided "AS IS" with no warranties, and confers no rights.--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering| Date: Thu, 24 Jul 2003 11:38:45 -0700
| Lines: 87
| Message-ID: <01****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102328| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >your side? If so, you may want to show me the code
| snippet on your side so
| >that I can test it. Thanks.
|
| Lewis, tried your code, but I'm working in VB and
| couldn't remember half of how to get things set up for C| (#?). I do have a similar table working just find
| further up in the web page. It's not part of a datagrid| though. Below is the relevant code for this problem.
|
| Protected WithEvents CaseNumberSortButton As LinkButton =| LinkButton
| Protected WithEvents CaseNumberFilterBox As TextBox = New| TextBox
| Protected WithEvents CaseNumberHeaderTable As Table = New| Table
| Protected WithEvents CaseNumberHRow1 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHRow2 As TableRow = New
| TableRow
| Protected WithEvents CaseNumberHCell1 As TableCell = New| TableCell
| Protected WithEvents CaseNumberHCell2 As TableCell = New| TableCell
|
| Private Sub Page_Load(ByVal sender As System.Object,
| ByVal e As System.EventArgs) Handles MyBase.Load
| Call setCaseNumberHeaderTable()
| End Sub
|
| Public Sub setCaseNumberHeaderTable()
| With CaseNumberSortButton
| .ID = "CaseNumberSortButton"
| .Text = "Sort CaseNo"
| .ToolTip = "Click to sort the case number column"
| End With
| With CaseNumberFilterBox
| .ID = "CaseNumberFilterBox"
| .ToolTip = "Enter case number on which to filter
| records"
| End With
| With Me.CaseNumberHCell1
| .VerticalAlign = VerticalAlign.Bottom
| .HorizontalAlign = HorizontalAlign.Center
| .Controls.Add(CaseNumberSortButton)
| End With
| With CaseNumberHCell2
| .VerticalAlign = VerticalAlign.Top
| .Text = "Filter by: <BR><HR><BR>"
| .Controls.Add(CaseNumberFilterBox)
| End With
| With Me.CaseNumberHRow1
| .Controls.Add(CaseNumberHCell1)
| End With
| With CaseNumberHRow2
| .Controls.Add(CaseNumberHCell2)
| End With
| With CaseNumberHeaderTable
| .Controls.Add(CaseNumberHRow1)
| .Controls.Add(CaseNumberHRow2)
| .ID = "CaseNumberHeaderTable"
| .Width.Percentage(100)
| End With
| End Sub
|
| .aspx file:
|
| <asp:datagrid id=DG runat="server">
| <Columns>
| <asp:TemplateColumn SortExpression="CaseNo">
| <HeaderTemplate>
| <asp:Table ID="CaseNumberHeaderTable"
| Runat="Server" />
| </HeaderTemplate>
| ......
| </asp:TemplateColumn>
| </Columns>
| </asp:Datagrid>
|
| Any help appreciated...
|
| Sue
|
|
|
|
|
|

.

Nov 22 '05 #10
Hi Sue,

The Type should be the same as control's type <asp:Table
ID="CaseNumberHeaderTable" Runat="Server" />. Otherwise, there will be an
error. If FindControl menthod returns nothing, there will also be an error.
You can use code similar to the following to perform the cast.

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal e
As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound

If e.Item.ItemType = ListItemType.Header Then
Dim ctrl As Control =
e.Item.FindControl("CaseNumberHeaderTable")
If Not ctrl Is Nothing Then
CaseNumberHeaderTable = CType(ctrl, Table)
setCaseNumberHeaderTable()
End If
End If

End Sub

Please let know if it helps. Thanks.

Lewis

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
<01****************************@phx.gbl>
<Ip**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering
| Date: Mon, 28 Jul 2003 10:03:35 -0700
| Lines: 204
| Message-ID: <33****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNVKi7XO2W/Wc7XRJSgT85DFF8sFw==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102600
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >If I misunderstood your concern, would you please
| provide more explanations
| >on your requirement? Thank you.
|
| This is exactly what I wish to do. I have tried the code
| below (modified for my object names) and got an invalid
| cast error message at the CType line. I know this is
| simple, I'm just not tripping onto the correct syntax
| <sigh>. I've tried various options for the CType without
| success. Any other ideas?
|
| tia,
| Sue
|
| >
| >Dim CaseNumberHeaderTable As Table
| >
| >Private Sub DataGrid1_ItemDataBound(ByVal sender As
| System.Object, ByVal e
| >As System.Web.UI.WebControls.DataGridItemEventArgs)
| Handles
| >DataGrid1.ItemDataBound
| > If e.Item.ItemType = ListItemType.Header Then
| > CaseNumberHeaderTable =
| >CType(e.Item.FindControl("CaseNumberHeaderTable") , Table)
| > setCaseNumberHeaderTable()
| > End If
| >
| > End Sub
| >
| >Private Sub setCaseNumberHeaderTable()
| >
| > Dim CaseNumberHRow1 As TableRow = New TableRow
| > Dim CaseNumberHRow2 As TableRow = New TableRow
| > Dim CaseNumberHCell1 As TableCell = New TableCell
| > Dim CaseNumberHCell2 As TableCell = New TableCell
| >
| > Dim CaseNumberSortButton As LinkButton = New
| LinkButton
| > Dim CaseNumberFilterBox As TextBox = New TextBox
| >
| > CaseNumberSortButton.ID = "CaseNumberSortButton"
| > CaseNumberSortButton.Text = "Sort CaseNo"
| > CaseNumberSortButton.ToolTip = "Click to sort
| the case number
| >column"
| >
| > CaseNumberFilterBox.ID = "CaseNumberFilterBox"
| > CaseNumberFilterBox.ToolTip = "Enter case number
| on which to filter
| >records"
| >
| > CaseNumberHCell1.VerticalAlign =
| VerticalAlign.Bottom
| > CaseNumberHCell1.HorizontalAlign =
| HorizontalAlign.Center
| > CaseNumberHCell1.Controls.Add
| (CaseNumberSortButton)
| >
| > CaseNumberHCell2.VerticalAlign =
| VerticalAlign.Top
| > CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
| > CaseNumberHCell2.Controls.Add
| (CaseNumberFilterBox)
| > CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
| > CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
| > CaseNumberHeaderTable.Controls.Add
| (CaseNumberHRow1)
| > CaseNumberHeaderTable.Controls.Add
| (CaseNumberHRow2)
| > CaseNumberHeaderTable.ID
| = "CaseNumberHeaderTable"
| > CaseNumberHeaderTable.BorderColor = Color.Blue
| > End Sub
| >
| >
| >Lewis Wang
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Sue" <Su*@ojd.state.or.us>
| >| Sender: "Sue" <Su*@ojd.state.or.us>
| >| References: <#T**************@TK2MSFTNGP09.phx.gbl>
| ><Dy**************@cpmsftngxa06.phx.gbl>
| >| Subject: RE: Adding webcontrols.table to aspx - not
| rendering
| >| Date: Thu, 24 Jul 2003 11:38:45 -0700
| >| Lines: 87
| >| Message-ID: <01****************************@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE
| V5.50.4910.0300
| >| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| >| Newsgroups: microsoft.public.dotnet.general
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.general:102328
| >| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| >| X-Tomcat-NG: microsoft.public.dotnet.general
| >|
| >| >your side? If so, you may want to show me the code
| >| snippet on your side so
| >| >that I can test it. Thanks.
| >|
| >| Lewis, tried your code, but I'm working in VB and
| >| couldn't remember half of how to get things set up for
| C
| >| (#?). I do have a similar table working just find
| >| further up in the web page. It's not part of a
| datagrid
| >| though. Below is the relevant code for this problem.
| >|
| >| Protected WithEvents CaseNumberSortButton As
| LinkButton =
| >| LinkButton
| >| Protected WithEvents CaseNumberFilterBox As TextBox =
| New
| >| TextBox
| >| Protected WithEvents CaseNumberHeaderTable As Table =
| New
| >| Table
| >| Protected WithEvents CaseNumberHRow1 As TableRow = New
| >| TableRow
| >| Protected WithEvents CaseNumberHRow2 As TableRow = New
| >| TableRow
| >| Protected WithEvents CaseNumberHCell1 As TableCell =
| New
| >| TableCell
| >| Protected WithEvents CaseNumberHCell2 As TableCell =
| New
| >| TableCell
| >|
| >| Private Sub Page_Load(ByVal sender As System.Object,
| >| ByVal e As System.EventArgs) Handles MyBase.Load
| >| Call setCaseNumberHeaderTable()
| >| End Sub
| >|
| >| Public Sub setCaseNumberHeaderTable()
| >| With CaseNumberSortButton
| >| .ID = "CaseNumberSortButton"
| >| .Text = "Sort CaseNo"
| >| .ToolTip = "Click to sort the case number column"
| >| End With
| >| With CaseNumberFilterBox
| >| .ID = "CaseNumberFilterBox"
| >| .ToolTip = "Enter case number on which to filter
| >| records"
| >| End With
| >| With Me.CaseNumberHCell1
| >| .VerticalAlign = VerticalAlign.Bottom
| >| .HorizontalAlign = HorizontalAlign.Center
| >| .Controls.Add(CaseNumberSortButton)
| >| End With
| >| With CaseNumberHCell2
| >| .VerticalAlign = VerticalAlign.Top
| >| .Text = "Filter by: <BR><HR><BR>"
| >| .Controls.Add(CaseNumberFilterBox)
| >| End With
| >| With Me.CaseNumberHRow1
| >| .Controls.Add(CaseNumberHCell1)
| >| End With
| >| With CaseNumberHRow2
| >| .Controls.Add(CaseNumberHCell2)
| >| End With
| >| With CaseNumberHeaderTable
| >| .Controls.Add(CaseNumberHRow1)
| >| .Controls.Add(CaseNumberHRow2)
| >| .ID = "CaseNumberHeaderTable"
| >| .Width.Percentage(100)
| >| End With
| >| End Sub
| >|
| >| .aspx file:
| >|
| >| <asp:datagrid id=DG runat="server">
| >| <Columns>
| >| <asp:TemplateColumn SortExpression="CaseNo">
| >| <HeaderTemplate>
| >| <asp:Table ID="CaseNumberHeaderTable"
| >| Runat="Server" />
| >| </HeaderTemplate>
| >| ......
| >| </asp:TemplateColumn>
| >| </Columns>
| >| </asp:Datagrid>
| >|
| >| Any help appreciated...
| >|
| >| Sue
| >|
| >|
| >|
| >|
| >|
| >|
| >
| >.
| >
|

Nov 22 '05 #11
Hi Sue,

The Type should be the same as control's type <asp:Table
ID="CaseNumberHeaderTable" Runat="Server" />. Otherwise, there will be an
error. If FindControl menthod returns nothing, there will also be an error.
You can use code similar to the following to perform the cast.

Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal e
As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound

If e.Item.ItemType = ListItemType.Header Then
Dim ctrl As Control =
e.Item.FindControl("CaseNumberHeaderTable")
If Not ctrl Is Nothing Then
CaseNumberHeaderTable = CType(ctrl, Table)
setCaseNumberHeaderTable()
End If
End If

End Sub

Please let know if it helps. Thanks.

Lewis

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
<01****************************@phx.gbl>
<Ip**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering
| Date: Mon, 28 Jul 2003 10:03:35 -0700
| Lines: 204
| Message-ID: <33****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNVKi7XO2W/Wc7XRJSgT85DFF8sFw==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102600
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| >If I misunderstood your concern, would you please
| provide more explanations
| >on your requirement? Thank you.
|
| This is exactly what I wish to do. I have tried the code
| below (modified for my object names) and got an invalid
| cast error message at the CType line. I know this is
| simple, I'm just not tripping onto the correct syntax
| <sigh>. I've tried various options for the CType without
| success. Any other ideas?
|
| tia,
| Sue
|
| >
| >Dim CaseNumberHeaderTable As Table
| >
| >Private Sub DataGrid1_ItemDataBound(ByVal sender As
| System.Object, ByVal e
| >As System.Web.UI.WebControls.DataGridItemEventArgs)
| Handles
| >DataGrid1.ItemDataBound
| > If e.Item.ItemType = ListItemType.Header Then
| > CaseNumberHeaderTable =
| >CType(e.Item.FindControl("CaseNumberHeaderTable") , Table)
| > setCaseNumberHeaderTable()
| > End If
| >
| > End Sub
| >
| >Private Sub setCaseNumberHeaderTable()
| >
| > Dim CaseNumberHRow1 As TableRow = New TableRow
| > Dim CaseNumberHRow2 As TableRow = New TableRow
| > Dim CaseNumberHCell1 As TableCell = New TableCell
| > Dim CaseNumberHCell2 As TableCell = New TableCell
| >
| > Dim CaseNumberSortButton As LinkButton = New
| LinkButton
| > Dim CaseNumberFilterBox As TextBox = New TextBox
| >
| > CaseNumberSortButton.ID = "CaseNumberSortButton"
| > CaseNumberSortButton.Text = "Sort CaseNo"
| > CaseNumberSortButton.ToolTip = "Click to sort
| the case number
| >column"
| >
| > CaseNumberFilterBox.ID = "CaseNumberFilterBox"
| > CaseNumberFilterBox.ToolTip = "Enter case number
| on which to filter
| >records"
| >
| > CaseNumberHCell1.VerticalAlign =
| VerticalAlign.Bottom
| > CaseNumberHCell1.HorizontalAlign =
| HorizontalAlign.Center
| > CaseNumberHCell1.Controls.Add
| (CaseNumberSortButton)
| >
| > CaseNumberHCell2.VerticalAlign =
| VerticalAlign.Top
| > CaseNumberHCell2.Text = "Filter by: <BR><HR><BR>"
| > CaseNumberHCell2.Controls.Add
| (CaseNumberFilterBox)
| > CaseNumberHRow1.Controls.Add(CaseNumberHCell1)
| > CaseNumberHRow2.Controls.Add(CaseNumberHCell2)
| > CaseNumberHeaderTable.Controls.Add
| (CaseNumberHRow1)
| > CaseNumberHeaderTable.Controls.Add
| (CaseNumberHRow2)
| > CaseNumberHeaderTable.ID
| = "CaseNumberHeaderTable"
| > CaseNumberHeaderTable.BorderColor = Color.Blue
| > End Sub
| >
| >
| >Lewis Wang
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Sue" <Su*@ojd.state.or.us>
| >| Sender: "Sue" <Su*@ojd.state.or.us>
| >| References: <#T**************@TK2MSFTNGP09.phx.gbl>
| ><Dy**************@cpmsftngxa06.phx.gbl>
| >| Subject: RE: Adding webcontrols.table to aspx - not
| rendering
| >| Date: Thu, 24 Jul 2003 11:38:45 -0700
| >| Lines: 87
| >| Message-ID: <01****************************@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE
| V5.50.4910.0300
| >| Thread-Index: AcNSEtCmGhmPnX8ZQxeVikG/sDAnmg==
| >| Newsgroups: microsoft.public.dotnet.general
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.general:102328
| >| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| >| X-Tomcat-NG: microsoft.public.dotnet.general
| >|
| >| >your side? If so, you may want to show me the code
| >| snippet on your side so
| >| >that I can test it. Thanks.
| >|
| >| Lewis, tried your code, but I'm working in VB and
| >| couldn't remember half of how to get things set up for
| C
| >| (#?). I do have a similar table working just find
| >| further up in the web page. It's not part of a
| datagrid
| >| though. Below is the relevant code for this problem.
| >|
| >| Protected WithEvents CaseNumberSortButton As
| LinkButton =
| >| LinkButton
| >| Protected WithEvents CaseNumberFilterBox As TextBox =
| New
| >| TextBox
| >| Protected WithEvents CaseNumberHeaderTable As Table =
| New
| >| Table
| >| Protected WithEvents CaseNumberHRow1 As TableRow = New
| >| TableRow
| >| Protected WithEvents CaseNumberHRow2 As TableRow = New
| >| TableRow
| >| Protected WithEvents CaseNumberHCell1 As TableCell =
| New
| >| TableCell
| >| Protected WithEvents CaseNumberHCell2 As TableCell =
| New
| >| TableCell
| >|
| >| Private Sub Page_Load(ByVal sender As System.Object,
| >| ByVal e As System.EventArgs) Handles MyBase.Load
| >| Call setCaseNumberHeaderTable()
| >| End Sub
| >|
| >| Public Sub setCaseNumberHeaderTable()
| >| With CaseNumberSortButton
| >| .ID = "CaseNumberSortButton"
| >| .Text = "Sort CaseNo"
| >| .ToolTip = "Click to sort the case number column"
| >| End With
| >| With CaseNumberFilterBox
| >| .ID = "CaseNumberFilterBox"
| >| .ToolTip = "Enter case number on which to filter
| >| records"
| >| End With
| >| With Me.CaseNumberHCell1
| >| .VerticalAlign = VerticalAlign.Bottom
| >| .HorizontalAlign = HorizontalAlign.Center
| >| .Controls.Add(CaseNumberSortButton)
| >| End With
| >| With CaseNumberHCell2
| >| .VerticalAlign = VerticalAlign.Top
| >| .Text = "Filter by: <BR><HR><BR>"
| >| .Controls.Add(CaseNumberFilterBox)
| >| End With
| >| With Me.CaseNumberHRow1
| >| .Controls.Add(CaseNumberHCell1)
| >| End With
| >| With CaseNumberHRow2
| >| .Controls.Add(CaseNumberHCell2)
| >| End With
| >| With CaseNumberHeaderTable
| >| .Controls.Add(CaseNumberHRow1)
| >| .Controls.Add(CaseNumberHRow2)
| >| .ID = "CaseNumberHeaderTable"
| >| .Width.Percentage(100)
| >| End With
| >| End Sub
| >|
| >| .aspx file:
| >|
| >| <asp:datagrid id=DG runat="server">
| >| <Columns>
| >| <asp:TemplateColumn SortExpression="CaseNo">
| >| <HeaderTemplate>
| >| <asp:Table ID="CaseNumberHeaderTable"
| >| Runat="Server" />
| >| </HeaderTemplate>
| >| ......
| >| </asp:TemplateColumn>
| >| </Columns>
| >| </asp:Datagrid>
| >|
| >| Any help appreciated...
| >|
| >| Sue
| >|
| >|
| >|
| >|
| >|
| >|
| >
| >.
| >
|

Nov 22 '05 #12
Hi Sue,

I am glad to hear it. Thanks very much for participating the community.

Lewis

--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
<01****************************@phx.gbl>
<Ip**************@cpmsftngxa06.phx.gbl>
<33****************************@phx.gbl>
<CF**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering
| Date: Tue, 29 Jul 2003 08:41:29 -0700
| Lines: 12
| Message-ID: <00****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNV5+DwpsTgGSItQI60DEU5KS6ZWw==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102714
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Aha...in my HTML on the .aspx page, I had used
| <table...>. Once I changed it to <asp:table> things
| started working. Thanks for the help with this - I knew
| it was something simple that I just wasn't seeing. Live
| and learn.
|
| Sue
|
| >The Type should be the same as control's type <asp:Table
| >ID="CaseNumberHeaderTable" Runat="Server" />.
|
|
|

Nov 22 '05 #13
Hi Sue,

I am glad to hear it. Thanks very much for participating the community.

Lewis

--------------------
| Content-Class: urn:content-classes:message
| From: "Sue" <Su*@ojd.state.or.us>
| Sender: "Sue" <Su*@ojd.state.or.us>
| References: <#T**************@TK2MSFTNGP09.phx.gbl>
<Dy**************@cpmsftngxa06.phx.gbl>
<01****************************@phx.gbl>
<Ip**************@cpmsftngxa06.phx.gbl>
<33****************************@phx.gbl>
<CF**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Adding webcontrols.table to aspx - not rendering
| Date: Tue, 29 Jul 2003 08:41:29 -0700
| Lines: 12
| Message-ID: <00****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNV5+DwpsTgGSItQI60DEU5KS6ZWw==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102714
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Aha...in my HTML on the .aspx page, I had used
| <table...>. Once I changed it to <asp:table> things
| started working. Thanks for the help with this - I knew
| it was something simple that I just wasn't seeing. Live
| and learn.
|
| Sue
|
| >The Type should be the same as control's type <asp:Table
| >ID="CaseNumberHeaderTable" Runat="Server" />.
|
|
|

Nov 22 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sue | last post by:
On code-behind page: (attributes set programatically for each of these elements) linkbutton added to tablecell textbox added to tablecell tablecells added to tablerow tablerow added to table...
4
by: Rodrigo DeJuana | last post by:
Howdy, I'm new to this .net stuff and really have little to no training. Im trying to create a new page for a web form, so i have been pretty much jsut coping code. I having some issue with...
4
by: DotNetJunky | last post by:
I have built a control that runs an on-line help system. Depending on the category you selected via dropdownlist, it goes out and gets the child subcategories, and if there are any, adds a new...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
4
by: Rob Meade | last post by:
Hi all, I'm desperately trying to get this to work and I just cant do it - new to ASP.net - probably the reason! I'm using visual studio for this - I have this in the html page : <asp:Table...
4
by: Bas Groeneveld | last post by:
I am developing an ASP.NET application part of which consists of a data entry wizard defined by entries in a data table - ie the controls on each page of the wizard are determined by definitions in...
2
by: grawsha2000 | last post by:
Hello, How can I add a table to asp.net page dynamically with Code Behind style. I still can't find a way of doing it. This really causes me a big problem when I deal with records from...
3
by: Ankit Aneja | last post by:
I have a strange situation and I have no idea how to solve this. Its a Recruitment Search Page,in the Admin Page, for every button click event the Admin Person has to create a checkbox on the users...
4
by: rushikesh.joshi | last post by:
Hi All, I have created my own WebControl and want to add it in my aspx page at runtime. it's compiling perfectly, but when i m going to execute, it gives me error of "Object reference not set...
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.