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

Top 5 Contributors of the Month
Ava Aiden
Imran Ghani
Thomas Shaw

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

Session Variable Value in a table property

Posted By: Anup     Posted Date: December 07, 2009    Points:2   Category :ASP.Net

I am storing an Image name as a value in session variable on Page 1.

Now on Page 2, I want to use this session variable value in the
<table background="Session Variable Value">

How to achieve this.

Thanx for help

"You will not be punished for your anger, you will be punished by your anger. - Gautam Buddha"


Author: Venkat             
Posted Date: December 07, 2009     Points: 5   


It is not advisable to do so. But if you want to access the session variable you can try like this

background='<%= Session["Test"].ToString()%>'


Mark As Answer if this solve your problem
Warm Regards,

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