创建网页的问题 [英] Problem to create Webpage

查看:67
本文介绍了创建网页的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击链接时,想要创建页面,另一个页面将显示在链接标签下方.例如,在我们单击提出问题"时在codeproject页面中,该页面类似地在下面显示.当我们单击我的"时,将显示我们的问题列表,就像我想要的那样.

请帮助一些身体,

在此先感谢

Iwant to Create the page when i clicked the link the another page will display below the link lable. for example in codeproject page when we clicked Ask a Question this page is displayed below, similiarly When we clicked Mine the list of our questions are displayed, that''s like i want.

Please help some body,

Thanks in Advance

推荐答案

右键单击您的解决方案资源管理器,然后

点击添加新项目->选择母版页.

打开母版页的设计视图

R单击ContentPlaceHolder选择添加内容页面.(使用此选项,您可以为此母版页面创建任意数量的内容页面)

在母版页的设计视图中放置菜单.

在每个菜单中提供相关内容"页面的url,因此,当您运行应用程序时,您可以看到期望的内容.
Right click on your Solution Explorer then

click Add new item ->select Master page.

open the design view of master page

R-Click on ContentPlaceHolder select add content page.(using this option you can create any number of content page for this master page)

In the design view of master page place the menu.

In each menu give the url of relevant Content page So than when you run the application you can see what you expected..


选择linkbutton的属性并将PostbackUrl设置为您所需要的页面要重定向.
或者您可以使用HTML链接.
语法:
Select the properties of the linkbutton and set the PostbackUrl to the page you want to redirect.
Or you can use HTML links.
Syntax:
<a href="page url">Link text</a> 


devausha写道:
当我单击链接时,另一个页面将在链接标签下方显示

如果我说对了.
您需要创建一个母版页,在其中添加所有链接(作为菜单).
然后将其余页面创建为其内容页面.

您还可以将更新面板放在母版页中,以避免重新加载.
devausha wrote:
when i clicked the link the another page will display below the link lable

If i am getting you right.
you need to create a MasterPage in which you add all the links(as menu).
and then create the rest of the pages as its content page.

you can also put update panel in your master page to avoid reload.


这篇关于创建网页的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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