开发者

how to fetch xml data from ascx page url?

开发者 https://www.devze.com 2022-12-28 09:53 出处:网络
i have the url for ascx page and i want to fetch the xml data from that page u开发者_Python百科sing the page url...is it possible in .netIn ASP.NET, the .ascx file extension is used for files containi

i have the url for ascx page and i want to fetch the xml data from that page u开发者_Python百科sing the page url...is it possible in .net


In ASP.NET, the .ascx file extension is used for files containing markup for user controls, not pages. A user control is a reusable "block" of other controls and logic, which can be embedded in one of more pages throughout your web application.

A user control does not have its own URL. Even though the file sits below the project folder in the file system it does not respond (well) to HTTP requests made for domain + path to .ascx file. The user control can only be rendered as part of a page.

If you want to have a URL that gets the content rendered by a user control and nothing else, consider making a new .aspx page in your project with only the control declaration.

0

精彩评论

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

关注公众号