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. repeader Header

repeader Header

Scheduled Pinned Locked Moved ASP.NET
databasequestiondockertutorial
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.
  • B Offline
    B Offline
    bemahesh
    wrote on last edited by
    #1

    hi, I have a repeater that displays some data. I am using stored procedure to get the data from the DB. Now, the nature of the content being displayed as a header requires me to store the header information also in the DB table. As a result, I am pulling the header of repeader ( it is column Header name and header URL) from table along with the other records that is going to be displayed on the repeater. HeaderName and HeaderURL are two seperate columns that are part of other records returened by the repeater Question is asp:repeater won't let me use <#%Container.dataItem("Column1")%> in the header of the repeater. It gives me null reference exception also stating "Object variable or With block variable not set" does anybody know how to do it? Thanks Needy

    I 1 Reply Last reply
    0
    • B bemahesh

      hi, I have a repeater that displays some data. I am using stored procedure to get the data from the DB. Now, the nature of the content being displayed as a header requires me to store the header information also in the DB table. As a result, I am pulling the header of repeader ( it is column Header name and header URL) from table along with the other records that is going to be displayed on the repeater. HeaderName and HeaderURL are two seperate columns that are part of other records returened by the repeater Question is asp:repeater won't let me use <#%Container.dataItem("Column1")%> in the header of the repeater. It gives me null reference exception also stating "Object variable or With block variable not set" does anybody know how to do it? Thanks Needy

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

      well the header isn't hitting the data source either. convert the data source back DataTable dt = (DataTable)pr.DataSource and store it in a property then hit it in code <%# MyHeaderName %> I'm not an expert yet, but I play one at work. Yeah and here too.

      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