This is a migrated thread and some comments may be shown as answers.

PopupWindow

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hamid
Top achievements
Rank 1
hamid asked on 03 Nov 2014, 12:40 PM
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

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 03 Nov 2014, 02:57 PM

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.

 
Tags
General Discussions
Asked by
hamid
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or