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. I just observed !!!

I just observed !!!

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

    I am having one Dropdownlist, depending upon dropdownlist selection, I am filling a Listbox. I gave a RequiredField Validator for ListBox. But to my surprise it did not validate if user does not select anything from Listbox. Finally I created a Default ListItem like "--Select One--" and made through code I made it selected by default. My problem seems to be solved now, but is there any other alternative?, I wonder is this the case with everyone here. Please suggest!! Thanks Sony

    B 1 Reply Last reply
    0
    • C cloudking11966

      I am having one Dropdownlist, depending upon dropdownlist selection, I am filling a Listbox. I gave a RequiredField Validator for ListBox. But to my surprise it did not validate if user does not select anything from Listbox. Finally I created a Default ListItem like "--Select One--" and made through code I made it selected by default. My problem seems to be solved now, but is there any other alternative?, I wonder is this the case with everyone here. Please suggest!! Thanks Sony

      B Offline
      B Offline
      bluewavestrider
      wrote on last edited by
      #2

      I think you're doing okay. I know I would you a Select Case Implementation if I were you. Live in fragments no longer. Only connect.

      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