P
Pierre
Hello,
I always get a nothing object when retrieving a table tag in the aspx page.
I wonder why this piece of code doesn't work : the mytable object is still
nothing.
Here is the code :
In the aspx page :
<body>
<form id="form1" runat="server">
.....
<table id="mytable">
.....
</table>
....
</body>
As you can see, the table tag has an ID attribute.
It is this tag I would like to access.
The code behind is like this :
[declaration]
Protected mytable As System.Web.UI.HtmlControls.HtmlTable
sub page_load
mytable = Page.FindControl("mytable")
mytable.visible = true
en sub
At execution, mytable is still nothing, like if the tag wasn't found.
I do not understand what I miss. The result is the same when adding
runat="serveur" in the mytable tag.
I can't see what is wrong...
Thanks a lot.
Pierre.
I always get a nothing object when retrieving a table tag in the aspx page.
I wonder why this piece of code doesn't work : the mytable object is still
nothing.
Here is the code :
In the aspx page :
<body>
<form id="form1" runat="server">
.....
<table id="mytable">
.....
</table>
....
</body>
As you can see, the table tag has an ID attribute.
It is this tag I would like to access.
The code behind is like this :
[declaration]
Protected mytable As System.Web.UI.HtmlControls.HtmlTable
sub page_load
mytable = Page.FindControl("mytable")
mytable.visible = true
en sub
At execution, mytable is still nothing, like if the tag wasn't found.
I do not understand what I miss. The result is the same when adding
runat="serveur" in the mytable tag.
I can't see what is wrong...
Thanks a lot.
Pierre.