<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server"><telerik:RadAjaxManager runat="server" id="RadAjaxManager1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="pnlSearchBox" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlSearchBox" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> <AjaxSettings > <telerik:AjaxSetting AjaxControlID="pnlScheduler" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlScheduler" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" runat="server" transparency="60" Height="950px" backcolor="White"> <br /><br /><br /><br /><br /><br /><br /> <asp:Image ID="loadingPicture" runat="server" ImageUrl="../App_Themes/myOBIS/picts/loading.gif" /> </telerik:RadAjaxLoadingPanel>..... <asp:Panel ID="pnlSearchBox" runat="server"> <asp:Label ID="lblStandorte" runat="server" Text="<%$ Resources:GlobalLocalization, Standort_%>" /> <telerik:RadComboBox ID="rcbLocations" runat="server" AutoPostBack="true" EnableEmbeddedSkins="false" Skin="myOBIS" DataTextField="LocationName" DataValueField="LocationId" CssClass="field_long" onselectedindexchanged="Locations_SelectedIndexChange" ></telerik:RadComboBox> <asp:Label ID="lblProdukte" runat="server" Text="<%$ Resources:GlobalLocalization, Produkt_%>" /> <telerik:RadComboBox ID="rcbProducts" runat="server" DataTextField="InternalProductName" DataValueField="ProductId" EnableEmbeddedSkins="false" Skin="myOBIS" CssClass="field_long" AutoPostBack="true" onselectedindexchanged="Products_SelectedIndexChange" ></telerik:RadComboBox> <asp:Panel/> ...<telerik:RadGrid ID="DistributorRadGrid" runat="server" GridLines="Both" > <MasterTableView EditMode="InPlace" > <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"></FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu> </telerik:RadGrid>var varDistributors = from d in MORContext.GetTable<Distributor>() where (d.Active == true && d.Distributor_Type_id == 1 ) orderby d.Distributor_Name select new { Distributor_Name = d.Distributor_Name, DistributorID = d.Destributor_ID };
Codes am using
| <pages validateRequest="true"> |
| Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) |
| Dim ex As Exception = Server.GetLastError().GetBaseException() |
| If Not (ex.GetType Is GetType(HttpException)) Then |
| If ex.Message.ToLower.Contains("a potentially dangerous request.form value was detected from the client") Then |
| Try |
| My.Log.WriteEntry("Global Error MESSAGE: " & ex.Message & "SOURCE: " & ex.Source & "STACKTRACE: " & ex.StackTrace, EventLogEntryType.Error) |
| Catch ex1 As Exception |
| My.Log.WriteEntry("Write event log got problem: " & ex1.Message, EventLogEntryType.Error) |
| End Try |
| Server.Transfer("~/UnsafeScriptErrorPage.aspx?returnURL=" & Server.UrlEncode(HttpContext.Current.Request.Url.ToString)) |
| ElseIf ex.Message.Trim.ToString <> "" Then |
| Try |
| My.Log.WriteEntry("Global Error MESSAGE: " & ex.Message & "SOURCE: " & ex.Source & "STACKTRACE: " & ex.StackTrace, EventLogEntryType.Error, False) |
| Catch ex1 As Exception |
| My.Log.WriteEntry("Write event log got problem: " & ex1.Message, EventLogEntryType.Error) |
| End Try |
| Server.Transfer("~/GenericErrorPage.aspx?errMsg=" & ex.Message & "&returnURL=" & Server.UrlEncode(HttpContext.Current.Request.Url.ToString), False) |
| End If |
| End If |
| Server.ClearError() |
| End Sub |
| <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" |
| CodeFile="Inbox.aspx.vb" Inherits="Inbox" Title="Inbox" %> |
| <%@ Register assembly="RadAjax.Net2" namespace="Telerik.WebControls" tagprefix="radA" %> |
| <%@ Register src="../datagridControl.ascx" tagname="datagridControl" tagprefix="uc1" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> |
| <radA:RadAjaxPanel ID="RadAjaxPanelAppIn" runat="server" LoadingPanelID="AjaxLoadingPanelAppin" ClientEvents-OnRequestStart="pnlRequestStarted" |
| Width="100%"> |
| <table border="0" cellpadding="0" cellspacing="0" class="HeaderBg" width="100%"> |
| <tbody> |
| <tr> |
| <td class="SideSpaceWidth"> |
| </td> |
| <td class="SideSpaceHeight"> |
| <radA:AjaxLoadingPanel ID="AjaxLoadingPanelAppin" runat="server" IsSticky="True" |
| MinDisplayTime="1000" Wrap="False"> |
| <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/images/indicator.gif" /> |
| <strong>Loading Content ...</strong></radA:AjaxLoadingPanel> |
| </td> |
| <td class="SideSpaceWidth"> |
| </td> |
| </tr> |
| <tr> |
| <td > |
| </td> |
| <td> |
| <uc1:datagridControl ID="DatagridControl1" runat="server" /> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| </td> |
| <td class="SideSpaceHeight"> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </radA:RadAjaxPanel> |
| </asp:Content> |
| <radG:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowFilteringByColumn="False" |
| AllowMultiRowSelection="false" AllowPaging="True" AllowSorting="True" BackColor="Transparent" |
| DataSourceID="GridDataSource" EnableAJAX="false" EnableAJAXLoadingTemplate="false" |
| EnableViewState="true" GridLines="None" LoadingTemplateTransparency="50" ShowGroupPanel="True" |
| ShowStatusBar="False" AutoGenerateColumns="true" OnUpdateCommand="RadGrid1_UpdateCommand" |
| SkinID="myGrid" OnColumnCreated="ColumnCheck" OnPreRender="ReduceFilter" Width="100%" |
| OnItemDataBound="ColDatabind"> |
| <MasterTableView DataSourceID="GridDataSource" GroupLoadMode="Client"> |
| <Columns> |
| <radG:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Images/edit.gif" |
| UniqueName="EditCommandColumn1" Resizable="False" Reorderable="False"> |
| <HeaderStyle Width="15px" /> |
| </radG:GridEditCommandColumn> |
| <radG:GridTemplateColumn UniqueName="AssignUser" AllowFiltering="False" Reorderable="False" |
| Groupable="False" Resizable="False" Visible="false"> |
| <HeaderStyle Width="20px" /> |
| <HeaderTemplate /> |
| <ItemTemplate> |
| <asp:ImageButton runat="Server" ID="ibtnAssignMsg" ImageUrl="~/images/Asgn.gif" CommandName="AssignMsgToUser" |
| ToolTip="Assign SMS to User" Visible="false" /> |
| </ItemTemplate> |
| </radG:GridTemplateColumn> |
| <radG:GridTemplateColumn UniqueName="myselect" AllowFiltering="False" Reorderable="False" |
| Groupable="False" Resizable="False"> |
| <HeaderStyle Width="20px" /> |
| <HeaderTemplate> |
| <asp:CheckBox ID="selectall" runat="Server" OnLoad="SelectAll" /> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <asp:CheckBox runat="Server" ID="myselect" OnLoad="ClearSAll" /> |
| </ItemTemplate> |
| </radG:GridTemplateColumn> |
| </Columns> |
| <EditFormSettings UserControlName="~/editform.ascx" EditFormType="WebUserControl" > |
| <EditColumn UniqueName="EditCommandColumn"> |
| </EditColumn> |
| </EditFormSettings> |
| <NoRecordsTemplate> |
| <table width="100%"> |
| <tr> |
| <td align="center"> |
| There are no items to display. Please check your selection criteria and retry. |
| </td> |
| </tr> |
| </table> |
| </NoRecordsTemplate> |
| <FooterStyle Height="0px" /> |
| <ExpandCollapseColumn Visible="False"> |
| <HeaderStyle /> |
| </ExpandCollapseColumn> |
| <RowIndicatorColumn Visible="False"> |
| <HeaderStyle /> |
| </RowIndicatorColumn> |
| </MasterTableView> |
| <ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True" AllowColumnsReorder="True" |
| ColumnsReorderMethod="Reorder" ApplyStylesOnClient="True"> |
| <Selecting AllowRowSelect="True" /> |
| <Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" /> |
| </ClientSettings> |
| </radG:RadGrid> |
| <tr> |
| <td nowrap="nowrap"> |
| <asp:Label ID="Label3" runat="server" meta:resourcekey="Label3Resource2" Text="Recipient(s)"></asp:Label></td> |
| <td> |
| <asp:Label ID="Label5" runat="server" CssClass="tips" meta:resourcekey="Label5Resource1" |
| Text="use ; to separate multiple numbers"></asp:Label> |
| <asp:TextBox ID="txtRecipient" runat="server" Visible="False"></asp:TextBox><asp:RequiredFieldValidator |
| ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRecipient" |
| ErrorMessage="RequiredFieldValidator" meta:resourcekey="ContactTextRequiredResource1" |
| ToolTip="Mobile Number is required." ValidationGroup="SaveSMS">*</asp:RequiredFieldValidator> |
| <asp:RegularExpressionValidator |
| ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtRecipient" |
| ErrorMessage="Please enter numbers only" meta:resourcekey="contactValidatorResource1" |
| ValidationExpression="[0-9]+" ValidationGroup="SaveSMS"></asp:RegularExpressionValidator> |
| <asp:HiddenField ID="OutlogID" runat="server" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label2" runat="server" meta:resourcekey="Label2Resource2" Text="SMS Text"></asp:Label></td> |
| <td> |
| <asp:TextBox ID="txtSMS" runat="server" Columns="50" Rows="5" TextMode="MultiLine"></asp:TextBox> |
| <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtSMS" |
| ErrorMessage="RequiredFieldValidator" meta:resourcekey="RequiredFieldValidator2Resource1" |
| ValidationGroup="QuickSMS">*</asp:RequiredFieldValidator></td> |
| </tr> |
Microsoft JScript runtime error: Unexpected ajax response was received from the server.
This may be caused by one of the following reasons:
- Server.Transfer.
- Custom http handler.
- Incorrect loading of an "Ajaxified" user control
Verify that you don't get a server-side exception or any other undesired behavior, by setting the EnableAJAX property to false.
Any one Please help me in this issue. am waiting for your reply.
Hi there,
I have a page which has a tabstrip. I dynamically add a usercontrol to a pageview. The usercontrol added dynamically has a button which opens a page in a radwindow. I follow the below syntax for opening a radwindow from client side.
var oWnd = radopen("page.aspx", "Page");
The radwindow is displayed distorted. Screenshot attached.
<?xml version="1.0"?><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <system.web> <pages> <controls> <add tagPrefix="telerik" tagName="" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> </controls> </pages> <httpHandlers> <add path="Telerik.Web.UI.SpellChecker.axd" verb="*" type="Telerik.Web.UI.SpellChecker" validate="false" /> <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" /> <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" validate="false" /> <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" /> </httpHandlers> <httpModules> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> </httpModules> </system.web> <system.webServer> <modules> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersion2.0" /> <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersion2.0" /> </modules> <handlers> <remove name="Telerik_Web_UI_WebResource" /> <remove name="ChartImage_axd" /> <remove name="Telerik_Web_UI_SpellCheckHandler_axd" /> <remove name="Telerik_Web_UI_DialogHandler_aspx" /> <remove name="Telerik_RadUploadProgressHandler_ashx" /> <remove name="Telerik_Web_UI_WebResource_axd" /> <add name="Telerik_Web_UI_WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" resourceType="Unspecified" preCondition="integratedMode" /> <add name="ChartImage_axd" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" preCondition="integratedMode,runtimeVersion2.0" /> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik_Web.UI.SpellCheckHandler" preCondition="integratedMode,runtimeVersion2.0" /> <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" preCondition="integratedMode,runtimeVersion2.0" /> <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" preCondition="integratedMode,runtimeVersion2.0" /> <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" preCondition="integratedMode,runtimeVersion2.0" /> </handlers> </system.webServer> <appSettings file=""> <add key="Telerik.Skin" value="Outlook" /> <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" /> <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" /> </appSettings></configuration>