C# coding for sending sms
Hi,
I am looking for a c#, vs2005 code for my
windows application which can send SMS message through a free service.
Code will be used in applications on www.motiont.com. It has to work
without any third party dlls, and must use some free service.
And the application is a simple c# windows application which will take phone number and a message and send a sms message through it.
this is very urgent...!!!!
can anyone help me to do this.........?I just need the code....
Thanks....
Answers (3)
0
thanks for mentioning connection string. i did close the connection in the connection method. infact i mustn't do that.. thanks alot...
0
int intParamCount = 0;
SqlParameter[] sqlParam=new SqlParameter[2];
SqlCommand objInsertCommand=new SqlCommand("sp_InsertReserve",objConn); //specify the connection
objInsertCommand.CommandType =CommandType.StoredProcedure;
//Associate Parameters
sqlParam[0]=new SqlParameter("@reservationUserID",SqlDbType.VarChar );
sqlParam[0].Direction =ParameterDirection.Input ;
sqlParam[0].Value =UID;
sqlParam[1]=new SqlParameter("@reservationBookID",SqlDbType.VarChar );
sqlParam[1].Direction =ParameterDirection.Input ;
sqlParam[1].Value =BID;
while(intParamCount
0
In your code where are you setting the connection object?