如何使用母版页将Webform转换为普通的Web表单? [英] How to covert Webform using Master page to normal web form?

查看:47
本文介绍了如何使用母版页将Webform转换为普通的Web表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用母版页创建的登录页面。现在我不希望这个页面在母版页中,我该如何实现呢?

这是删除内容的唯一方法(标签内容 -

I have one Login page which is created using Master page. Now I dont want this page in master page, How can I achieve it?
Is it only way to delete content(tag content -

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>






and

<%@ Page Title="Login" Language="C#" MasterPageFile="~/Site1.Master" 





我们可以通过其他方式实现吗?

他们的替代解决方案是什么?



Can we achieve it by another way?
Is their any alternate solution for same?

推荐答案

更安全的解决方案是...



1.创建一个新的 aspx 页面。

2.将旧页面内容占位符内的所有内容或控件正确复制到新的 aspx 页面。



就是这样!!!
Safer solution would be...

1. Create a new aspx Page.
2. Copy all the contents or controls inside the Content Place Holders in the old page correctly into the new aspx page.

That's it !!!


这篇关于如何使用母版页将Webform转换为普通的Web表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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