jquery 전문가들에게는 매우 쉬운 작은 질문이있다. gridview 행의 두 번 클릭으로 작업을 수행하려면 http://aspdotnetcodebook.blogspot.com/2010/01/page-languagec-autoeventwireuptrue.html을 따르려고합니다. 예를 들어 다른 페이지로 리디렉션 할 수 있지만 $ (this) .find ("a")를 발생시킬 수는 없습니다. 발사. 아래는 내 GridView 마크 업입니다. 저자가 제안했다으로
<asp:GridView ID="gvCustomers" runat="server" DataSourceID="odsCustomers" CssClass="datagrid"
GridLines="None" AutoGenerateColumns="False" DataKeyNames="Customer_ID" PageSize="3"
AllowPaging="True" AllowSorting="True" OnRowCommand="gvCustomers_RowCommand"
OnRowDataBound="gvCustomers_RowDataBound">
<Columns>
<asp:BoundField DataField="Customer_ID" HeaderText="ID" ReadOnly="true" Visible="false" />
<asp:BoundField DataField="Customer_FirstName" HeaderText="First Name" ReadOnly="true" />
<asp:BoundField DataField="Customer_LastName" HeaderText="Last Name" ReadOnly="true" />
<asp:BoundField DataField="Customer_Email" HeaderText="Email" ReadOnly="true" />
<asp:BoundField DataField="Customer_Mobile" HeaderText="Mobile" ReadOnly="true" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lnkButton" runat="server" CommandName="showVehicles" CommandArgument='<%# Eval("Customer_ID") %>'
></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
Sorry No Record Found.
</EmptyDataTemplate>
</asp:GridView>
난 그냥 캔트 작동합니다 /* 또는 당신이 실행할 수있는 행의 숨겨진하는 LinkButton를 (텍스트 = ""또는 설정되지 않음)있을 수 있습니다. 당신이 CommandButton의 onCommand에 CommandName = "Something"과 CommandArgument = "RecordId"*/
을 설정했는지 확인하고 싶습니다. 모든 아이디어가 가장 감사 할 것입니다. window.location
이 설정되어 있기 때문에 알리
asp 코드가 생성하는 html을 표시 할 수 있습니까? – Nalum
자바 스크립트는 어디에 있습니까? '이'는 친척이며, 어디에서 왔는지 모른 채 눈먼 추측입니다. –