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. General Programming
  3. C#
  4. Queried result to ListBox in PartialView

Queried result to ListBox in PartialView

Scheduled Pinned Locked Moved C#
asp-netcsharpdatabasearchitecturehelp
4 Posts 3 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.
  • S Offline
    S Offline
    sunsher
    wrote on last edited by
    #1

    Hi, I am new to ASP.NET MVC. I would like to get some help on getting custom data from controller to view. I have queried and concatenated the result of a table from model based on a criteria. I want this to be viewed as a partial view in the Index page. For this, I pass the queried result as follows

    return PartialView(rds.ToList())

    The purpose is to display a listview of these items in the Index view as partial. I don't know how to grab this data from the partial view. Please help. Thanks

    C Richard DeemingR 2 Replies Last reply
    0
    • S sunsher

      Hi, I am new to ASP.NET MVC. I would like to get some help on getting custom data from controller to view. I have queried and concatenated the result of a table from model based on a criteria. I want this to be viewed as a partial view in the Index page. For this, I pass the queried result as follows

      return PartialView(rds.ToList())

      The purpose is to display a listview of these items in the Index view as partial. I don't know how to grab this data from the partial view. Please help. Thanks

      C Offline
      C Offline
      CHill60
      wrote on last edited by
      #2

      You might get better results if you post this in the ASP.NET Discussion Boards[^] - if you do post it there then don't forget to delete this version

      Richard DeemingR 1 Reply Last reply
      0
      • C CHill60

        You might get better results if you post this in the ASP.NET Discussion Boards[^] - if you do post it there then don't forget to delete this version

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        He's already done that, and got an answer! :doh: Queried result from cotroller to PartialView into Listbox - ASP.NET Discussion Boards[^]


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        • S sunsher

          Hi, I am new to ASP.NET MVC. I would like to get some help on getting custom data from controller to view. I have queried and concatenated the result of a table from model based on a criteria. I want this to be viewed as a partial view in the Index page. For this, I pass the queried result as follows

          return PartialView(rds.ToList())

          The purpose is to display a listview of these items in the Index view as partial. I don't know how to grab this data from the partial view. Please help. Thanks

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          You have already posted this question, and received an answer: Queried result from cotroller to PartialView into Listbox - ASP.NET Discussion Boards[^]


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          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