一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

在GridView控件中給數(shù)據(jù)列添加超鏈接并傳值的問題解決方法

 醉人說夢(mèng) 2014-06-27
    <asp:GridView ID="GvPer" CssClass="gridview" runat="server"
                            PageSize="20" Width="100%">
                            <RowStyle Height="25px" />
                            <Columns>
                                <asp:BoundField DataField="UserId" HeaderText="人事檔案ID">
                                    <HeaderStyle Width="100px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Name" HeaderText="姓名">
                                    <HeaderStyle Width="200px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="UserNum" HeaderText="員工工號(hào)">
                                    <HeaderStyle Width="200px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="性別">
                                    <HeaderStyle Width="200px" />
                                    <ItemTemplate>
                                        <%#sexstate()%>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="Brithday" HeaderText="出生日期">
                                    <HeaderStyle Width="200px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Position" HeaderText="職位">
                                    <HeaderStyle Width="200px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:HyperLinkField DataNavigateUrlFields="UserId" DataNavigateUrlFormatString="../../Basic/VoteShow.aspx?id={0}"
                                    HeaderText="檔案閱覽" NavigateUrl="../../Basic/VoteShow.aspx?id={0}" Text="<img src="../images/look.gif" />">
                                    <ItemStyle Width="10%" />
                                </asp:HyperLinkField>
                                <asp:TemplateField HeaderText="報(bào)案號(hào)" >                                 
                                    <ItemTemplate>
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "../admin/update.aspx?id="+eval_r("UserId") %>'
                                            Text='<%# eval_r("Name") %>' Font-Underline="true"></asp:HyperLink>
                                </ItemTemplate>   
                                <ItemStyle Width="100px"/>                               
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作">
                                    <HeaderStyle Width="200px" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkbtnEdit" CssClass="lnkbtn" runat="server" CommandArgument='<%#eval_r("UserId") %>'
                                            OnClick="lnkbtnEdit_Click">修改</asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="選擇">
                                    <HeaderStyle Width="70px" />
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkDelete" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle HorizontalAlign="Center" />
                            <AlternatingRowStyle CssClass="usertablerow1" />
                        </asp:GridView>

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    国产日韩久久精品一区| 在线欧美精品二区三区| 不卡视频免费一区二区三区| 欧美日韩亚洲国产综合网| 九九视频通过这里有精品| 国产欧美一区二区另类精品| 日本不卡一本二本三区| 亚洲黑人精品一区二区欧美| 欧美夫妻性生活一区二区| 欧美熟妇喷浆一区二区| 最近日韩在线免费黄片| 国产精品一区二区视频成人| 国产精品一区二区香蕉视频| 午夜成年人黄片免费观看| 亚洲专区一区中文字幕| 日韩一区欧美二区国产| 欧美日韩在线观看自拍| 九九九热视频免费观看| 五月婷婷综合缴情六月| 国产精品一区二区三区黄色片| 亚洲国产欧美久久精品| 欧美胖熟妇一区二区三区| 亚洲精品中文字幕在线视频| 亚洲av成人一区二区三区在线| 国产精品午夜福利免费阅读| 亚洲精品一区三区三区| 日韩精品视频香蕉视频| 国产一区二区精品高清免费| 亚洲国产婷婷六月丁香| 国产精品免费福利在线| 欧美精品一区二区三区白虎| 午夜精品成年人免费视频| 日韩精品综合福利在线观看| 欧美日韩一区二区综合| 欧美视频在线观看一区| 日本午夜免费观看视频| 中文字幕无线码一区欧美| 麻豆看片麻豆免费视频| 精品推荐国产麻豆剧传媒| 在线观看免费午夜福利| 色婷婷亚洲精品综合网|