简体   繁体   中英

Can you edit aspx html content

Is is possible to edit the raw html content of a deployed .aspx page without recompiling or redeploying?

For example say I have a deployed .net 4.6 aspx website. If i give someone FTP access to the .aspx files on the server can that person edit and update the layout of html elements without recompiling?

This might occur when a website is deployed onto a web host and a 3rd party contractor is requested to help improve the gui without being giving full access to the .sln file [eg c#\\wcf\\classes etc..].

Yes, this is possible.

.aspx files are not precompiled (unless you specifically say so, in which case you won't see them on the server).

One thing to keep in mind is that every time you change an .aspx-file, it will be recompiled the first time it's requested. Also after a number of changes (I belive this to be 20), the application pool will restart.

These page recompilations and apppool reboots could impact performance on your site.

Apart from that the usual guidelines apply and I would advise not to do this:

  • the changes won't be synced back to your local repository
  • You have little control or testing over the changes
  • You have no backups of these changes

似乎应该可以编辑已部署的aspx文件,只是要知道更改将不会显示在用于部署它们的解决方案文件中,而只会在进行编辑的设备上可见。

yes, according to my experience, we can change .aspx, .cshtml, .html, .css and any image file in the host server if we have access to that server. Solution do not need to be compiled to change all these files because we upload directly these files on the host server. So for any change on these file either on our local machine or on host server, we can just copy and paste file from either location using remote connection to synchronize manually.

Only For all .cs file we only upload a dll file so solution need to be recompiled before uploading for any changes of class file.

So, if third party make any changes on host file like .apsx, .css. image file then these can be copied to the local machine directly to override the old one and checkin to the repository.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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