Nov 24, 2004 #1 chuckh70 Programmer Feb 4, 2004 71 US Just trying to do something simple. Basically I want to check and is if my select box value is null, and set it too * Code: If MySelect.Value Is Null then MySelect.Value = * how do you do this in .Net I know Null is no longer valid?
Just trying to do something simple. Basically I want to check and is if my select box value is null, and set it too * Code: If MySelect.Value Is Null then MySelect.Value = * how do you do this in .Net I know Null is no longer valid?
Nov 24, 2004 #2 hamking01 Programmer May 30, 2004 238 US If MySelect.Checked Is False then Upvote 0 Downvote
Nov 24, 2004 Thread starter #3 chuckh70 Programmer Feb 4, 2004 71 US It's not a check box so it doesn't actually get checked does it? I'll give it a shot thanks. Upvote 0 Downvote
Nov 24, 2004 1 #4 checkai Programmer Jan 17, 2003 1,629 US Code: if mySelect.Value = System.DBNull.Value Upvote 0 Downvote
Nov 24, 2004 Thread starter #5 chuckh70 Programmer Feb 4, 2004 71 US Ok that didn't error out, but it's not firing off the next part? I tried Code: if MySelect.Value Is System.DBNull.Value Then Response.Write("It's About Time") End if But I get nothing... am I missing something? Upvote 0 Downvote
Ok that didn't error out, but it's not firing off the next part? I tried Code: if MySelect.Value Is System.DBNull.Value Then Response.Write("It's About Time") End if But I get nothing... am I missing something?
Nov 24, 2004 Thread starter #6 chuckh70 Programmer Feb 4, 2004 71 US Ok I get it to do the response.write but what I need to do now is set the value to * if the condition is met is it Code: MySelect.Value = MySelect.Value=("*") this does not seem to work.. doesn't crash but I get no value... any idea's? Upvote 0 Downvote
Ok I get it to do the response.write but what I need to do now is set the value to * if the condition is met is it Code: MySelect.Value = MySelect.Value=("*") this does not seem to work.. doesn't crash but I get no value... any idea's?