Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Passing session via javascript [modified]

Passing session via javascript [modified]

Scheduled Pinned Locked Moved ASP.NET
javascripthtmldatabase
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    firestoper
    wrote on last edited by
    #1

    Hi Guru's I'm not used on calling javascript function over a string concatination calls but it leads me no choice. I created a link (a href tag) dynamically by calling it on a db and placing it on label control, what I want to do is to add an onclick function on the a href tag which will insert a value to a session. Below is my snippet. For x As Integer = 0 To dt.Rows.Count - 1 With dt sb.Append("

    [" & CType(.Rows(x).Item("pageName"), String) & "](" & CType(.Rows(x).Item("pageLocation"), String) & ")

    ") sb.Append(CType(.Rows(x).Item("pageDescription"), String) & "

    ") End With Next What I want to add is something like this: a href='" & CType(.Rows(x).Item('pageLocation'), String) & "' onclick='javascript:<%session('ID')%> = ctype(.rows(x).item('pageID'),string)'" but no luck Please advice. regards Dom -- modified at 3:56 Tuesday 31st July, 2007

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups