且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用asp.net中的主页/内容页面在asp.net中创建子表单

更新时间:2023-10-07 14:08:34





别担心,尝试将表格标签更改为div标签将css类应用于div标签,并且您不能在单个aspx页面中使用3服务器表单标记。
Hi,

Don't worry, try to change form tag to div tag and apply the css class to the div tag that's it and you can't use 3 server form tag in single aspx page.


母版页允许您为所有创建一致的外观和行为Web应用程序中的页面(或页面组)。



主页面为其他页面提供模板,具有共享布局和功能。母版页定义了内容的占位符,可以由内容页面覆盖。输出结果是母版页和内容页的组合。



内容页面包含您要显示的内容。



当用户请求内容页面时,ASP.NET合并页面以生成输出,该输出将母版页的布局与内容页面的内容相结合。



http://www.w3schools.com/website/webforms_style.asp [ ^ ]
Master pages allow you to create a consistent look and behavior for all the pages (or group of pages) in your web application.

A master page provides a template for other pages, with shared layout and functionality. The master page defines placeholders for the content, which can be overridden by content pages. The output result is a combination of the master page and the content page.

The content pages contain the content you want to display.

When users request the content page, ASP.NET merges the pages to produce output that combines the layout of the master page with the content of the content page.

http://www.w3schools.com/website/webforms_style.asp[^]