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. SqlDataSource.CancelSelectOnNullParameter

SqlDataSource.CancelSelectOnNullParameter

Scheduled Pinned Locked Moved ASP.NET
questioncsharphtmlasp-nethelp
2 Posts 2 Posters 3 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
    Colin Angus Mackay
    wrote on last edited by
    #1

    Curious feature of ASP.NET 2.0 that could be useful, but this evening I just found frustrating. The default state of this parameter on the SqlDataSource control is true which means I spent about an hour and a half trying to figure out why my SqlDataSource.Selecting event was firing, but the SqlDataSource.Selected event wasn't and why my Repeater control wasn't getting populated. Personally, I think the default state of the CancelSelectOnNullParameter should be false because that way, if there is a null parameter an exception is thrown and the developer has a clue as to what is happening. Whereas when it is set to true nothing happens and people will spend time banging heads off desks* in frustration trying to figure out what is going wrong. Just thought I'd let you all know - If you ever have the same problem. However, that said, ASP.NET 2.0 will rock your socks off!! I'm learning all the new controls and so far I've saved somewhere in the region of 80 hours of development time over doing the same job in ASP.NET 1.1. And that's with me doing the job on the learing curve at the same time! * This is dangerous because it can cause the retinas to detach.


    "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!

    T 1 Reply Last reply
    0
    • C Colin Angus Mackay

      Curious feature of ASP.NET 2.0 that could be useful, but this evening I just found frustrating. The default state of this parameter on the SqlDataSource control is true which means I spent about an hour and a half trying to figure out why my SqlDataSource.Selecting event was firing, but the SqlDataSource.Selected event wasn't and why my Repeater control wasn't getting populated. Personally, I think the default state of the CancelSelectOnNullParameter should be false because that way, if there is a null parameter an exception is thrown and the developer has a clue as to what is happening. Whereas when it is set to true nothing happens and people will spend time banging heads off desks* in frustration trying to figure out what is going wrong. Just thought I'd let you all know - If you ever have the same problem. However, that said, ASP.NET 2.0 will rock your socks off!! I'm learning all the new controls and so far I've saved somewhere in the region of 80 hours of development time over doing the same job in ASP.NET 1.1. And that's with me doing the job on the learing curve at the same time! * This is dangerous because it can cause the retinas to detach.


      "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!

      T Offline
      T Offline
      Thea Burger
      wrote on last edited by
      #2

      I have to second that! I've been playing around with Membership and Profiles - it makes authentication etc so much easier and much faster. The login/logout, CreateNewUser, ChangePassword, etc controls are just amazing - it handles everything basicly automatically!!! The only thing that has given me a headache so far was the SiteMapPath and the Menu. After a while I wasn't sure whether it was a bug or if I was just not setting the correct properties. :-D

      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