PopupWindow

2 posts, 0 answers
  1. hamid
    hamid avatar
    2 posts
    Member since:
    Nov 2014

    Posted 03 Nov 2014 Link to this post

    Hello Guys...
    I have Question About Radwindow.
    I created a Radwindow and I create few Control like textbox and button box .
    I want,when i clicked The button COntent of textbox or what ever there Send to the asp.net server 
    For Example :
    On Radwindow:
           <asp:TextBox ID="txt1" runat="server" />  
                            <asp:TextBox ID="txt2" runat="server" />  
                            <asp:TextBox runat="server" ID="txtresult" />
                            <asp:Button Text="click" ID="BtnClick" runat="server" />
    ------------------------------------------------------------
    JAvaSCript:

         <telerik:RadCodeBlock runat="server" ID="rdbScripts">
             <script type="text/javascript">

                 
                      function togglePopupModality() {
                      var wnd = $find("<%=modalPopup.ClientID %>");
                    
                      wnd.set_modal(!wnd.get_modal());
                      if (!wnd.get_modal()) document.documentElement.focus();
                  }
                  function showDialogInitially() {
                      var wnd = $find("<%=modalPopup.ClientID %>");
                       wnd.show();
                       Sys.Application.remove_load(showDialogInitially);
                   }
                 Sys.Application.add_load(showDialogInitially);
                
             
              </script>
         </telerik:RadCodeBlock>
    -----------------------------------------------------------

    on Server Side(code behind)
        protected void BtnClick_Click(object sender, EventArgs e)
        {
            LblResult.Text = txt1.Text + txt2.Text;
    }

    When I clicked the Button There is nothing To show.

    How can i Do that >?
    please help
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 03 Nov 2014 Link to this post

    Hi,

    In order for the server-side event to fire, you must instruct ASP that it has to fire it:

    <asp:Button Text="click" ID="BtnClick" runat="server" OnClick="BtnClick_Click" />

    I also advise that you examine this article on using RadWindow with AJAX: http://www.telerik.com/help/aspnet-ajax/window-ajaxifying.html.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top