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 ...

 <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>

                       <asp:TemplateField HeaderText="Transaction ID"
SortExpression="P_TRANSACTIONID" ShowHeader="True">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Right" /> 
<ItemTemplate> 
<asp:Label ID="lbl_P_TRANSACTIONID" runat="server" 
Text='<%# Eval("P_TRANSACTIONID") %>' Width ="100px" 
CausesValidation ="false" />
</ItemTemplate>
</asp:TemplateField> 

                       </Columns> </asp:GridView>
2
Contributors
1
Reply
7
Views
4 Years
Discussion Span
Last Post by LastMitch
0

ModalPopupExtender and parameter passing

I don't see any javascript in your ASP.net code?

I mean I think you want a javascript to update the

<%# Eval("P_TRANSACTIONID") %>

?

I'm not sure

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.