显示(StartIndex不能小于零.参数名称:startIndex)如何解决 [英] showing (StartIndex cannot be less than zero. Parameter name: startIndex) how to fix that

查看:2179
本文介绍了显示(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]

推荐答案

我建​​议提出此类问题的最佳地点是Web服务作者的网站.

不过,如果是我,我会尝试用实际值替换.Text引用.
I would suggest that the best place to ask this sort of question would be the web site of the authors of the webservice.

Still, if it were me I would try by replacing the .Text references with the actual values.
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.


我也遇到了同样的问题,请帮忙.
i am also getting same problem please help some.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆