Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set var in VB.NET and get the value in ASP

Status
Not open for further replies.

flbos

Programmer
Sep 15, 2005
41
NL
I'm working on an application based on ASP but with underlying VB.NET code. I need to display some values in the ASP page that are in vars in the VB.NET code. Currently I'm doing this in the VB.NET code:
Session.Item("Varname") = NameOfVbVar

And this in the ASP page:
value='<%= session.item("Varname") %>'

However, I don't like setting everything in the session variables. Is there a way do omit using the session variables for this?
 
Currently I'm doing this in the VB.NET code:
Where is this VB.NET code and variable? Is it part of the code behind class for the page?


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top