15,905,238 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Wenpeng Wang (Top 3 by date)
Wenpeng Wang
20-Jun-13 1:27am
View
the jquery :
function() {
var chkList = $("#<%=gv_OrderStatus.ClientID%> input[id*='chkAll']:checkbox:checked[name$=CheckBox1]");
var arrayList = new Array();
for (var i = 0; i < chkList.length; i++) {
arrayList.push(chkList[i].value);
}
}
Wenpeng Wang
20-Jun-13 1:25am
View
<asp:GridView ID="gv_orderStatus" AutoGenerateColumns="false" EmptyDataText="查询无结果"
Border="1px" AllowPaging="true" AllowSorting="false" OnRowDataBound="gv_orderStatus_RowDataBound"
OnPageIndexChanging="gvPaging_PageIndexChanging" Width="100%" PageSize="30" runat="server">
<%--width="1200px"--%>
<HeaderStyle Height="25px" BackColor="#CCCCFF" />
<rowstyle horizontalalign="Center" font-size="13px" forecolor="Black" height="20px"
="" width="100%">
<columns>
<%--<asp:BoundField DataField="option_name" HeaderText="页面" />--%>
<asp:TemplateField ControlStyle-Width="200px">
<%--HeaderStyle-BackColor="#66CCFF"HeaderStyle-BackColor="#CCCCFF"--%>
<HeaderTemplate>
<asp:Label ID="lbpage" class="ESB_Label" Text="页面" runat="server"><%-- --%>
</HeaderTemplate>
<itemtemplate>
<%--<asp:DropDownList id="fullname" runat="server" Width="150px">
--%>
<asp:Label ID="fullname" Text='<%# Eval("fullname") %>' runat="server">
<%-- <asp:BoundField DataField="option_type" HeaderText="类型" SortExpression="option_type" HeaderStyle-BackColor="#66CCFF" />--%>
<asp:TemplateField ControlStyle-Width="200px">
<%--HeaderStyle-BackColor="#66CCFF"--%>
<HeaderTemplate>
<asp:Label ID="lblType" class="ESB_Label" Text="类型" runat="server"><%----%>
</HeaderTemplate>
<itemtemplate>
<asp:Label ID="option_type" Width="120px" Text='<%#Eval("option_type") %>' runat="server">
<HeaderStyle HorizontalAlign="Center" />
<itemstyle horizontalalign="Center" width="150px">
<%-- <asp:BoundField DataField="option_name" HeaderText="名称" SortExpression="option_name" HeaderStyle-BackColor="#66CCFF"/>--%>
<asp:TemplateField ControlStyle-Width="130px" ItemStyle-HorizontalAlign="Center">
<%--HeaderStyle-BackColor="#66CCFF"--%>
<HeaderTemplate>
<asp:Label ID="lblName" Text="名称" class="ESB_Label" runat="server">
</HeaderTemplate>
<itemtemplate>
<asp:TextBox ID="option_name" Width="100px" Text='<%#Bind("option_name") %>' CssClass="CC_TextBox_ReadOnly1"
runat="server">
<asp:Label ID="hidOption_name" Text="" runat="server" Visible="false" ForeColor="Red">
<itemstyle width="100px" horizontalalign="Center">
<%--<asp:BoundField DataField="option_code" HeaderText="编号" SortExpression="option_code" HeaderStyle-BackColor="#66CCFF"/>--%>
&
Wenpeng Wang
4-Jun-13 1:49am
View
hello,i have a question why i code these codes the error shows"
行 47: }
行 48: //PageTitle = System_Title;
行 49: base.OnInit(e);
行 50: }
行 51: ///
stacktrace:
[HttpException (0x80004005): 控件包含代码块(即 <% ... %>),因此无法修改控件集合。]
System.Web.UI.ControlCollection.Add(Control child) +8699175
System.Web.UI.PageTheme.SetStyleSheet() +478
System.Web.UI.Page.OnInit(EventArgs e) +8719932
YWYS.Common.PageBase.OnInit(EventArgs e) in D:\ress\20130507\YWYS.Common\PageBase.cs:49
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
".how do i do next?