如何在aspx页面中找到URL链接? [英] How find the URL link in a aspx page ?

查看:128
本文介绍了如何在aspx页面中找到URL链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的网站上发布指向apx页面的链接.问题是复制的链接在输入正确的信息之前不会跟随到其他计算机上的同一页面.这是我要链接的体育网站.该网站要求提供团队名称,然后使用该特定团队的统计信息进行响应.我想直接将我的链接定向到统计信息页面,而无需用户输入.我该如何获取正确的URL,它显示的URL与我选择的任何团队都是相同的?

I am trying to post a link to a aspx page on my website. The problem is that the link when copied is not followed to the same page on other computers until the correct info is entered. It is a sports site that I am trying to link to. The site asks for the team name and then responds with the stats for that particular team. I want to direct my link to the stats page immeadiatly without any user imput. How can I get the correct url, the url it shows is the same for any team I choose?

推荐答案

好吧,根据这篇文章无法说.如果您正确编写了代码,并在URL上指定了团队,那么它就可以正常工作.如果您正在使用其他机制(例如会话,视图状态等)来存储显示的团队,那么实际上只有在正确编写之后才能使其正常工作
well, impossible to say based on this post. If you wrote your code properly, specifying the team on the URL, it would just work. If you are using some other mechanism, like the session, viewstate, etc, to store what team is shown, then it''s actually impossible to make it work until you write it properly


您尝试链接到的页面可能是一个表格,要求输入团队名称,并在回发页面上显示信息.因为它是Post操作,所以所需的值不在URL的查询字符串中.除非页面还可以使用查询字符串参数来指定团队,否则我认为您将按原样使用它.

当然,除非您要使用所需信息创建HTTP Post.您可以使用Firebug或类似工具检查发布请求并重新创建它.查看 System.Net.WebRequest 类以获取详细信息.
The page you are trying to link to is probably a form which asks for the team name and on the post-back displays the information. Because it is a Post operation, the required values are not in the query string of the url. Unless the page can also use a query string parameter to specify the team, I think you are stuck with it working as it is.

That is of course, unless you want to create a HTTP Post with the required information. You could use Firebug or something similar to examine the Post request and recreate it. Check out the System.Net.WebRequest class for details.


这篇关于如何在aspx页面中找到URL链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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