Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何在母版页的contentplaceholder中显示aspx页_Asp.net - Fatal编程技术网

Asp.net 如何在母版页的contentplaceholder中显示aspx页

Asp.net 如何在母版页的contentplaceholder中显示aspx页,asp.net,Asp.net,我的网站上有一个母版页 我在母版页上有两个内容占位符。 在一个contentplaceholder中,我有一些链接,单击后我想重定向这些链接 到同一母版页上第二个ContentPlaceHolder中的相应页面 我该怎么做 请帮忙……?我看这里没有问题。只需使.aspx页面使用相同的母版页,并将链接位置设置为.aspx页面 听上去,您需要使用站点地图而不是第一个contentplaceholder。下面是对它们的描述:我想你可能错过了一些东西。当您使用母版页时,您会使用内容页。内容页定义了母版页

我的网站上有一个母版页

我在母版页上有两个内容占位符。 在一个contentplaceholder中,我有一些链接,单击后我想重定向这些链接 到同一母版页上第二个ContentPlaceHolder中的相应页面

我该怎么做


请帮忙……?

我看这里没有问题。只需使
.aspx
页面使用相同的母版页,并将链接位置设置为
.aspx
页面

听上去,您需要使用站点地图而不是第一个contentplaceholder。下面是对它们的描述:

我想你可能错过了一些东西。当您使用母版页时,您会使用内容页。内容页定义了母版页中内容占位符定义的区域。创建内容页时,使用contentplaceholder标记在母版页中显示页面内容。这可能值得在ASP.NET网站上阅读