Access value in HTML. Urgent. Thank You.

S

Shapper

Hello,

I have this:
Sub Page_Load(Sender As Object, E As EventArgs)
Response.Write(Session("culture"))
End Sub

It displays Session("culture") value.

I want to access this value in my HTML code.
I thought it would be something like:

<%# Response.Write(Session("culture")) %>

It's not working. What am I doing wrong?

Thanks,
Miguel
 
J

Juan T. Llibre

Try :

Dim x as String
x = (Session("culture"))

Now you can manipulate x as you see fit.



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top