3
Reply

Modal Popup Extender In RowCommand

Channabasava Dabarabadi

Channabasava Dabarabadi

Jun 25 2014 3:38 AM
2.4k
Hi,
 
I want to use Modal Popup extender in my grid rowcommand. when I Click on "Select command" the  Modal Popup extender should open
My code
 
<asp:GridView ID="gv_Recored" runat="server" AutoGenerateColumns="false" PageSize="10"

Width="700" OnRowCommand="gv_Recored_RowCommand" OnPageIndexChanging="gv_Recored_PageIndexChanging"

OnSelectedIndexChanged="gv_Recored_SelectedIndexChanged">

<PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" />

<Columns>

<asp:TemplateField HeaderText="Sl.No">

<ItemTemplate>

<div style="text-align: center">

<%#Container.DataItemIndex + 1 %>

</div>

</ItemTemplate>

</asp:TemplateField>

<asp:TemplateField HeaderText="Request Status_ID" Visible="false">

<ItemTemplate>

<asp:Label ID="lbl_Request_Status_ID" runat="server" Text='<%#Bind("RequestStatus_ID") %>'></asp:Label>

</ItemTemplate>

<ItemStyle Width="170px" />

</asp:TemplateField>

<asp:TemplateField HeaderText="Request type">

<ItemTemplate>

<asp:Label ID="lbl_Request_type" runat="server" Text='<%#Bind("RequestType") %>'></asp:Label>

</ItemTemplate>

<ItemStyle Width="170px" />

</asp:TemplateField>

<asp:TemplateField HeaderText="Request No">

<ItemTemplate>

<asp:Label ID="lbl_Request_No" runat="server" Text='<%#Bind("Request_ID") %>'></asp:Label>

</ItemTemplate>

<ItemStyle Width="100px" />

</asp:TemplateField>

<asp:TemplateField HeaderText="Receving Office">

<ItemTemplate>

<asp:Label ID="lbl_Receving_office" runat="server" Text='<%#Bind("ReceivingOffice") %>'></asp:Label>

</ItemTemplate>

<ItemStyle Width="180px" />

</asp:TemplateField>

<asp:TemplateField HeaderText="JTO">

<ItemTemplate>

<asp:Label ID="lbl_JTO" runat="server" Text='<%#Bind("JTO") %>'></asp:Label>

</ItemTemplate>

<ItemStyle Width="150px" />

</asp:TemplateField>

<asp:ButtonField Text="Select" CommandName="Select" ControlStyle-Width="75px" />

</Columns>

</asp:GridView>

 
 
 

Answers (3)