How do I check to see the value (if its empty or not) in TextBox1 from my class file (ASP.Net, C#)
I would like to make a static class that check to see if a checkbox has something in it or not. And if it does, I want to execute my code. I just don’t know how to check the textbox
public class costCL{ public double rs; public void Add(double c, double s, double st) { if(don't know what goes here) double ftax = 5.00; rs = Math.Round(c + s + st + ftax, 2); }
If Not String.IsNullOrEmpty(TextB
execute your code
http://msdn.microsoft.com/en-us/library/system.string.isnullorempty.aspx