开发者

Links not working when deployed on IIS 5.0

I have an asp.net2.0 application with a treeview control for navigation on my site. the application works fine with development server but when i deploy my site on IIS 5.0,开发者_如何转开发 the links stop working after the first click on any link.


Since the link functionality is a browser function, I'm going to assume that by not working you mean that the links are incorrect, not that they fail to fire. The most likely scenario is that your links are absolute paths rather than relative paths and your web site isn't published at the root of the web server. It works in development because in the development server it is at the root. Check to make sure that your links are correct -- best to make them relative or, if using server-side controls, make sure that you use the tilde mapping to substitute the virtual path of the site.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜