如何从asp.net中的URL获取响应并将其存储在格式化输出中 [英] How to get reponse from URL in asp.net and store it in formatted output

查看:68
本文介绍了如何从asp.net中的URL获取响应并将其存储在格式化输出中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在制作一个网站,其中有smscountry的短信提供商.现在,当我发送短信时,它可以正常工作.但是,我想在我的网站中报告发送的短信.我已经联系短信服务提供商,他们给了我一个URL http://api.smscountry.com/smscwebservices_bulk_reports.aspx?
user = xxxx& ampwd = xxxx& fromdate = DD/MM/YYYY 00:00:00& amp; todate = DD/MM/YYYY
23:59:59

现在查询的输出是这种格式..

响应:-jobid〜mobilenumber〜messagestatus〜donestamp〜message_text〜receivestamp

现在我想以日期-手机号码格式显示短信报告,请帮助我如何从url中读取响应,还有一件事我不想显示要在url中显示的用户ID和密码. br/>

请帮助我,我真的很困!!

谢谢&问候,
Krunal Panchal

Hello everyone,

I am making a website in which i have an sms provider of smscountry. Now when i send sms it works perfectly.But I want report of sent sms in my website. I have contacted the service provider of sms and they gave me a URL of http://api.smscountry.com/smscwebservices_bulk_reports.aspx?
user=xxxx&passwd=xxxx&fromdate=DD/MM/YYYY 00:00:00 &todate=DD/MM/YYYY
23:59:59

Now the output of the query is in this format..

Response: - jobid~mobilenumber~messagestatus~donestamp~message_text~receivestamp

now i want to display the sms report in date---mobilenumber format, please help me how to read the response from the url and also one thing that i dont want to show the user id and password to be shown in the url.


Please help me , i am really really stucked up!!

Thanks & Regards,
Krunal Panchal

推荐答案

在smscwebservices_bulk_reports.aspx页面加载中,使用查询字符串可以获取值.
In smscwebservices_bulk_reports.aspx page load using query string you can get the values.
String strUser = Request.QueryString["user"];
String strpasswd = Request.QueryString["passwd"];
String strfromdate = Request.QueryString["fromdate"];
String strtodate = Request.QueryString["todate"];


这篇关于如何从asp.net中的URL获取响应并将其存储在格式化输出中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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