日期:2014-05-17  浏览次数:20490 次

关于ImageButton页面跳转问题的困惑
<asp:TemplateField HeaderText="锁定">
                                        <ItemStyle CssClass="GridViewItemGlLeft" />
                                        <HeaderStyle CssClass="GridViewHeader" Width="3%" />
                                        <ItemTemplate>
                                            <asp:ImageButton ID="image1" runat="server" ImageUrl="~/images/unlock.gif" ToolTip="未锁定,锁定后不可编辑、删除!"
                                                CommandArgument='<%# Eval("wpbh") %>' PostBackUrl="LockMessage.aspx?wpbh={0}"
                                                Style="display: none" CommandName="LockMail" />
                                            <asp:ImageButton ID="image2" runat="server" ImageUrl="~/images/lock.gif" ToolTip="已锁定,系统管理员可解锁"
                                                OnClientClick="return confirm('确定要解锁该数据吗?')" Style="display: none" CommandArgument='<%# Bind("wpbh") %>'
                                                CommandName="ReleaseMail" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
以上是我gridview里的一列,目的是想点击未锁定图片跳转到页面进行锁定操作,可现在问题是能跳转过去但是页面传值传不过去,锁定页面wpbh一致是{0}求高手指教?

------解决方案--------------------
PostB