This question has been asked many times on Code Project. Have you searched anything yet?
Check -
send sms + asp.net[
^].
You can also find many examples on Google.
But I would suggest you to go for one paid sms sending service, which gives you 100% success.