在C#中从桌面应用程序添加aspx页面 [英] Adding aspx pages from desktop application in C#

查看:203
本文介绍了在C#中从桌面应用程序添加aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#中有一个asp.net Web应用程序。现在我想制作一个工具,它将添加新的aspx页面,并将从文件夹中添加必要的dll并重建项目。任何人都可以帮助我或者从桌面应用程序中概述如何做到这一点。



我尝试过:



我已经完成了一个服务器控制,可以在aspx页面内进行更改,并在项目中添加文件和文件夹。但是这次我还需要创建页面和母版页以及配置文件。

解决方案

请看我对这个问题的评论。



根据我的推理,我无法相信回答你的问题可以真正帮助你。如果你对某些CMS有自己有趣的想法,特别是一些非常紧凑的CMS,并且可以创建它的原型,那将是完全不同的故事,但是你不会问这个问题。通过这种方式,我倾向于得出结论,您必须了解现有CMS的作用(在您考虑它们如何运行或可以实施之前),并且首先考虑使用其中一个可用的系统。稍后,你可以了解它们是如何工作的,并且可能会想到自己开发一些东西的可能性。但是,与知名和实施的想法相比,如果你有更高效和有趣的想法,那将是有意义的。



请参阅:

内容管理系统 - 维基百科,免费的百科全书 [ ^ ],

内容管理系统列表 - 维基百科,免费的百科全书 [ ^ ]。



很抱歉没有完全按照您的要求回答您的问题,但目前尚不清楚您会得到什么样的帮助期望。如果您真的提到开发可用于在ASPX页面内进行更改并添加文件和文件夹的功能,那么我很难想象是什么阻止您开发可用于创建页面和主页的功能页面和配置文件。这就是为什么我们有一个标题为我尝试过的东西的部分。也许您需要 了解其含义



-SA

I have an asp.net web application in c#. now I want to make a tool that will add new aspx pages and will add necessary dlls from folders and will rebuild the project. Can anyone help me or give me an overview how to do that from a desktop application.

What I have tried:

I have done a sever control to make changes inside an aspx page and adding files and folders inside a project. but this time I need to create pages and master pages and config files also.

解决方案

Please see my comment to the question.

Based on my reasoning, I cannot believe that answering your question could really help you. If you had your own interesting ideas of some CMS, especially some very compact one, and could create some prototype of it, it would be the totally different story, but then you would not ask this question. This way, I tend to come to the conclusion that you have to learn what existing CMS do (before you even think how they operate or can be implemented), and, first of all, consider using of one of such available systems. Later on, you could come to understanding of how they work and probably think at the possibility to develop something on your own. But it would makes sense if you have more productive and interesting ideas compared to the well-known and implemented ones.

Please see:
Content management system — Wikipedia, the free encyclopedia[^],
List of content management systems — Wikipedia, the free encyclopedia[^].

Sorry for not answering your question exactly as you formulate it, but it's not clear what kind of help would you expect. If you really mentioned to develop the functionality which can be used to "make changes inside an ASPX page and adding files and folders", it's hard for me to imagine what prevents you from developing the functionality which can be used to "create pages and master pages and config files". That's why we have the section of the question titled "What I have tried". Perhaps you need to understand what it means.

—SA


这篇关于在C#中从桌面应用程序添加aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆