Click here to Skip to main content
11,488,877 members (79,341 online)
   

C#

 
GeneralRe: jalali calendar to gregorian calendar code in c# Pin
Richard Deeming15-Feb-13 6:43
memberRichard Deeming15-Feb-13 6:43 
GeneralRe: jalali calendar to gregorian calendar code in c# Pin
timana15-Feb-13 6:58
membertimana15-Feb-13 6:58 
GeneralRe: jalali calendar to gregorian calendar code in c# Pin
Dave Kreskowiak15-Feb-13 7:45
mvpDave Kreskowiak15-Feb-13 7:45 
NewsRe: jalali calendar to gregorian calendar code in c# Pin
Eddy Vluggen15-Feb-13 6:09
mvpEddy Vluggen15-Feb-13 6:09 
GeneralRe: jalali calendar to gregorian calendar code in c# Pin
timana15-Feb-13 6:39
membertimana15-Feb-13 6:39 
GeneralRe: jalali calendar to gregorian calendar code in c# Pin
Pete O'Hanlon15-Feb-13 8:27
protectorPete O'Hanlon15-Feb-13 8:27 
GeneralRe: jalali calendar to gregorian calendar code in c# Pin
Eddy Vluggen15-Feb-13 10:53
mvpEddy Vluggen15-Feb-13 10:53 
AnswerRe: jalali calendar to gregorian calendar code in c# [modified] Pin
Amir Mohammad Nasrollahi29-Jul-13 23:11
professionalAmir Mohammad Nasrollahi29-Jul-13 23:11 
QuestionHow to show image contained in DataList to Modal dialog Pin
PramodSawant15-Feb-13 2:54
memberPramodSawant15-Feb-13 2:54 
AnswerRe: How to show image contained in DataList to Modal dialog Pin
Dave Kreskowiak15-Feb-13 4:59
mvpDave Kreskowiak15-Feb-13 4:59 
QuestionFinger Print Image Pin
karthisomu14-Feb-13 21:20
memberkarthisomu14-Feb-13 21:20 
AnswerRe: Finger Print Image Pin
Richard MacCutchan15-Feb-13 0:13
mvpRichard MacCutchan15-Feb-13 0:13 
AnswerRe: Finger Print Image Pin
Dave Kreskowiak15-Feb-13 4:56
mvpDave Kreskowiak15-Feb-13 4:56 
QuestionHow to Send SMS Messages from C# ? [modified] Pin
Member 964140614-Feb-13 21:00
memberMember 964140614-Feb-13 21: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 22:08
memberV.14-Feb-13 22:08 
GeneralRe: thank you Pin
Member 964140615-Feb-13 1:04
memberMember 964140615-Feb-13 1:04 
GeneralRe: thank you Pin
V.15-Feb-13 1:05
memberV.15-Feb-13 1:05 
AnswerRe: c# Pin
Richard MacCutchan15-Feb-13 0:11
mvpRichard MacCutchan15-Feb-13 0:11 
GeneralRe: c# Pin
Member 964140615-Feb-13 0:58
memberMember 964140615-Feb-13 0:58 
AnswerRe: How to Send SMS Messages from C# ? Pin
jschell15-Feb-13 10:18
memberjschell15-Feb-13 10:18 
AnswerRe: How to Send SMS Messages from C# ? Pin
Amir Mohammad Nasrollahi29-Jul-13 23:15
professionalAmir Mohammad Nasrollahi29-Jul-13 23:15 
QuestionC# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 9:25
memberHbr_Tha_real14-Feb-13 9:25 
AnswerRe: C# SqlTransaction Pin
mark merrens14-Feb-13 9:42
membermark merrens14-Feb-13 9:42 
GeneralRe: C# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 10:08
memberHbr_Tha_real14-Feb-13 10:08 
GeneralRe: C# SqlTransaction Pin
mark merrens14-Feb-13 10:46
membermark merrens14-Feb-13 10:46 
GeneralRe: C# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 12:17
memberHbr_Tha_real14-Feb-13 12:17 
GeneralRe: C# SqlTransaction Pin
mark merrens14-Feb-13 12:46
membermark merrens14-Feb-13 12:46 
QuestionClassic ASP and C# syntax Pin
vanikanc14-Feb-13 9:11
membervanikanc14-Feb-13 9:11 
AnswerRe: Classic ASP and C# syntax Pin
vanikanc14-Feb-13 11:54
membervanikanc14-Feb-13 11:54 
Questionalphanumeric counter Pin
Angela Scheuvront14-Feb-13 8:41
memberAngela Scheuvront14-Feb-13 8:41 
AnswerRe: alphanumeric counter Pin
Jibesh14-Feb-13 10:04
memberJibesh14-Feb-13 10:04 
GeneralRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 10:28
memberMatt T Heffron14-Feb-13 10:28 
GeneralRe: alphanumeric counter Pin
Jibesh14-Feb-13 10:29
memberJibesh14-Feb-13 10:29 
GeneralRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 10:13
memberMatt T Heffron14-Feb-13 10:13 
QuestionRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 10:52
memberMatt T Heffron14-Feb-13 10:52 
AnswerRe: alphanumeric counter Pin
Angela Scheuvront14-Feb-13 11:15
memberAngela Scheuvront14-Feb-13 11:15 
GeneralRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 11:25
memberMatt T Heffron14-Feb-13 11:25 
GeneralRe: alphanumeric counter Pin
Angela Scheuvront15-Feb-13 2:45
memberAngela Scheuvront15-Feb-13 2:45 
AnswerRe: alphanumeric counter Pin
Richard Deeming15-Feb-13 2:37
memberRichard Deeming15-Feb-13 2:37 
GeneralRe: alphanumeric counter Pin
Matt T Heffron15-Feb-13 8:39
memberMatt T Heffron15-Feb-13 8:39 
QuestionStreamWriter.WriteAsync Pin
wizardzz14-Feb-13 7:15
memberwizardzz14-Feb-13 7:15 
AnswerRe: StreamWriter.WriteAsync Pin
Dave Kreskowiak14-Feb-13 8:31
mvpDave Kreskowiak14-Feb-13 8:31 
GeneralRe: StreamWriter.WriteAsync Pin
wizardzz14-Feb-13 9:33
memberwizardzz14-Feb-13 9:33 
GeneralRe: StreamWriter.WriteAsync Pin
wizardzz14-Feb-13 9:55
memberwizardzz14-Feb-13 9:55 
Questionsingle selection of radio buttons in a table Pin
Member 258173814-Feb-13 5:36
memberMember 258173814-Feb-13 5:36 
AnswerRe: single selection of radio buttons in a table Pin
Richard MacCutchan14-Feb-13 5:58
mvpRichard MacCutchan14-Feb-13 5:58 
AnswerRe: single selection of radio buttons in a table Pin
Alan Balkany14-Feb-13 6:04
memberAlan Balkany14-Feb-13 6:04 
QuestionBetter code Pin
source.compiler14-Feb-13 4:57
membersource.compiler14-Feb-13 4:57 
AnswerRe: Better code Pin
Alan Balkany14-Feb-13 5:50
memberAlan Balkany14-Feb-13 5:50 
GeneralRe: Better code Pin
Manfred R. Bihy14-Feb-13 6:28
memberManfred R. Bihy14-Feb-13 6:28 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 27 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid