asp.net4中的masterpage和contentpgae [英] masterpage and contentpgae in asp.net4

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

问题描述

朋友们。



我在asp.net 4.0开始了一个项目。

我有一个名为masterpage1.masterpage的母版页在我的项目中放置在文件夹X中。所以我有一个名为default.aspx的默认页面,它位于项目的根目录(解决方案),其主页是masterpage1.masterpage.why image of materpage1.masterpage default.aspx中没有显示?





谢谢。

hi friends.

I started a project in asp.net 4.0.
I have a masterpage with name "masterpage1.masterpage" in my project who is placed in a folder X .so I have a default page with name "default.aspx" who is placed in root of project(solution) and its masterpage is "masterpage1.masterpage.why image of materpage1.masterpage is not shown in default.aspx?


thanks.

推荐答案

您好亲爱的朋友,



可能您已将图像放入母版页的内容位置...删除它。





关注这些步骤

=================



创建母版页后,当您创建另一个网页时。按照以下步骤操作。



右键单击您的项目 - >添加新项目 - >选择Webform->将其名称命名为Example.aspx - >单击复选框 - >选择MasterPage。就是这样...



这对你有所帮助。
Hello my dear friend,

May be you have put the image in content place holder of master page...Remove it.


FOLLOW THESE STEPS
=================

After Creating Master Page, When you create another Webpage..Follow these steps.

Right Click on your Project->Add New Item -> Select the Webform->give its name as Example.aspx -> click the checkbox -> Select the MasterPage. thats it...

This will help you.


我使用了 control而不是< asp:image xmlns:asp =#unknown>控制。

所以正确的解决方案是使用< asp:image xmlns:asp =#unknown>使用asp控件而不是使用html控件来控制而不是。

I have used control instead of <asp:image xmlns:asp="#unknown"> control.
so correct solution is using <asp:image xmlns:asp="#unknown"> control instead of .
using asp control and not using html control


这篇关于asp.net4中的masterpage和contentpgae的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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