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. dropdwon control item is empty when hit submit button.

dropdwon control item is empty when hit submit button.

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

    Helo All, I have defined one usercontrol UserDropdownlist and that UserDropdownlist i have bind in render method as per my requirement (Control render method) and on page when i hit submit one control load event i get item.count = 0 i don't why this happpen event data display on viewstate? If that issue resolved if i am binding UserDropdownlist list in onload method of control so can you please tell me what is reason for that? Thanks in Advance,

    Anish Patel

    A 1 Reply Last reply
    0
    • A anish27patel

      Helo All, I have defined one usercontrol UserDropdownlist and that UserDropdownlist i have bind in render method as per my requirement (Control render method) and on page when i hit submit one control load event i get item.count = 0 i don't why this happpen event data display on viewstate? If that issue resolved if i am binding UserDropdownlist list in onload method of control so can you please tell me what is reason for that? Thanks in Advance,

      Anish Patel

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      anish27patel wrote:

      i have bind in render method

      Its better to know the event cycle to solve this problem. Your problem is because you are binding in Render.So it won't be there in ViewState.As u told use load for binding drop down. Search MSDN for Event life cycle in ASP.NET. :)

      Arun Jacob http://codepronet.blogspot.com/

      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