惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
GbyAI
GbyAI
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
A
About on SuperTechFans
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
Google DeepMind News
Google DeepMind News
博客园 - Franky
B
Blog RSS Feed
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - 萍踪侠影

c#过滤HTML代码 - 萍踪侠影 - 博客园 也來開發一款日歷控件 制作activeX控件 在MasterPage中檢驗User是否登入 - 萍踪侠影 - 博客园 [轉載]Run As Administrator 以編程方式為GridView添加欄位 - 萍踪侠影 - 博客园 Internet Explorer 7中的层叠样式表兼容性 Microsoft Office Web 组件 PivotTable 基础 ASP讀取excel文件 - 萍踪侠影 - 博客园 一個Ajax.NET的查詢實例 js校验的通用工具 將字串轉換為日期型數據的例子 - 萍踪侠影 - 博客园 將datagrid控件內容輸出到excel文件 - 萍踪侠影 - 博客园 C#常用函数集 IPv6 简介 初探AJAX.NET Visual C# 3.0 新特性概览 遍历XML引擎版本以适应代码 微调您的 Web 站点以适应 Windows XP Service Pack 2
在aspx頁中獲取DataGrid行序號 - 萍踪侠影 - 博客园
萍踪侠影 · 2007-03-24 · via 博客园 - 萍踪侠影

            <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" "/>
                <Columns>
                  <asp:BoundColumn HeaderText="序號" DataField="PR_NO_Line"></asp:BoundColumn>                       
            <asp:TemplateColumn HeaderText="單位">
                        <ItemTemplate>
                            <asp:TextBox ID="Pcs" Text="PCS" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="Pcs"
                                ErrorMessage='<%# String.Format("第{0}列物品計量單位",Convert.ToInt32(DataBinder.Eval(Container,"ItemIndex"))+1) %>' ForeColor="red"
                                ValidationGroup="vs">*</asp:RequiredFieldValidator>&nbsp;
                        </ItemTemplate>
                    </asp:TemplateColumn>
<%--                    <asp:TemplateColumn HeaderText="交貨日期">
                        <ItemTemplate>
                            <esshs:InputCalendar ID="InputCalendar1" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
--%>                </Columns>
            </asp:DataGrid>