srinidelite -4 Newbie Poster

Hello,

Here is my Project i need to show the Model Popup (Gridview) ...

I found My code is Correct , But i don't Understand That why is not showing while run time..

here is the Desgin Code... Please Let Me tel What the mistake i've committed over here ..

<%-- /*********************** MODAL POP UP With GRID VIEW *****************************/ --%>
<cc1:ModalPopupExtender ID="MPE" CancelControlID="close" OkControlID="onOk();" runat="server"
PopupControlID="panel1" TargetControlID="Btn_view" PopupDragHandleControlID="panel1"></cc1:ModalPopupExtender>
</div>
<asp:Panel ID="panel1" runat="server" Width="600px" Height="200px"> <div> <asp:ImageButton ID ="close" ImageUrl="~/images/close-text.png"
ImageAlign="Right" Height="25px" Width="25px" runat="server" /></div>
<table>
<asp:GridView ID="CusMasPOP" runat="server" AutoGenerateColumns="false" class="mGrid" OnRowDeleting="CusMasPOP_RowDeleting"
OnRowEditing="CusMasPOP_RowEditing"
>
<Columns>
<asp:TemplateField HeaderText="Customer Code">
<ItemTemplate>
<asp:Label ID="Lblcuscode" runat="server" Text='<%# bind("cuscode") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Customer Name">
<ItemTemplate>
<asp:Label ID="Lblcusname" runat="server" Text='<%# bind("cusname") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="City">
<ItemTemplate>
<asp:Label ID="Lblcity" runat="server" Text='<%# bind("city") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Contact Person">
<ItemTemplate><asp:Label ID="Lblcntactprsn" runat="server" Text='<%#bind("cntctprsn") %>'></asp:Label></ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Email ID">
<ItemTemplate>
<asp:Label ID="Lblemail" runat="server" Text='<%# bind("emailid") %>'></asp:Label></ItemTemplate></asp:TemplateField>
<asp:TemplateField HeaderText="Phone no" ><ItemTemplate> <asp:Label ID="Lblphone" runat="server" Text='<%# bind("phone") %>'></asp:Label></ItemTemplate></asp:TemplateField>
</Columns>
</asp:GridView>

    </table>



<%--         ***************** MODAL POP UP WINDOW WITH GRID VIEW ***********************--%>  



 View Button 
 .................

 <asp:Button ID="Btn_view" Text="VIEW" class="button" runat="server" align="center" 
                onclick="Btn_view_Click"/></td>

 </asp:Panel> 

</asp:Content>

Code Behind....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.