In this example, I will show you to apply maxLength attribute to a string property in a class. You can set the maximum value for the property using data annotation validation property maxLength attribute.
I got the following error while sending email using asp.net c#. You should check the authentication correctly configured or not in Network Credential. If then it is proper it should be blocked by the yahoo server.
In this article, I will show to convert from string to int by parsing. Here I want to increment id field in xml for new entries. In XML, data fields are in a string so that I needed to convert it to int.
In this article I will show you to write a c# program to shutdown computer using asp.net. we have to include System.Diagnostics and use start process it forces to shut down the computer as parameters specified.