In this web programming tutorial we will learn that what is the difference between .ToString() and Convert.ToString() in asp.net.
The only basic difference between the two is Convert.ToString() function handles NULL while .ToString() does not handle NULL, in fact .ToString() will throw a NULL reference exception error. So for good coding practice always use Convert.ToString().
The only basic difference between the two is Convert.ToString() function handles NULL while .ToString() does not handle NULL, in fact .ToString() will throw a NULL reference exception error. So for good coding practice always use Convert.ToString().
Tags:
asp.net