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. Session in ASP.Net

Session in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminhelptutorial
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.
  • A Offline
    A Offline
    abglorie
    wrote on last edited by
    #1

    Please help me. I creat a form like this label_1 as display the employee ID textbox_1 as employee address Now I want update the address I writing a coding like this dim con as sqlconnection(connectionstring) dim cmd as sqlcommand("select empID from Employee", con) dim adapter as sqldataadapter(cmd) dim ds as new dataset try if session("ds") is nothing then con.open() adapter.fill(ds,"Employee") session("ds") = ds endif finally con.close() endtry My form is asp:label id=mylabel text = "<%=session("ds")("EmpID")%>" runat="server" .... I need how to display emplyee ID (EmpID) into the form as label_1 this action continue the button click the next employee ID display the Label_1 upto end of table. (assume the table contain 20 records) I try the session state but not working. Please give me actual coding in VB format. Thanking you in advance abglorie abglorie

    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