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="Cowboy \(Gregory A. Beamer\), post: 2879017"] On the retrieving end --------------------- You should input check for a null guid and not even try to retrieve data where it is null.Based on my reading of your code, this value should never be null. Of course, another method is to return an empty dataset when it is null. To accomplish this, move your query to a stored procedure, where you can properly branch it (assuming this a database, like SQL Server, of course). On the binding end ------------------- Using a DataSet, you have a couple of choices. 1. Hack the DataSet itself and hack out the offending error. This is fine, with strings (for example), where you can supply a default of String.Empty. I would not do this with Guid. 2. Edit the binding event of the Data Grid and look for the null there, where you can supply an empty string for the cell instead, as everything is converted to string to output to the browser anyway. If you do it this way, you can remove conditions where a user clicking something hits a null guid. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Problem with dataset crashing my app
Top