我们可以将相同的表单用于不同的母版页吗 [英] can we use same form to different master pages

查看:70
本文介绍了我们可以将相同的表单用于不同的母版页吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我有两个不同的母版页,但是两个母版页都具有相同类型的子页..

任何人都可以回答我,我们可以将相同的表单发送到不同的主页...

如果可能的话,让我知道如何使用...

请紧迫它

hi!

i''m having two different master pages but both master page having same type of sub page ..

anyone can answer me that we can u same form to the different master page...

if possible means let me know how to use it...

please its urgent

推荐答案

Google是您的朋友-特别是如果它是紧急"的话.

以编程方式使用母版页 [
Google is your friend - ESPECIALLY if it''s "urgent".

Working with master pages programatically[^]


使用变量代替定义母版页名称和在页面的页面加载事件中设置该变量的值.您也可以使用相同的技术来更改主题和外观.
Use variable in place of defining master page name and set the value of that variable at page load event of page. You can change theme and skins also using same technique.


您可以为此创建一个用户控件,然后将其用于两种形式.

如果您喜欢我的解决方案,请告诉我,我会告诉您完整的解决方案.
You can create a User Control for that from and then use it on both the form.

If you like my solution just tell me i''ll tell you the full solution.


这篇关于我们可以将相同的表单用于不同的母版页吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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