asp.net母版页
在asp.net中,能不能把模板页中的contentplaceholder放入下拉框里?着么弄?
contentplaceholder是供其他页面调用的,你放下拉框里干什么?不明白你的意思
ContentPlaceholder是一个页面容器。
ContentPlaceholder说白了就是个占位符,
<%@ Master MasterPageFile="~/A.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder2" Runat="server">
</asp:ContentPlaceHolder>
</asp:Content>
ContentPlaceHolder 控件在母版页中定义相对内容区域,并呈现在内容页中找到的相关的 Content 控件的所有文本、标记和服务器控件,页面容器
同意楼上,!
contentplaceholder是一个内容占位符,一般用户装载页面的特性化内容。下拉框放这个控件,好像没有见过。如果你是想使用自定义的下拉框,还是自定义控件吧
比如母版页:
HTML code:
<div>
<select>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</select>
</div>
子页1:
HTML code
Code highlighting produced by Actipro CodeHighl
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
比较好的学习asp.net的书推荐一下吧,谢谢~~~
書的話等高人推薦, 我認為多上上www.asp.net對你幫助挺大, 那里有很多視頻, 如果是新手的話, 視& ......
谁知道,最好是实例,测试过的更好,谢谢分享;
http://www.92dotnet.com/showtopic-428.aspxC# code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using Sy ......
ASP.NET 错误 无法识别的标记前缀或设备筛选器“asp”
代码如下:
<%@ Page Language="C#" ContentType="text/xml" AutoEventWireup="true" CodeFile=" ......
正在学习这个东东 感觉很多地方不是很懂 正在努力 散点粉给asp.net的同仁们 求教好的学习资料 谢谢
参考
asp.net/mvc上有很多内容。
最近也在看。
同聊。
JF,3Q
比我有前途, 我至少目前 ......