Click here to Skip to main content
Rate this: bad
good
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
Edited 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 at 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
0 Sergey Alexandrovich Kryukov 598
1 OriginalGriff 235
2 George Jonsson 230
3 CPallini 210
4 PIEBALDconsult 150
0 OriginalGriff 5,835
1 Sergey Alexandrovich Kryukov 5,263
2 CPallini 4,750
3 George Jonsson 3,227
4 Gihan Liyanage 2,487


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2014
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