Can overlay work with a portion of a page that has codebehind functionallity?

Posted by rolando on Stack Overflow See other posts from Stack Overflow or by rolando
Published on 2010-03-08T17:24:32Z Indexed on 2010/03/08 21:21 UTC
Read the original article Hit count: 408

Filed under:
|

i have a complete DIV in wich a have a gridview and a multiview with codebehind action:

                <cc3:CRDataSource EnableViewState="true" ID="DsOpciones" runat="server" SQLSelect="CartelElectronico,OpcionSeleccion_Todos">
                    <Parameters>
                        <asp:QueryStringParameter Name="@FactorEvaluacionId" QueryStringField="FactorEvaluacionId"
                            Type="String" />
                    </Parameters>
                </cc3:CRDataSource>
                <cc3:CRGridView ID="gvTipoFactorSeleccion" runat="server" DataKeyNames="OpcionSeleccionID"
                    AllowPaging="false" AllowSorting="False" AutoGenerateColumns="False" Titulo="Opciones de Factor de Evaluacion"
                    NoRowsMsg="No se encontraron Opciones para el factor de evaluación" CssClass="Table"
                    AllowExport="False" AllowFilter="False" AllowCollapse="True" EnableViewState="False"
                    PageSize="1000000000" DataSourceID="DsOpciones" OnRowUpdating="gvTipoFactorSeleccion_RowUpdating"
                    OnRowDeleting="gvTipoFactorSeleccion_RowDeleting">
                    <Columns>
                        <asp:BoundField DataField="Nombre" HeaderText="Nombre" SortExpression="Nombre" ItemStyle-HorizontalAlign="Left" />
                        <asp:BoundField DataField="Puntos" HeaderText="Puntos" ItemStyle-HorizontalAlign="Center" />
                        <asp:CommandField ButtonType="Link" ShowDeleteButton="true" DeleteText="Eliminar"
                            ShowEditButton="true" EditText="Modificar" UpdateText="Actualizar" CancelText="Cancelar" />
                        <asp:TemplateField Visible="false">
                            <ItemTemplate>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>                        
                </cc3:CRGridView>
                <br />
                <table>
                    <tr valign="baseline">
                        <td class="contratacionTablaSubrayadoTitulosLineas">
                            <label class="contratacionEtiquetas">
                                Opción&nbsp;(*) :</label>
                        </td>
                        <td class="contratacionTablaSubrayadoContenidoLineas">
                            <asp:TextBox ID="tbOpcion" runat="server" ToolTip="Nombre del Factor de la metodología de evaluación"
                                TabIndex="1" MaxLength="100"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="tbOpcion"
                                ErrorMessage="&nbsp;Debe digitar un nombre para la Opción" Display="Dynamic"
                                CssClass="inlineError" ValidationGroup="InsertarTipoFactorSeleccion" SetFocusOnError="false"></asp:RequiredFieldValidator>
                        </td>
                    </tr>                      
                    <tr valign="baseline">
                        <td colspan="2" align="right">
                            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="contratacionVinculos" ValidationGroup="InsertarTipoFactorSeleccion"
                                OnClick="lbInsertarTipoFactorSeleccion_Click">Insertar</asp:LinkButton>&nbsp;|&nbsp;
                            <asp:LinkButton ID="LinkButton2" runat="server" OnClick="lbCancelarInsertarTipoFactorSeleccion_Click"
                                CssClass="contratacionVinculos" CausesValidation="false">Cancelar</asp:LinkButton> ....

Thats just a portion of the div, my question is How can I show that DIV in a jquery overlay without loosing its functionallity? i'm asking because i manage to get it working but when i do a "that-div-postback" the screen loses the DIV and keeps only the background of the overlay.

a couple more information:

<button class="modalInput button" rel="#prompt">
                Buscar</button>
<script type="text/javascript">
                function pageLoad() {
                    var triggers = $("button.modalInput").overlay({
                        // some expose tweaks suitable for modal dialogs
                        expose: {
                            color: '#333',
                            loadSpeed: 200,
                            opacity: 0.3,
                            zIndex: 99
                        },
                        top: '25%',
                        closeOnClick: true
                    });
                }                

            </script>

Thanks in advance ;)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about overlay