Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42298

ModalPopupExtender and parameter passing

$
0
0
hi to all

I have a scanerio thai need to be resolved ..

I have grid and it shows certain record on searching ..and have few columsn like transactionID .Stauts etc etc ..also it have
ModalPopupExtender under the panel (asp panel )

when i click on status column ..it should show modalopopup that show two things ..ErrorCode ,,ErroDescription based in transactionID

now let me show certain code (Existing code ) ..can any one complete my code existing one or help me out to get the desired solution ...

Code:

  <asp:GridView ID="GV_Main" runat="server" SkinID="GVundefinewidht" Width="100%"           
            onpageindexchanging="GV_Main_PageIndexChanging"
            onrowdatabound="GV_Main_RowDataBound" onrowdeleting="GV_Main_RowDeleting"
            onrowediting="GV_Main_RowEditing" onsorting="GV_Main_Sorting"
              AllowSorting="true"    AutoGenerateColumns="False"
        ShowHeader="true" onrowcreated="GV_Main_RowCreated" >
            <RowStyle HorizontalAlign="center" />               
                     
           
        <Columns >
    <asp:TemplateField HeaderText="Status"    ShowHeader="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate >                                   
                                            <asp:ImageButton ID="lbl_Status" Visible="true"  runat="server" 
                                                CommandName ='<%# Eval("ACTION_NAME") %>'  OnCommand="Showstatus"
                                                CommandArgument='<%# Eval("P_TRANSACTIONID") %>' 
                                                ImageUrl="~/images/status1.gif"  CausesValidation ="false" />
                                               
                                                <asp:Panel ID="pnlPerson" runat="server" Style="display: none" Width="400px" Height="200px"
                                BackColor="White" BackImageUrl="~/images/loginbox1.jpg">
                               
                               
                                <div style="float: right; margin-right:10px; margin-top:7px;">
                                    <asp:LinkButton ID="lnkClose" runat="server" Font-Bold="true" ForeColor="White" Font-Size="12px">Close</asp:LinkButton>
                                </div>


  <table width="100%">
                                  <tr><td style="height:30px; width:20px;"></td>
                                  <td></td> <td></td>
                                  </tr>


 <tr> <td></td>
                                <td align="left"><asp:Label ID="lblBank" runat="server" Text="Error Code:"></asp:Label>
                                </td>
                               
                                <td align="left">
                                <asp:Label ID="Label1" runat="server" Text="Error Code:"></asp:Label>
                                </td>
                                </tr>

</table>

  </asp:Panel>
                            <cc1:ModalPopupExtender ID="extPerson" runat="server" TargetControlID="lbl_Status"
                                PopupControlID="pnlPerson" DropShadow="true" CancelControlID="lnkClose"  />

</ItemTemplate>
 </asp:TemplateField>
                     
                     
                     
                      </Columns> </asp:GridView>


Viewing all articles
Browse latest Browse all 42298

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>