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>