Click here to Skip to main content
15,890,185 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: fix row and column in html table Pin
Member 897905824-May-12 22:50
Member 897905824-May-12 22:50 
GeneralRe: fix row and column in html table Pin
Richard MacCutchan24-May-12 23:28
mveRichard MacCutchan24-May-12 23:28 
GeneralRe: fix row and column in html table Pin
Member 897905824-May-12 23:33
Member 897905824-May-12 23:33 
GeneralRe: fix row and column in html table Pin
Richard MacCutchan24-May-12 23:39
mveRichard MacCutchan24-May-12 23:39 
GeneralRe: fix row and column in html table Pin
Member 897905824-May-12 23:47
Member 897905824-May-12 23:47 
GeneralRe: fix row and column in html table Pin
RichardGrimmer7-Sep-12 1:50
RichardGrimmer7-Sep-12 1:50 
GeneralRe: fix row and column in html table Pin
Richard MacCutchan12-Sep-12 3:38
mveRichard MacCutchan12-Sep-12 3:38 
QuestionProblem ModalPopupExtender and UpdatePanel Pin
papy-boom22-May-12 7:05
papy-boom22-May-12 7:05 
Hi,

I have a gridview that contains a list of name and i want to use a modalpopup to modify each row.

The problem came when i want to sort the column name inside the gridview i've added an updatePanel outside the gridview to make sure that only the gridview is reloading. due to that my ModalPopupExtender is not working.

the code excute but i m getting nothing inside the popup below the code :
<pre lang="HTML"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:GridView ID="GridView1" runat="server" EnableViewState="false" AutoGenerateColumns="false"
                   DataKeyNames="Id"  AllowSorting="True" OnSorting="OnSort">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="30px">
                            <ItemTemplate>
                                <asp:ImageButton ID="imgbtn" ImageUrl="~/images/modifier.png" runat="server"
                                    Width="10" Height="10" OnClick="imgbtn" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Name" DataField="Name" SortExpression="Name" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="GridView1" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:Panel ID="pnlpopupName" runat="server" CssClass="modal" Style="display: none">
                <div class="modal-inner-wrapper rounded-corners">
                        <table width="100%" style="height: 150px;" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:Label ID="ID" class="TDclass" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="TDclass">
                                    Nom & Prénom
                                </td>
                                <td>
                                     
                                    <asp:Label ID="lbNomPrenom" class="TDclass" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="btnOk" runat="server" Text="OK" OnClick="btn_ok" />
                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                                </td>
                            </tr>
                        </table>
                </div>
        </asp:Panel>
        <asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
        <asp:ModalPopupExtender ID="ModalPopupExtender" runat="server" TargetControlID="btnShowPopup"
            PopupControlID="pnlpopupName" CancelControlID="btnCancel">
        </asp:ModalPopupExtender>

and the code behind of the method that fill in the modalpopup :
<pre lang="c#">protected void imgbtn(object sender, ImageClickEventArgs e)
        {
            ImageButton btndetails = sender as ImageButton;
            GridViewRow gvrow = (GridViewRow)btndetails.NamingContainer;
            string Key = GridView1.DataKeys[gvrow.RowIndex].Value.ToString();
            lbNomPrenom.Text = Server.HtmlDecode(gvrow.Cells[1].Text);
            this.ModalPopupExtender.Show();

        }

AnswerRe: Problem ModalPopupExtender and UpdatePanel Pin
Sandeep Mewara25-May-12 17:56
mveSandeep Mewara25-May-12 17:56 
QuestionUsing CSS Pin
Mary Abraham22-May-12 5:19
Mary Abraham22-May-12 5:19 
AnswerRe: Using CSS Pin
Sandeep Mewara25-May-12 17:46
mveSandeep Mewara25-May-12 17:46 
AnswerRe: Using CSS Pin
Roger Wright25-May-12 21:58
professionalRoger Wright25-May-12 21:58 
GeneralRe: Using CSS Pin
User 171649225-May-12 22:32
professionalUser 171649225-May-12 22:32 
GeneralRe: Using CSS Pin
Roger Wright26-May-12 5:54
professionalRoger Wright26-May-12 5:54 
QuestionDesigning WCF Pin
byka21-May-12 4:56
byka21-May-12 4:56 
QuestionModal PopUp extender Pin
berba21-May-12 2:33
berba21-May-12 2:33 
AnswerRe: Modal PopUp extender Pin
frostcox25-May-12 11:05
frostcox25-May-12 11:05 
AnswerRe: Modal PopUp extender Pin
Sandeep Mewara25-May-12 18:01
mveSandeep Mewara25-May-12 18:01 
QuestionJohn Ray still relevant? (TCP/IP related) Pin
Mossmyr21-May-12 1:24
Mossmyr21-May-12 1:24 
QuestionNot able to Ajax post knockout (KO) data in XML format Pin
AumSingh20-May-12 6:38
professionalAumSingh20-May-12 6:38 
AnswerRe: Not able to Ajax post knockout (KO) data in XML format Pin
AumSingh23-May-12 23:52
professionalAumSingh23-May-12 23:52 
Questiontigrina lexikon ትግርኛ መዝገብ ቃላት seglelet.com Pin
mululer19-May-12 22:27
mululer19-May-12 22:27 
QuestionHow to display XML data using XSL in HTML? Pin
RedUnited18-May-12 1:35
RedUnited18-May-12 1:35 
AnswerRe: How to display XML data using XSL in HTML? Pin
berba19-May-12 6:44
berba19-May-12 6:44 
QuestionProblem with Knockout mapping of observable array. Pin
AumSingh18-May-12 0:04
professionalAumSingh18-May-12 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.