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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top