动态添加网页到编译后的Codebehind [英] adding web pages Dynamically to compiled Codebehind

查看:168
本文介绍了动态添加网页到编译后的Codebehind的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,

想要找到一种方法来创建添加到我的网站的网页,而不是每次我想添加一个新的时候必须重新编译代码隐藏的
。 ..


这是交易:

我有一个网络应用程序可以获取7个不同项目的工单,每个项目

获取1页输入规格。一切顺利。我想添加一个新项目。我不想每次都重新编译和重新分发我的应用程序只是为了添加一个新的
输入页面。可以将ASPX资源编译成一个DLL,我可以轻松地使用和/或替换而无需重新编译主应用程序吗?还有其他

的建议吗?

MTIA

wardeaux

All,
Wanting to find a way to create web pages to add to my website without
having to recompile the codebehind everytime I want to add a new one...

Here''s the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item. I
do not want to recompile and redistribute my app everytime just to add a new
input page. Can ASPX resources be compiled into a DLL that I can easily pull
in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux

推荐答案

visual studio为@Page添加属性 - CodeBehind。这指定了

代码隐藏文件。

如果代码隐藏被src替换,如果文件被上传则

上传的新文件将是自动编译。


-


问候,


隐士戴夫

http://hdave.blogspot.com

Wardeaux < WA ****** @ bellsouth.net>在消息中写道

新闻:#x ************* @ TK2MSFTNGP11.phx.gbl ...
visual studio add an attribute to @Page - CodeBehind. this specifies the
codebehind file.
if codebehind is replaced with a src and if the files are then uploaded the
uploaded new file will be automatically compiled.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:#x*************@TK2MSFTNGP11.phx.gbl...
全部,
想要找到一种方法来创建添加到我的网站的网页,而不必每次都要重新编译代码隐藏我想添加一个新的...

这里是交易:
我有一个网络应用程序,可以获取7个不同项目的工单,每个项目
获得1页输入规格。一切顺利。我想添加一个新项目。
我不想每次重新编译和重新分发我的应用程序只是为了添加一个
的新输入页面。是否可以将ASPX资源编译成一个DLL,我可以轻松地使用和/或替换而无需重新编译主应用程序?还有其他建议吗?
MTIA
wardeaux
All,
Wanting to find a way to create web pages to add to my website without
having to recompile the codebehind everytime I want to add a new one...

Here''s the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item. I do not want to recompile and redistribute my app everytime just to add a new input page. Can ASPX resources be compiled into a DLL that I can easily pull in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux



为什么不动态提取工作单项目一个xml文件(或其他数据

商店,如数据库),然后有一个常见的页面要求输入

specs(这个页面可以从数据中动态创建)在数据存储区

运行时),所以你要做的就是向数据存储区添加新条目。建立

一个小管理页面,允许您将新项目输入数据存储区。


Wardeaux < WA ****** @ bellsouth.net>在消息中写道

新闻:%2 *************** @ TK2MSFTNGP11.phx.gbl ...
Why not dynamically pull the work order items from a xml file (or other data
store such as a database), then have ONE common page that asks for input
specs (this page can be dynaically created from the data in the datastore at
run-time), so all you have to do is add new entries to the datastore. Build
a little admin page that allows you to input new items into the datastore.

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
全部,<想要找到一种创建网页的方法来添加到我的网站,而不必每次都要重新编译代码隐藏我想添加一个新的...

这里是这笔交易:
我有一个网络应用程序,可以获取7个不同项目的工单,每个项目
获得1页输入规格。一切顺利。我想添加一个新项目。
我不想每次重新编译和重新分发我的应用程序只是为了添加一个
的新输入页面。是否可以将ASPX资源编译成一个DLL,我可以轻松地使用和/或替换而无需重新编译主应用程序?还有其他建议吗?
MTIA
wardeaux
All,
Wanting to find a way to create web pages to add to my website without
having to recompile the codebehind everytime I want to add a new one...

Here''s the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item. I do not want to recompile and redistribute my app everytime just to add a new input page. Can ASPX resources be compiled into a DLL that I can easily pull in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux



i Wiin

所以你所说的是一个定义。输入页面控件在

XML文档中,然后只加载定义从XML到通用页面

知道如何阅读定义并创建合适的网页?

很酷......我没有做过任何XML编程,是否有一个样本或文章我可以看一下这将证明这一点技术?听起来很像

我需要什么...

MTIA

wardeaux

" i。 Wiin" <ⅱ**** @ yagoo.com>在消息中写道

新闻:eF **************** @ TK2MSFTNGP09.phx.gbl ...
i Wiin
So what you''re saying is put a "definition" of the input page controls in an
XML doc, then just load the "definition" from the XML into a generic page
that knows how to read the "Definitions" and create the appropriate webpage?
Cool... I''ve not done any XML programming, is there a sample or article I
could look at that would demonstrate this technique? Sounds like exactly
what I need...
MTIA
wardeaux
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eF****************@TK2MSFTNGP09.phx.gbl...
为什么不动态从xml文件(或其他
数据存储,如数据库)中提取工作订单项,然后有一个要求输入
规范的常用页面(此页面可以通过数据创建数据存储区在运行时
,因此您只需向数据存储区添加新条目即可。
构建一个小管理页面,允许您将新项目输入数据存储区。

Wardeaux < WA ****** @ bellsouth.net>在消息中写道
新闻:%2 *************** @ TK2MSFTNGP11.phx.gbl ...
Why not dynamically pull the work order items from a xml file (or other data store such as a database), then have ONE common page that asks for input
specs (this page can be dynaically created from the data in the datastore at run-time), so all you have to do is add new entries to the datastore. Build a little admin page that allows you to input new items into the datastore.

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
全部,
想要找到一种方法来创建网页添加到我的网站
,而不必每次都要重新编译代码隐藏我想添加一个新的...

这是交易:
我有一个网络应用程序,可以获取7个不同项目的工单,每个项目
获得1页输入规格。一切顺利。我想添加一个新项目。
All,
Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one...

Here''s the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item.


每次都不想重新编译和重新分发我的应用程序只是为了添加
do not want to recompile and redistribute my app everytime just to add a


新的

输入页面。可以将ASPX资源编译成一个DLL,我可以轻松
input page. Can ASPX resources be compiled into a DLL that I can easily


并使用和/或替换而无需重新编译主应用程序?还有其他建议吗?
MTIA
wardeaux
in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux




这篇关于动态添加网页到编译后的Codebehind的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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