Click here to Skip to main content
12,395,358 members (70,585 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
My aspx code is:
<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 2-Jan-13 19:34pm
Updated 3-Jan-13 10:31am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

I believe you need to make it a server control. It does not exist, on the server.
  Permalink  
Comments
rahemani_1200 3-Jan-13 1:46am
   
thaxxx looot.......
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

hi,

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

or you can use asp button.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100