html页面中的asp.net母版页 [英] asp.net master page in html page

查看:141
本文介绍了html页面中的asp.net母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个纯HTML页面,我想在那个html页面中使用asp.net母版页。

那么是否有任何方法可以使用该母版页?

Hi all,

I have a pure html page and i want to use an asp.net master page in that html page.
So is there any way to use that master page?

推荐答案

这是不可能的,因为要引用母版页需要将页面转换为apsx格式页。此外,将html页面转换为aspx将是直截了当的,只需创建引用主页面的相应aspx页面,然后将html代码从html页面复制粘贴到aspx页面的内容控件。请注意不要复制主页中已存在的主要标签,即head / title / html等。



问候

Pawan
That would not be possible since to reference a master page you need to convert the page to apsx form page. moreover conversion of html page to aspx will be straightforward, just create the corresponding aspx page which references the master page, then copy paste the html code from your html page to the content control of the aspx page. Just be carefull not to copy the major tags i.e., head/title/html etc which are already there in the master page.

Regards
Pawan


这篇关于html页面中的asp.net母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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