Link to ASP.Net Website Administration Tool

I would like to enable the ASP.net web admin tool on the website, when the user logs in as the local website manager, it will be on the local network, not publicly.

I can get the link in Visual Studio, i.e.

http: // localhost: 54397 / asp.netwebadminfiles / default.aspx? applicationPhysicalPath = D : \ DATA \ Projects \ WebIV \ WebSite \ & applicationUrl = / WebSite

However, this changes from server to server, and the physical path changes

Is there a way to run it through a relative link? or some other way to get the url at runtime?

http://msdn.microsoft.com/en-us/library/yy40ytx0(VS.85).aspx

+4
source share
2 answers

First of all, I would not recommend doing this.

It would be much better for you to write your own tool that will provide you with the necessary functionality.

However, if you really want to, copy all the files in C:\Windows\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles (or Framework64 on x64) into a separate application on your website, then change Web.config and etc. to enable security. I would also recommend removing all the functions that your managers do not need, and possibly adding a log. You will also need to rewrite App_Code\WebAdminPage.cs and possibly some other files in order to work with your website.

+2
source

You can use a small implementation, for example: http://websitemanager.codeplex.com (if your site is in ASP.Net MVC) or just copy the netwebadmin files for your project and application deployment.

Hope help

Sunny Chaganti

0
source

All Articles