return a line of grid view in ModalPopupExtender
Posted
by Meysam Javadi
on Stack Overflow
See other posts from Stack Overflow
or by Meysam Javadi
Published on 2010-03-11T05:47:07Z
Indexed on
2010/03/11
5:53 UTC
Read the original article
Hit count: 358
hi
i use ModalPopupExtender from AjaxControlToolkit to show a panel. my panel have something like this:
<asp:Panel ID="pnlSearchPlan" runat="server" style="background-color:#ffffdd;border-width:3px;border-style:solid;border-color:Gray;padding:3px;width:400px;">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:ModalPopupExtender ID="UpdatePanel1_ModalPopupExtender" runat="server"
TargetControlID="linkToPopup"
PopupControlID="pnlSearchPlan"
BackgroundCssClass="ModalBackColor"
DropShadow="true"
OkControlID="tbnSelect"
OnOkScript="onOk()"
CancelControlID="btnCancel">
</cc1:ModalPopupExtender>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table width="100%" dir="rtl">
<tr>
<td >owner</td>
<td>
<asp:TextBox ID="txtCriteria" runat="server" ></asp:TextBox>
<asp:Button ID="btnOk" runat="server" Text="ok" onclick="btnOk_Click" />
<asp:Button ID="tbnSelect" runat="server" Text="select"
onclick="tbnSelect_Click" />
<asp:Button ID="btnCancel" runat="server" Text="close" />
</td>
</tr>
<tr>
<td colspan="2">
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<pcal:CustomGridView ID="gdvPlan" runat="server" CellPadding="4"
ForeColor="Black" GridLines="Vertical" BackColor="White"
BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px">
<RowStyle BackColor="#F7F7DE" />
<FooterStyle BackColor="#CCCC99" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</pcal:CustomGridView>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
now want return one cell of gridview after ModalPopupExtender is closed,
is this possible without postback? is there any way to return value after close?
© Stack Overflow or respective owner