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. mutilple parameters to be passed using Hyperlink column

mutilple parameters to be passed using Hyperlink column

Scheduled Pinned Locked Moved ASP.NET
helpdatabasequestion
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
    payal sheth
    wrote on last edited by
    #1

    hi all i have defined a hyperlink column as below ''''''''''''''' Dim col0 As New HyperLinkColumn col0.HeaderText = "Col0" col0.Text = "Col0" col0.DataNavigateUrlField = "Col0" col0.DataNavigateUrlFormatString = "mypage.aspx?col0='{0}'" col0.DataTextField = "col0" col0.ItemStyle.Width = Unit.Point(60) col0.SortExpression = "col0" my_grid.Columns.Add(col0) '''''''''''''''''' now my problem is that i want to pass 2 database paramters using the DataNavigateUrlField property.i saw one of the article on net is say to use DataNavigateUrlFields property of hyperlink column but such member is not definded for the hyperlink column my url should be col0.DataNavigateUrlFormatString = "mypage.aspx?col0='{0}',col1='{1}'" can anyone help me out... thanks in advance :-D

    I 1 Reply Last reply
    0
    • P payal sheth

      hi all i have defined a hyperlink column as below ''''''''''''''' Dim col0 As New HyperLinkColumn col0.HeaderText = "Col0" col0.Text = "Col0" col0.DataNavigateUrlField = "Col0" col0.DataNavigateUrlFormatString = "mypage.aspx?col0='{0}'" col0.DataTextField = "col0" col0.ItemStyle.Width = Unit.Point(60) col0.SortExpression = "col0" my_grid.Columns.Add(col0) '''''''''''''''''' now my problem is that i want to pass 2 database paramters using the DataNavigateUrlField property.i saw one of the article on net is say to use DataNavigateUrlFields property of hyperlink column but such member is not definded for the hyperlink column my url should be col0.DataNavigateUrlFormatString = "mypage.aspx?col0='{0}',col1='{1}'" can anyone help me out... thanks in advance :-D

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      Can't do it. Unless you extend the class and add custom functionality. It would take about 10 or 15 lines of code public class MyHyperlinkColumn : HyperlinkColumn { ... } 1 line of code equals many bugs. So don't write any!!

      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