Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: jalali calendar to gregorian calendar code in c# Pin
Eddy Vluggen15-Feb-13 9:53
professionalEddy Vluggen15-Feb-13 9:53 
AnswerRe: jalali calendar to gregorian calendar code in c# Pin
Amir Mohammad Nasrollahi29-Jul-13 22:11
professionalAmir Mohammad Nasrollahi29-Jul-13 22:11 
QuestionHow to show image contained in DataList to Modal dialog Pin
PramodSawant15-Feb-13 1:54
PramodSawant15-Feb-13 1:54 
AnswerRe: How to show image contained in DataList to Modal dialog Pin
Dave Kreskowiak15-Feb-13 3:59
mveDave Kreskowiak15-Feb-13 3:59 
QuestionFinger Print Image Pin
karthisomu14-Feb-13 20:20
karthisomu14-Feb-13 20:20 
AnswerRe: Finger Print Image Pin
Richard MacCutchan14-Feb-13 23:13
mveRichard MacCutchan14-Feb-13 23:13 
AnswerRe: Finger Print Image Pin
Dave Kreskowiak15-Feb-13 3:56
mveDave Kreskowiak15-Feb-13 3:56 
QuestionHow to Send SMS Messages from C# ? Pin
Azza ALbelushi14-Feb-13 20:00
Azza ALbelushi14-Feb-13 20:00 
hello

i dawnload the code (How to Send SMS Messages from C# using an SQL Database) from code project



i follow the step in it i have installed the required gateway which is ozeki gate way , but i face two problem...one is when i run the C# application and it display the follwing message (The SMSC provider is not registered in your local machine)...

the second when i use ozeki gate way i couldn't send message from it. it show the error number 1360,1366,1361 according.


please guide me tosolve this problem as soon as possible



the code in the is

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;

namespace mySMSApplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


private void button1_Click(object sender, EventArgs e)
{
try
{
//Connect to the database
OleDbConnection conn = new OleDbConnection();

Provider=SQLNCLI;Server=.\SQLEXPRESS;User ID=ozekiuser;password=ozekipass;
Database=ozeki;Persist Security Info=True conn.Open();
if (conn.State == ConnectionState.Open)
{
//Send the message
OleDbCommand cmd = new OleDbCommand();
cmd.Connection = conn;
string SQLInsert =
"INSERT INTO "+
"ozekimessageout (receiver,msg,status) "+
"VALUES "+
"('"+tbSender.Text+"','"+tbMsg.Text+"','send')";
cmd.CommandText = SQLInsert;
cmd.ExecuteNonQuery();
MessageBox.Show("Message sent");
}

//Disconnect from the database
conn.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

}

private void Form1_Load(object sender, EventArgs e)
{

}
}
}

modified 15-Feb-13 5:51am.

AnswerRe: c# Pin
V.14-Feb-13 21:08
professionalV.14-Feb-13 21:08 
GeneralRe: thank you Pin
Azza ALbelushi15-Feb-13 0:04
Azza ALbelushi15-Feb-13 0:04 
GeneralRe: thank you Pin
V.15-Feb-13 0:05
professionalV.15-Feb-13 0:05 
AnswerRe: c# Pin
Richard MacCutchan14-Feb-13 23:11
mveRichard MacCutchan14-Feb-13 23:11 
GeneralRe: c# Pin
Azza ALbelushi14-Feb-13 23:58
Azza ALbelushi14-Feb-13 23:58 
AnswerRe: How to Send SMS Messages from C# ? Pin
jschell15-Feb-13 9:18
jschell15-Feb-13 9:18 
AnswerRe: How to Send SMS Messages from C# ? Pin
Amir Mohammad Nasrollahi29-Jul-13 22:15
professionalAmir Mohammad Nasrollahi29-Jul-13 22:15 
QuestionC# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 8:25
Hbr_Tha_real14-Feb-13 8:25 
AnswerRe: C# SqlTransaction Pin
R. Giskard Reventlov14-Feb-13 8:42
R. Giskard Reventlov14-Feb-13 8:42 
GeneralRe: C# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 9:08
Hbr_Tha_real14-Feb-13 9:08 
GeneralRe: C# SqlTransaction Pin
R. Giskard Reventlov14-Feb-13 9:46
R. Giskard Reventlov14-Feb-13 9:46 
GeneralRe: C# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 11:17
Hbr_Tha_real14-Feb-13 11:17 
GeneralRe: C# SqlTransaction Pin
R. Giskard Reventlov14-Feb-13 11:46
R. Giskard Reventlov14-Feb-13 11:46 
QuestionClassic ASP and C# syntax Pin
vanikanc14-Feb-13 8:11
vanikanc14-Feb-13 8:11 
AnswerRe: Classic ASP and C# syntax Pin
vanikanc14-Feb-13 10:54
vanikanc14-Feb-13 10:54 
Questionalphanumeric counter Pin
Angela Scheuvront14-Feb-13 7:41
Angela Scheuvront14-Feb-13 7:41 
AnswerRe: alphanumeric counter Pin
Jibesh14-Feb-13 9:04
professionalJibesh14-Feb-13 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.