How to send SMS from asp.net web application?
Is it necessary to buy from any provider?
Is there any limitation of number of SMS can be sent?
Should sending SMS code be written in different thread so that in case of any exception/delay main thread will not be affected?
Can anybody please provide code sample as well as concept of how it works?
You will need to utilize some sort of telephony provider to achieve this. I personally am a big fan of Twilio. They are very reasonable rates and expose an API with language specific API wrappers. .NET in particular has several, including an official one.
Code samples and walkthroughs are available here.
The performance impact is minimal, as you essentially construct an XML message that gets passed to a Twilio endpoint. The heavy lifting is off your shoulders as its more a system of passing and receiving XML messages.
Hope that helps, it is a very easy platform to work with.