.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sharon Maxwell

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How to bind session returned ID to insert into database

Posted By: needingsomehelp     Posted Date: April 23, 2010    Points:2   Category :ASP.Net
I'm looking to bind a returned session string to a text box then insert into SessionID field in a database.

<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SessionID") %>'
Text='<%# Session.SessionID.ToString() %>' >

Author: jay             
Posted Date: April 23, 2010     Points: 5   

use databind()

Author: Amit Mehra             
Posted Date: April 23, 2010     Points: 5   


Try like this

<%= Session.SessionID.ToString() %>

Please "Mark As Answer " if this post help you.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend