Click here to Skip to main content
15,895,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My aspx code is:
HTML
<form id="form1"  runat="server">
    <div>
 <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/>

            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
           
             <contenttemplate>
             <input type="button" id="btn" value="Okay" />
  <asp:ModalPopupExtender runat="server" 
                        ID="modelPopupExtender1" 
                        TargetControlID="btn"
                        PopupControlID="popUpPanel" 
                        
                        BackgroundCssClass="modalBackground">
 

<asp:Panel ID="popUpPanel" runat="server" CssClass="pnl" Visible="false">
 <div style="font-weight: bold; border: Solid 3px Aqua; <br mode=" hold=" />                                background-color: AliceBlue">
 
 <asp:Label runat="server" ID="myThrobber" Style="display: none;"><img align="absmiddle" alt="" src="images/uploading.gif"/>
                <asp:AjaxFileUpload ID="AjaxFileUpload1" 
                    runat="server" 
                    OnUploadComplete="AjaxFileUpload1_UploadComplete"
                    OnClientUploadError="uploadError" 
                    OnClientUploadComplete="uploadComplete"
                    ThrobberID="myThrobber"
                    MaximumNumberOfFiles="1"
                    AllowedFileTypes="" 
                    class="name_text1" 
                    Width="200px" />
                <asp:Label ID="Label1" runat="server" Text="">
                <asp:Button ID="BtnClose" runat="server" Text="Close" 
                    OnClientClick="Closepopup()"/>
                
                <asp:Label ID="Label2" runat="server" Text="">
 
                <br />
    
    </form>

Model popup is not Able to find out target id 'btn' input type button
please help me..
Posted
Updated 3-Jan-13 10:31am
v2

I believe you need to make it a server control. It does not exist, on the server.
 
Share this answer
 
Comments
rahemani_1200 3-Jan-13 1:46am    
thaxxx looot.......
hi,

<input type="button" id="btn" value="Okay" runat="server" />


or you can use asp button.
 
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