Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Error:=
Locating source for 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs'. Checksum: MD5 {c8 fe 79 47 5f ff 44 78 c2 61 aa aa 67 bb 28 21}
The file 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs' does not exist.
Looking in script documents for 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs'...
Looking in the projects for 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
Looking for source using source server...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs.
The debugger could not locate the source file 'f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs'.


Mycode Html:-
HTML
<div align="center">
            <form runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">

            <ContentTemplate>

            <asp:GridView ID="GridView1" runat="server" Height="135px" Width="792px"
                onrowcommand="GridView1_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="Comment">
                    <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" CommandName="abc" CommandArgument='<%#Eval("TaskID") %>' runat="server">Add Comment</asp:LinkButton>
                    </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="Comment">
                    <ItemTemplate>
                    <asp:LinkButton ID="LinkButton2" CommandName="xyz" CommandArgument='<%#Eval("TaskID") %>' runat="server"  >View Comment</asp:LinkButton>
                    </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            </ContentTemplate>
            </asp:UpdatePanel>

            <asp:Button runat="server" ID="btnShowModalPopup" style="display:none"/>
            <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server"  TargetControlID="btnShowModalPopup"
            PopupControlID="divPopUp"
            BackgroundCssClass="popUpStyle"
            PopupDragHandleControlID="panelDragHandle"
              DropShadow="true" />

            <br />

              <div class="popUpStyle" id="divPopUp" style="display:none;">
         <asp:Panel runat="Server" ID="panelDragHandle" CssClass="drag">
        Hold here to Drag this Box
         </asp:Panel>
        <asp:Label runat="server" ID="lblText" Text="TaskID: "></asp:Label>
        <asp:Label ID="lblCustValue" runat="server"></asp:Label>
       <asp:GridView ID="GridView2" runat="server">
      </asp:GridView>
    <asp:Button ID="btnClose" runat="server" Text="Close" />
   <br />
</div>

My code .cs File:=
C#
if (e.CommandName == "xyz")
        {
            SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());
            string sql = "Select TaskID,Comment,Date,UserID from Comment Where TaskID="+ Convert.ToInt32(e.CommandArgument.ToString());
            SqlCommand cmd = new SqlCommand(sql, con);
            con.Open();
            SqlDataAdapter adp = new SqlDataAdapter(cmd);
             DataSet ds=new DataSet ();
             adp.Fill(ds);
            GridView2.DataSource = ds;
            GridView2.DataBind();
            con.Close();
          ModalPopupExtender2.Show();
        }
Posted
Updated 28-Nov-14 21:18pm
v4

1 solution

I think You should change like this <asp:panel runat="server" id="divPopUp" xmlns:asp="#unknown">
//Your Popup will be here

dont apply hidden property of above panel..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900