What is difference between these three -
textbox1.text = "" textbox1.text = null textbox1.text = string.empty
Any specific case when each of them is used?
textbox1.text = "" and textbox1.text = string.empty both are same,will return empty string, in this case compiler will allocates memory for string with zero length.but with textbox1.text = null no space is allocated trying to acess will throw null pointer exception.
This example shows you how to check given input contains only numbers (digits) or not using regular expression in asp.net and c#.
Regular expression string strRegexpNumber = @"^[0-9 ]*$";