GridView asp:HyperLinkField DataNavigateUrlFields 弹窗提示窗口 HyperLinkField 链接传值提示 jQuery实现 非javascript

GridView asp:HyperLinkField DataNavigateUrlFields  弹窗提示窗口的实现方法

 

jQuery脚本弹窗 前端技术 实现 GridView控件内 操作提示

 

 jQuery代码:

  <script src="../Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function () {

                $(".classid").click(function () {

                    if (!confirm("是否操作此数据?")) {
                        return false;
                    }
                    else {
                        return true;
                    }
                });
            });
        </script>

 

aspx代码段:

           <asp:Panel ID="Panel10" runat="server" Height="380px" CssClass="Panel"
                    ScrollBars="Both" Width="912px" BorderStyle="Solid">
              <asp:GridView ID="GridView1" runat="server"   
    AllowPaging="True" AutoGenerateColumns="False" BackColor="White" 
    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="0" Width="890px"
                        Height="23px" onpageindexchanging="GridView1_PageIndexChanging"
                        onselectedindexchanged="GridView1_SelectedIndexChanged" 
                        style="margin-left: 3px; margin-top: 0px;" >
  
<RowStyle   BackColor= "#F7F6F3 "   ForeColor= "#333333 "     Height= "2px "/> 
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <Columns>


                            <asp:HyperLinkField 
            DataNavigateUrlFields="ScrewPumpWellID" 
            DataNavigateUrlFormatString="SWBaseInfoForm.aspx?action=edit&ScrewPumpWellID={0}"
            HeaderText="删除" ControlStyle-CssClass="classid" Text="<img border=0 src=../images/Edit.gif />">
                            <ItemStyle Width="30px" />
                            </asp:HyperLinkField>


                                 <asp:BoundField DataField="ScrewPumpWellID" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="ScrewPumpWellName" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="OrgName" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="MeasureStationName" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="200px" Height = "50px" />
                                    
                                </asp:BoundField>
                                 <asp:BoundField DataField="DTUID" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="TCPLinkKey" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                  <asp:BoundField DataField="TCPLinkTypeName" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="AIChannelNo" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="SIMNO" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="GasOilR" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="Water" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="SPress" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="Viscosity" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="DynFluidSurf" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="OilDensity" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="MidDeep" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="TempGrad" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="GroundConstTemp" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="TransPro" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                </asp:BoundField>
                                <%--<asp:BoundField DataField="Duplicate" HeaderText="列表显示参数"  >
                                    <ControlStyle Width="150px" />
                                        <HeaderStyle Width="1000px" />
                                </asp:BoundField>--%>
                                
                        </Columns>
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" 
        ForeColor="#CCFF99" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" 
        HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" 
        ForeColor="Black" />
                    </asp:GridView>
                </asp:Panel>

 

真实项目积累 希望对您能有所帮助

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值