GRIDVIEW模板中查找控件的方式JAVASCRIPT

<ItemTemplate>
                                        <divclass="ProductItem"style="border:2px solid black;"id="ProDiv"runat="server">
                                            <asp:HiddenField ID="HFProId" runat="server" Value='<%# Eval("ProId") %>' />
                                            <inputtype="button"id="btnQuickView"value="QuickView"onclick="displayView();"
                                                style="visibility: hidden;"/>
                                            <asp:ImageButton ID="ImgProImage" PostBackUrl='<%# "frmDBProductDetails.aspx?ProId="+Eval("ProId") %>'
                                                runat="server" ImageUrl='<%# Eval("ProImage") %>' Height="120px" Width="120px" />
  <input type="button" id="btnQuickView" value="QuickView" onclick="displayView(document.getElementById('<%# Container.FindControl("ImgProImage").ClientID %>'));"
            />

...
      </ItemTemplate>

posted @ 2014-03-27 09:30  happyu0223  阅读(233)  评论(0编辑  收藏  举报