本文介绍了显示(StartIndex不能小于零.参数名称:startIndex)如何解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#语言ASP.net技术
即时通讯使用下面的网络服务发送免费短信.
如果可能的话,请对此Web服务进行完整的解释


这是我的网络参考资料
http://www.spiritssoft.com/webservice/sendway2sms.asmx

Im using C# language ASP.net technology
im using the below webservice to send free sms.
if possible explain completely about this webservice


this is my webreference
http://www.spiritssoft.com/webservice/sendway2sms.asmx

protected void Button1_Click(object sender, EventArgs e)
  {

      //WebService URL
      //http://www.spiritssoft.com/webservice/sendway2sms.asmx
      com.spiritssoft.www.SendWay2Sms sendSms = new com.spiritssoft.www.SendWay2Sms();
      sendSms.Timeout.Equals(120);
      lbl.Text=sendSms.sendSmsSpiritsSoft(txt1.Text,txt2.Text,txt3.Text,txt4.Text);

  }



[修改:解决了您的格式设置问题]



[Modified: fixed your formatting problems]

推荐答案

Lable1.Text=sendSms.sendSmsSpiritsSoft("yourUsername", "yourPassword", "7845111222", "Hello World");



显然要使用真实的用户名/密码和真实的手机号码.

如果这行得通,则您的TextBox es中的值有问题,可能是空格放在错误的位置,等等.

但是,如果那不起作用,那么您在其他地方做错了.这将意味着访问作者的网站.那里一定有教程.



Obviously use the real usename/password and a real mobile number.

If that works then there is something wrong with the values in your TextBoxes, maybe spaces in the wrong place etc.

However, if that doesn''t work then you have done something wrong somewhere else. Which will mean a visit to the authors web site. There must be tutorials there.



这篇关于显示(StartIndex不能小于零.参数名称:startIndex)如何解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 08:32