【发布时间】:2015-11-23 22:21:41
【问题描述】:
我正在尝试从服务器端加载 URL,并且该 url 是一个发送 SMS 的 API。
我的问题是我需要加载 url,但触发时不应打开页面或任何窗口。
string url = "http://xxxxx.xxxxx.com/api/sendmsg.php?user=xxxx&pass=xxxx&sender=xxx&phone=xxxxxxxxxxx&text=this%20is%20test%20sms&priority=ndnd&stype=normal";
string s = "window.open('" + url + "', 'popup_window', 'width=300,height=100,left=100,top=100,resizable=yes');";
ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);
【问题讨论】:
-
不确定它是如何设置的。但是请阅读有关 Ajax 的信息。它可能会有所帮助。这里有一些examples
标签: javascript c# asp.net