C
COHENMARVIN
I have a table with 2 buttons in it - a SAVE button and a DELETE
button. If Session("BothButtons") = True, I want to show both buttons.
If Session("BothButtons") = False, I want to show only the SAVE button.
This would be easy to do (I just would set DeleteButton.Visible =
False), but the problem is that the 2 buttons are in 2 different cells
of a table, something like this:
<td align="center"><ASP:Button id="Save" runat="server" /></td>
<td align="center"><ASP:Button id="Delete" runat="server" /></td>
So I want an entire <TD> tag to disappear, along with the button that
is in it.
In regular ASP, you would just say something like:
<%
If Session("BothButtons") = True Then
Response.Write("<td etc....")
Else
Response.Write("<td etc ...")
End If
%>
But I think you cannot do inline code like this in ASP.net. I may be
wrong. Any help from this very helpful forum is appreciated.
Thanks,
Marvin
button. If Session("BothButtons") = True, I want to show both buttons.
If Session("BothButtons") = False, I want to show only the SAVE button.
This would be easy to do (I just would set DeleteButton.Visible =
False), but the problem is that the 2 buttons are in 2 different cells
of a table, something like this:
<td align="center"><ASP:Button id="Save" runat="server" /></td>
<td align="center"><ASP:Button id="Delete" runat="server" /></td>
So I want an entire <TD> tag to disappear, along with the button that
is in it.
In regular ASP, you would just say something like:
<%
If Session("BothButtons") = True Then
Response.Write("<td etc....")
Else
Response.Write("<td etc ...")
End If
%>
But I think you cannot do inline code like this in ASP.net. I may be
wrong. Any help from this very helpful forum is appreciated.
Thanks,
Marvin