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. Datagrid question

Datagrid question

Scheduled Pinned Locked Moved ASP.NET
questionhelpcsharpjavascriptasp-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.
  • R Offline
    R Offline
    Ridge Howison
    wrote on last edited by
    #1

    Hello, Thank you for reading this post. Here is my question. I have a datagrid and have 5 columns in it.The first one being should be a button column(either a button column or a template column with button is fine). The second column is lets say Email Subject, 3rd column is email date, 4th column hidden is customer_id and 5th column is email_sequence_id which is also hidden. My problem is this. When I click on the button in the datagrid i need to open a new window and go to a aspx page lets say showemail.aspx?id=custid&email_sequence_id=sequenceid where custid=column 4 of the datagrid and sequenceid=column 5 of the datagrid for that row. And this needs to open up in a new browser window. How do i do it ?? I tried using javascript and didnt work. Any suggestion will help. Please also be kind enough to give me a code sample because iam a little new to ASP.NET Thank you for reading RH

    C 1 Reply Last reply
    0
    • R Ridge Howison

      Hello, Thank you for reading this post. Here is my question. I have a datagrid and have 5 columns in it.The first one being should be a button column(either a button column or a template column with button is fine). The second column is lets say Email Subject, 3rd column is email date, 4th column hidden is customer_id and 5th column is email_sequence_id which is also hidden. My problem is this. When I click on the button in the datagrid i need to open a new window and go to a aspx page lets say showemail.aspx?id=custid&email_sequence_id=sequenceid where custid=column 4 of the datagrid and sequenceid=column 5 of the datagrid for that row. And this needs to open up in a new browser window. How do i do it ?? I tried using javascript and didnt work. Any suggestion will help. Please also be kind enough to give me a code sample because iam a little new to ASP.NET Thank you for reading RH

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      click me You can always make a button generate the popup, instead of an anchor tag, the thing is, the 'hidden' columns are not necessary, you use your databinding statements to build the URL in the column that it appears. Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      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