您的当前位置:我要购书网>在线阅读>ASP/PHP/.NET/XML

creating user controls

来源:互联网  作者:  发布:我要购物网收集整理  发布时间:2006-8-31 人气:3665

Creating User ControlsIn addition to the built-in server controls in the .NET Framework, you can also build your own controls to be placed on Web Forms. ASP.NET supports two different types of user-created controls: user controls and custom controls. The creation of custom controls is beyond the scope of this book, but it's simple to create user controls. These controls are basically saved pages (or pagelets) that act as self-contained controls.For example, you may wish to create a menu system along the left side of every page in your site, where each menu item is built from a database. You might also want to place a standard logo and header on each page. What you need is some way to include standard pages, or parts of pages, within each of your pages.User controls provide this functionality and are the replacement for #include files in ASP.NET. Figure 6.4 displays the output you might want to generate. In this example, the image and header "Northwind Traders" are both in one user control. The menu going down the left side is another control.Figure 6.4. User controls output HTML on the client side.Figure 6.5 shows the same Web page in design mode. As you can see, these user controls are simply placeholders. You can see the full UI for such controls by opening the file where you built them within your project.Figure 6.5. User controls do not display any HTML on the server side; they are just placeholders.
相关文章
· creating user controls
· create为什么可以为虚函数?
· createprocess创建的子进程的命令行参数
· cruisecontrol简介
· cricheditdoc在关闭非cricheditvie..
· createprocess使用心得
· createwindow 函数
· createremotethread简单应用
· create a menu item into the ..
· creating your own validation
热点文章
%>
· creating user controls
· 提高fastreplace速度 (fstrrep.pas)
· asc ii 完整码表及简介
· 自动生成拼音(汉字反查到拼音)
· sql2000无法安装的解决办法
· 浏览器集成教学 自定义浏览器
· vc++技术内幕(第四版)笔记(第7章)
· mysql5.0中文乱码解决方案
· sql server日期计算
· vc下利用ado连接access数据库
 淘宝旺旺:我要购书网上书店『图书目录
本购书中心地址: 杭州市延安路111号清波商厦南楼D座(总部) 上海市闸北区老沪太路网上购书中心(沪部),  邮编:310002
电子邮件:books@51goushu.com  经营许可证编号:沪ICP备06038574号
版权所有 2003-2008 © All Rights Reserved .购书网