c# - Help! Checking if a field is empty -
I am using linq-to-SQL on an asp.net mvc2 application. I have a table related to Jeff's table.
In my application, I do not want the user to enter a value in the IDJefe field, but rather select from Cambodia.
What should I ask string string? (IDJF) or (Jeff) empty? Both of these properties are available to me, but this is my first adventure, in creating a full application with Linux-to-SQL.
I was thinking of using IDJF as a value to check, because the combo box is a selected index, right?
Thank you.
Public INIM Marketplace & lt; Rule Violation & gt; GetRuleViolations () {If String.IsNullOrEmpty (Nombre) returns new rules violation ("Nombre requerido", "Nombre"); If the novel violates the New Rule (IDJF == Faucet) ("Jeff Essentials", "IDJephe"); Break the yield; }
If you select the IDJefe value, then you have against the blankbox selected value Should check.