Difference between .ToString() and Convert.ToString() in asp.net

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().

Admin

A Software Engineer, Social Media Marketing Expert, writer,

Post a Comment

Previous Post Next Post