使用asp.net中的主页/内容页面在asp.net中创建子表单 [英] child forms in asp.net using Master/Content Pages in asp.net

查看:110
本文介绍了使用asp.net中的主页/内容页面在asp.net中创建子表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i在html中有3种形式,我想全部使用它们因为css取决于它们



所以如何在主内容页面的asp.net中使用3表格



问候



maulik shah

Hi
i have 3 forms in html , and i want to use them all because the css depends on them

so how to use 3 form in asp.net in Master-Content pages

regards

maulik shah

推荐答案





别担心,尝试将表格标签更改为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[^]


这篇关于使用asp.net中的主页/内容页面在asp.net中创建子表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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