Posts

Showing posts from February 14, 2019

Asp.net Datalist Session value

Image
0 I'm new to asp.net and I'm trying to put a Session variable in the datalist headertemplate and item template, but can't seem to make it work, any ideas? <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server"> <ContentTemplate> <asp:Timer Interval="1000" Enabled="false" OnTick="UpdateChatTable1" runat="server" ID="Timer2"></asp:Timer> <asp:DataList ID="ChatTable1" RepeatDirection="Vertical" runat="server" Style="position: absolute; top: 200px; left: 400px;z-index:3" CssClass="tbl"> <HeaderTemplate><asp:Label ID="ChatTitle" Text='<%#Eval(Session["