Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Problem with dataset crashing my app
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="David, post: 2879102"] The guid I am passing is actually a string representation of it. The output from the database is not actually being displayed but going into an httpcontext. The system is now quite complex to explain fully how it works, suffice to say that a page is referenced by a guid string. Theoretically, if a page is requested that is not represented by a guid string (which is exactly how I found this problem) then I have to fail gracefully. Your assumptions are correct. The value should never be null, but it can happen as I have found out (never considered that particular route.). So, how do I get around it? I have currently set up an if statement that compares if it is null and just skips the processing but returns an empty dataset. This works but it appears to be a hack. (I am not sure what happens yet if I pass an invalid guid string...) I will have a go with a couple of possibilities (like Alexey's) and try out other potential problems (like the one I mention here) Thanks guys for your assistance... -- Best regards, Dave Colliver. [URL]http://www.AshfieldFOCUS.com[/URL] ~~ [URL]http://www.FOCUSPortals.com[/URL] - Local franchises available [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Problem with dataset crashing my app
Top