Can you please tell if we can open .ascx control in rad window. As though i am able to open aspx pages in rad window when i tried the same code to open .ascx control in rad window i get the error as:
The request filtering module is configured to deny the file extension.
In the code behind i am doing the following way:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "AddNewSignpost")
{
if ("Criteria".Equals(e.Item.OwnerTableView.Name))
{
GridDataItem current = e.Item as GridDataItem;
if (current is GridDataItem)
{
string ID = current["Criteria Id"].Text;
string arg1 = "CriteriaId=" + ID;
string arg2 = "&AwardId=" + ParentPage.iaward_id;;
string arg3 = "&CTitle=" + current["Title"].Text;
Telerik.Web.UI.
RadWindow newwindow = new Telerik.Web.UI.RadWindow();
newwindow.ID =
"SearchWnd";
newwindow.VisibleOnPageLoad =
true;
newwindow.Modal =
true;
newwindow.Width = 100;
newwindow.Height = 100;
newwindow.Title =
"Add Criterias to Signpost";
newwindow.NavigateUrl =
"~/custom/cmatters/learningportal/awards/controls/Signpostdetail.ascx?" + arg1 + arg2 + arg3;
RadWindowManager1.Windows.Add(newwindow);
}
}
}
And in the aspx page i have added the rad window manager:
<
Telerik:RadWindowManager VisibleOnPageLoad="true" DestroyOnClose="true" Modal ="true" ID="RadWindowManager1" runat="server" />
I am using ASP.net 2.0 and telerik version as RadControls for ASPNET AJAX Q1 2008 with IE7. Also the programming language i intend to use is c#
kindly help me and let me know the feasible solution as its critical.
Best Regards
Ash