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. How to write a data source content field in a hyperlink field so that i can pass parametters ?

How to write a data source content field in a hyperlink field so that i can pass parametters ?

Scheduled Pinned Locked Moved ASP.NET
jsonhelptutorialquestionlearning
4 Posts 4 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.
  • M Offline
    M Offline
    Mahhouraaaaaa
    wrote on last edited by
    #1

    this is the code : SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" /> this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused:

    A A T 3 Replies Last reply
    0
    • M Mahhouraaaaaa

      this is the code : SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" /> this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused:

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      AT first glance it looks like #Eval("Id") must = + which it obviously doesn't like. Have you tried debugging to see?

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      • M Mahhouraaaaaa

        this is the code : SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" /> this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused:

        A Offline
        A Offline
        AlexeiXX3
        wrote on last edited by
        #3

        Try with comething like tis: navigateurl='<%# Eval ("Id", "CrossSellEdit.aspx?id={0}") %>'

        Alexei Rodriguez

        1 Reply Last reply
        0
        • M Mahhouraaaaaa

          this is the code : SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" /> this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused:

          T Offline
          T Offline
          ToddHileHoffer
          wrote on last edited by
          #4

          Are you using a gridview? If so, I find it much easier to use the onRowDataBound E.G. OnRowDataBound="GridView1_RowDataBound" protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { // on each row which is DataRow populate dropdown lists if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView drv = (DataRowView)e.Row.DataItem; //For datatable it is dbdatarecord if datareader HyperLink hl = (HyperLink)e.Row.FindControl("HyperLinkId"); hl.NavigateURL = "CrossSellEdit.aspx?id=" + drv["id"].ToString(); } }

          I didn't get any requirements for the signature

          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