I am facing problem while calling .ashx file from repeater control in .aspx page. I put break point in .ashx file, but process execution not going to that line. 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. Use /
instead of \
.
You can use tool such as Fiddler or Firebug on Firefox to inspect the requests/responses from/to browser. 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.
精彩评论