Click here to Skip to main content
15,890,973 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAsp to asp.net 2.0 migration Pin
Rijz25-Apr-10 22:37
Rijz25-Apr-10 22:37 
AnswerRe: Asp to asp.net 2.0 migration Pin
Vimalsoft(Pty) Ltd25-Apr-10 23:32
professionalVimalsoft(Pty) Ltd25-Apr-10 23:32 
GeneralRe: Asp to asp.net 2.0 migration Pin
Rijz26-Apr-10 0:21
Rijz26-Apr-10 0:21 
AnswerRe: Asp to asp.net 2.0 migration Pin
Jamil Hallal26-Apr-10 0:20
professionalJamil Hallal26-Apr-10 0:20 
AnswerRe: Asp to asp.net 2.0 migration Pin
Ankur\m/26-Apr-10 2:09
professionalAnkur\m/26-Apr-10 2:09 
GeneralRe: Asp to asp.net 2.0 migration Pin
Rijz29-Apr-10 0:07
Rijz29-Apr-10 0:07 
GeneralRe: Asp to asp.net 2.0 migration Pin
Ankur\m/29-Apr-10 0:12
professionalAnkur\m/29-Apr-10 0:12 
QuestionSend online SMS [modified] Pin
lrsalunkhe25-Apr-10 19:55
lrsalunkhe25-Apr-10 19:55 
respected

I am creating sms application when it is LocalHost
SMS send successfully but when it online we do not send SMS
My code is :

public string mobile(string strcontactno, string strmesg)
{
try
{
myPage.Text = readHtmlPage(strcontactno, strmesg, "?");
return myPage.Text;
}
catch (Exception ex)
{
return myPage.Text;
}
}
public string readHtmlPage(string strcontactno, string strmesg, string url)
{

string result = null;
string strPost = null;
string contactno = strcontactno;
string message = strmesg;
try
{
strPost = "&msisdn=" + strcontactno + "&msg=" + strmesg + "&sid=TEST&mt=0";
HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
objRequest.Method = "POST";
objRequest.ContentLength = strPost.Length;
objRequest.ContentType = "application/x-www-form-urlencoded";


myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(strPost);
}
catch (Exception e)
{
return e.Message;
result = "-200";
}
finally
{
if (myWriter != null)
{
myWriter.Close();
}
}
return result;
}

Thanks

modified on Monday, April 26, 2010 3:31 AM

AnswerRe: Send online SMS Pin
Michel Godfroid25-Apr-10 20:45
Michel Godfroid25-Apr-10 20:45 
AnswerRe: Send online SMS Pin
Michel Godfroid25-Apr-10 23:56
Michel Godfroid25-Apr-10 23:56 
QuestionDrag And Drop between 2 listboxes in ASP.NET Pin
AnandDesai1925-Apr-10 19:15
AnandDesai1925-Apr-10 19:15 
AnswerRe: Drag And Drop between 2 listboxes in ASP.NET Pin
Brij25-Apr-10 20:45
mentorBrij25-Apr-10 20:45 
AnswerRe: Drag And Drop between 2 listboxes in ASP.NET Pin
Abhijit Jana25-Apr-10 20:51
professionalAbhijit Jana25-Apr-10 20:51 
QuestionRadGrid - dynamically building a grid and adding a hierarchy with declarative relations row? Pin
Steve Holdorf25-Apr-10 14:11
Steve Holdorf25-Apr-10 14:11 
AnswerRe: RadGrid - dynamically building a grid and adding a hierarchy with declarative relations row? Pin
Arindam Tewary25-Apr-10 18:55
professionalArindam Tewary25-Apr-10 18:55 
Questiondynamically increasing image size using asp.net with c# Pin
developerit25-Apr-10 3:23
developerit25-Apr-10 3:23 
AnswerRe: dynamically increasing image size using asp.net with c# Pin
Brij25-Apr-10 5:41
mentorBrij25-Apr-10 5:41 
Answer[Repost] Re: dynamically increasing image size using asp.net with c# Pin
Sandeep Mewara25-Apr-10 5:55
mveSandeep Mewara25-Apr-10 5:55 
AnswerRe: dynamically increasing image size using asp.net with c# Pin
daveyerwin25-Apr-10 6:36
daveyerwin25-Apr-10 6:36 
AnswerRe: dynamically increasing image size using asp.net with c# Pin
Tej Aj25-Apr-10 23:12
Tej Aj25-Apr-10 23:12 
Questionhow to increase the image size when image is click Pin
developerit25-Apr-10 1:57
developerit25-Apr-10 1:57 
AnswerRe: how to increase the image size when image is click Pin
Sandeep Mewara25-Apr-10 2:02
mveSandeep Mewara25-Apr-10 2:02 
Questiondisplaying image directly in image button from fileupload control Pin
developerit25-Apr-10 0:44
developerit25-Apr-10 0:44 
AnswerRe: displaying image directly in image button from fileupload control Pin
Sandeep Mewara25-Apr-10 1:57
mveSandeep Mewara25-Apr-10 1:57 
Questionhide and show popup menu Pin
Abdul Rahman Hamidy24-Apr-10 19:08
Abdul Rahman Hamidy24-Apr-10 19:08 

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.