R
Rob Meade
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 id="Table1" runat="server"></asp:Table>
there is other code too but I believe this to be the relevant part...
In my button on click event I am trying to do this :
Dim tRow As New TableRow()
Table1.Rows.Add(tRow)
which I have copied EXACTLY from the visual studio help and MS site (both
examples the same etc)..
2 problems..
1: The brackets get removed from the first line
2: the tRow within the brackets gets underlined and has the following error
:
Value of type 'System.Web.UI.WebControls.TableRow' cannot be converted to
'System.Web.UI.HtmlControls.HtmlTableRow'.
I have no idea what the problems is or how to fix it - however I do suspect
the item 2 is a direct result of the missing brackets in item 1 - and that
these are probably missing because I've not done some form of 'IMPORT' at
the top of the page???
But to be honest I have no real clue....
If someone could suggest a reason / way forward I would be most grateful.
Regards
Rob
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 id="Table1" runat="server"></asp:Table>
there is other code too but I believe this to be the relevant part...
In my button on click event I am trying to do this :
Dim tRow As New TableRow()
Table1.Rows.Add(tRow)
which I have copied EXACTLY from the visual studio help and MS site (both
examples the same etc)..
2 problems..
1: The brackets get removed from the first line
2: the tRow within the brackets gets underlined and has the following error
:
Value of type 'System.Web.UI.WebControls.TableRow' cannot be converted to
'System.Web.UI.HtmlControls.HtmlTableRow'.
I have no idea what the problems is or how to fix it - however I do suspect
the item 2 is a direct result of the missing brackets in item 1 - and that
these are probably missing because I've not done some form of 'IMPORT' at
the top of the page???
But to be honest I have no real clue....
If someone could suggest a reason / way forward I would be most grateful.
Regards
Rob