Hello,
I'm trying to add a date I've called from a database that I've passed to a session variable to the default value in a textbox.
<ASP:Textbox Enabled="true" id="text100" maxlength="25" backcolor="#8080b0" Text=<%=Session["sent_date"]%> Forecolor="#FFFFFF" class="navSmall" runat="server" />
The error I get is:
Parser Error Message: Server tags cannot contain <% ... %> constructs.
Does anyone know how I can place a variable into this value?
Thanks,
A7
I'm trying to add a date I've called from a database that I've passed to a session variable to the default value in a textbox.
<ASP:Textbox Enabled="true" id="text100" maxlength="25" backcolor="#8080b0" Text=<%=Session["sent_date"]%> Forecolor="#FFFFFF" class="navSmall" runat="server" />
The error I get is:
Parser Error Message: Server tags cannot contain <% ... %> constructs.
Does anyone know how I can place a variable into this value?
Thanks,
A7