简体   繁体   English

无法从转发器控件调用.ashx文件

[英]Unable to call .ashx file from repeater control

I am facing problem while calling .ashx file from repeater control in .aspx page. 我在.aspx页面中从转发器控件调用.ashx文件时遇到问题。 I put break point in .ashx file, but process execution not going to that line. 我在.ashx文件中放置了断点,但是流程执行没有进入该行。 Where the page is placed in sub folder and at first it is having membership authentication later i changed it to forms authentication. 如果页面放在子文件夹中,并且首先它具有成员身份验证,我将其更改为表单身份验证。

Make sure that your path to ashx is correct - for example, as it's a relative path, make sure that when considered relative to your page, whether it points to correct location. 确保您的ashx路径正确 - 例如,因为它是相对路径,请确保在相对于您的页面时,是否指向正确的位置。 Use / instead of \\ . 使用/代替\\

You can use tool such as Fiddler or Firebug on Firefox to inspect the requests/responses from/to browser. 您可以在Firefox上使用Fiddler或Firebug等工具来检查来自/到浏览器的请求/响应。 For example, you can see if the request path to ashx is correct or not and if it's incorrect, you will notice 404 response from server. 例如,您可以查看ashx的请求路径是否正确,如果不正确,您将看到来自服务器的404响应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM