Access value in HTML. Urgent. Thank You.

  • Thread starter Thread starter Shapper
  • Start date Start date
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
 
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...
======================
 
Back
Top