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

run c# code then close rad window then redirect to other page whithout radwindow

1 Answer 108 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mohamad Javad
Top achievements
Rank 1
Iron
Mohamad Javad asked on 28 Jul 2014, 08:10 AM
how to :
when i clicked the button in radwindow,i want to execute the c#  code in button_click event then close radwindow and returen or redirect to parent page or other page.
but,when i clicked the button in radwindow,(execute the c# code and never close radwindow) or (not execute c# code and close radwindow)i need:
execute the c# code and then close radwindow then redirect to other page whithout radwindowin other word,i need when i redirect from radwindow to parent Page,never shown the parent page in radwindow.What should I do?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Jul 2014, 12:16 PM

Hi Mohamad,

You can execute the JavaScript function that will do the needed work from the server: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-javascript-from-server-side.html.

A similar approach is used in this demo to refresh the parent page: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window.


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
Window
Asked by
Mohamad Javad
Top achievements
Rank 1
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or