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
  1. Home
  2. Web Development
  3. ASP.NET
  4. i want to save id from datagrid colomn.and use this value on other page .

i want to save id from datagrid colomn.and use this value on other page .

Scheduled Pinned Locked Moved ASP.NET
2 Posts 2 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.
  • P Offline
    P Offline
    Piyush Vardhan Singh
    wrote on last edited by
    #1

    hey friend i am working with datagrid.i want to save id from datagrid colomn.and use this value on other page . i save the value in this form Protected Sub Grdplace_RowDataBound(ByVal sender As Object, ByVal e e.Row.Attributes.Add("onclick", "test('" & e.Row.Cells(0).Text.ToString & "')") but it ot sucees fulll

    Piyush Vardhan Singh Programmer TAS NewDelhi 9313077379

    I 1 Reply Last reply
    0
    • P Piyush Vardhan Singh

      hey friend i am working with datagrid.i want to save id from datagrid colomn.and use this value on other page . i save the value in this form Protected Sub Grdplace_RowDataBound(ByVal sender As Object, ByVal e e.Row.Attributes.Add("onclick", "test('" & e.Row.Cells(0).Text.ToString & "')") but it ot sucees fulll

      Piyush Vardhan Singh Programmer TAS NewDelhi 9313077379

      I Offline
      I Offline
      Irshad Sulaimani
      wrote on last edited by
      #2

      Instead of adding onclick event in RowDataBound, try adding it in ItemCreated one..... Try like this : private void Grdplace_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { e.Item.Attributes.Add("onClick","RowClicked('"+ e.Item.Cells[0].Text +"')"); } I've used c#.net,Please cahnge as VB.NET

      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