构建Web应用程序模块(可以安装在许多Web应用程序上) [英] Build Web Application modules ( can be installed on many web app)

查看:86
本文介绍了构建Web应用程序模块(可以安装在许多Web应用程序上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我的朋友们
我想在asp.net中构建基于Web的扩展或模块,有些人像Joomla一样可以将模块安装在其上

那么asp.net中的技术有什么用呢?

换句话说,我的网站中有很多类似的功能
像新闻"一样,每个网站都具有相同的数据表和新闻,我不需要每次都复制并粘贴代码和页面,我需要一个组件来安装在我的网站上并仅在aspx内编写功能,例如"

Hello my friends
i want to build a web based extensions or modules in asp.net some think like Joomla that can take modules and install them on it

so what the technique in asp.net can be useful

in other word, I have a many similar functions in my websites
like "news" every website has the same data table and news i dont need to copy and past the code and pages every time, i need a component to install on my website and write the functions only inside the aspx like "

<% getnews()%> 

,它将从我的模块中获取新闻

所以任何人都有专家帮助我选择正确的方法

谢谢allot老友

" and it will get the news from my module

so any one has the expert to help me to choose the right way

thanks allot friends

推荐答案

,您可以编写一个单独的代码文件,然后将gridView,数据源和查询作为参数传递给它.或者您可以创建自己的自定义控件库(更好的方法)

有关更多信息,请研究自定义控件库项目.
you can write either a separate code file and pass gridView, datasource and query as arguments to it. or you may create your own custom control library (more good approach)

for more.. study Custom Controls Library Project.


这篇关于构建Web应用程序模块(可以安装在许多Web应用程序上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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