我用webform开发了一个页面,可以参考下图,现在遇到一个问题就是,当我鼠标放到编号1.2.3.4对应的开始按钮上时左下角页面就会出现url的地址,如果我不想这个地址出现,隐藏掉我要怎么处理呀?  这4个开始按钮的地址是gridview绑定的数据库字段哩存放的地址。
请高手帮我实现下,先拜托啦

解决方案 »

  1.   

    贴出一段gridview的代码
    <asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="2" ForeColor="#333333"
                                AutoGenerateColumns="False" AllowPaging="True" PageSize="12" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound" GridLines="None" EnableModelValidation="True" AllowSorting="True" CellSpacing="1" HorizontalAlign="Right" OnRowEditing="GridView1_RowEditing" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                                <Columns>
                                    <asp:BoundField HeaderText="编号" DataField="d_Number" ReadOnly="True" SortExpression="d_Number" >
                                    <ControlStyle Width="400px" />
                                    <FooterStyle HorizontalAlign="Center" Width="400px" />
                                    <HeaderStyle HorizontalAlign="Center" Width="400px" />
                                    <ItemStyle HorizontalAlign="Center" Width="400px" />
                                    </asp:BoundField>
                                    <asp:HyperLinkField  AccessibleHeaderText="操作" HeaderText="操作" SortExpression="d_Item" Target=""   DataNavigateUrlFields="d_Item" DataTextField="d_Item" DataTextFormatString="开始" >
                                        <FooterStyle HorizontalAlign="Center" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:HyperLinkField>
                                </Columns>
                                <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                                <RowStyle Height="20px" BackColor="#F7F6F3" ForeColor="#333333" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
      

  2.   

    这个是浏览器显示的,HyperLinkField会自动生成<a></a>标签,你可以换成button按钮控件,按钮事件里再跳转
      

  3.   


    是在girdview里加button按钮控件是吧?
      

  4.   

    这个是浏览器机制,没办法.只要你的href有东西.那么状态栏一定会显示这个URL地址.当然肯定会有解决方案来替换.第一:隐藏浏览器的状态栏.哈哈开个玩笑...第二 生成的url没有href(href="#") 使用js来实现跳转.
    <a href="#" url="xxxx.aspx">
    $("a[url]").click(function(){
       location.href=$(this).attr("url");
    });
    这种办法是使用a标签的办法..至于你如何生成 我这里就不做讨论了.