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. Help with listview

Help with listview

Scheduled Pinned Locked Moved ASP.NET
help
3 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.
  • M Offline
    M Offline
    Member 4065472
    wrote on last edited by
    #1

    hi i have listview in which i have folowing dataitem Name Address CountryID StateID my problem is i have GetCountryName() and GetStateName() methods in my DAL layer and i want to dislplay country name and state name insted of CountryId and StateId field i have googled it and looked everywhere can anyone help please to solve this problem its a bit urgent...thanx in adavance

    appu

    B 1 Reply Last reply
    0
    • M Member 4065472

      hi i have listview in which i have folowing dataitem Name Address CountryID StateID my problem is i have GetCountryName() and GetStateName() methods in my DAL layer and i want to dislplay country name and state name insted of CountryId and StateId field i have googled it and looked everywhere can anyone help please to solve this problem its a bit urgent...thanx in adavance

      appu

      B Offline
      B Offline
      Binod K
      wrote on last edited by
      #2

      appu, you didnt mention here, how you populate listview data. I guess u must have used Dataset as data source for Name,Address,CountryID and StateID, and for this you must be sending some SQL Query. So in where clause you can call the function. Another way is u dont call the funciton, LEFT OOUTER JOIN the Seed Data table for Country and State in SQL Query and populate the list view. Hope now you got some more Idea.

      M 1 Reply Last reply
      0
      • B Binod K

        appu, you didnt mention here, how you populate listview data. I guess u must have used Dataset as data source for Name,Address,CountryID and StateID, and for this you must be sending some SQL Query. So in where clause you can call the function. Another way is u dont call the funciton, LEFT OOUTER JOIN the Seed Data table for Country and State in SQL Query and populate the list view. Hope now you got some more Idea.

        M Offline
        M Offline
        Member 4065472
        wrote on last edited by
        #3

        thanx but i used Private Sub BindSearchByEmailGrid() Dim ds As EmployerInfoList = [EmployerInfoManager].SearchByEmail(txtemail.Text) searchgrid.DataSource = ds searchgrid.DataBind() UpdatePanel1.Update() End Sub and this dataset returns data with only countryid and stateid and as u said i cant modify storedprocedure to get names because they are in different database..i saw tht i can do that using gridview but not with the listview

        appu

        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