ImagePosition="Right" ImageCss="PrevButton"An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Src="WebUserControl.ascx" TagName="WebUserControl" TagPrefix="uc1" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<uc1:WebUserControl ID="WebUserControl1" runat="server" />
</form>
</body>
</html>
using System;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="OrdersGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="OrdersGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="EmployeesGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="EmployeesGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
<telerik:RadGrid ID="EmployeesGrid" runat="server" AutoGenerateColumns="true"
AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="5"
GridLines="None" ShowStatusBar="true" style="margin-bottom: 20px;">
<PagerStyle Mode="NumericPages"></PagerStyle>
<ClientSettings EnablePostBackOnRowClick="true">
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>
<telerik:RadTabStrip runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1"
SelectedIndex="0">
<Tabs>
<telerik:RadTab runat="server" Text="Sanjay" PageViewID="PageView1" />
<telerik:RadTab runat="server" Text="Sanjay" PageViewID="PageView2" />
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" RenderSelectedPageOnly="false">
<telerik:RadPageView runat="server" ID="PageView1">
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true"
AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="5"
GridLines="None" ShowStatusBar="true" style="margin-bottom: 20px;">
<PagerStyle Mode="NumericPages"></PagerStyle>
<ClientSettings EnablePostBackOnRowClick="true">
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>
</telerik:RadPageView>
<telerik:RadPageView>
<telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="true"
AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="5"
GridLines="None" ShowStatusBar="true" style="margin-bottom: 20px;">
<PagerStyle Mode="NumericPages"></PagerStyle>
<ClientSettings EnablePostBackOnRowClick="true">
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>
</telerik:RadPageView>
</telerik:RadMultiPage>
using System;
using System.Data;
public partial class WebUserControl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Contract Number", typeof(string)));
dt.Columns.Add(new DataColumn("Customer Name", typeof(string)));
DataRow dr = dt.NewRow();
dr["Customer Name"] = "Sanjay";
dr["Contract Number"] = "Sanjay";
dt.Rows.Add(dr);
EmployeesGrid.DataSource = dt;
EmployeesGrid.DataBind();
}
}
ContentTemplate
hi
I use Telerik.Web.UI.dll v2011.1.419.40
and my web host use windows server 2003 + IIS6
and I use RadScriptManager + RadChart in my web site
what is correct form of my web.config?
<?xml version="1.0"?> <configuration> <system.web> <machineKey validationKey="4E034E7E4D3A8BD7B883864A59A1DCE0F0830BBB7A8EA155F5E3C43640F53EE78D1FD427F4C7A1FC88C273BD134A4A55F329EB552379EE45E74C5FA298CD270F" decryptionKey="6D0118305061DE29C50CC073F906B4861CEE55D1CB1EBBE31D04220359C6794C" validation="SHA1" decryption="AES" /> <compilation debug="false" defaultLanguage="C#" targetFramework="4.0"> <assemblies> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </assemblies> </compilation> <httpRuntime maxRequestLength="1024" requestLengthDiskThreshold="64" requestValidationMode="2.0"/> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> <controls> <add tagPrefix="csm" namespace="customWebControls"/> <add tagPrefix="tlk" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/> </controls> </pages> <httpModules> <add name="customErrorModule" type="customErrorModule"/> </httpModules> <httpHandlers> </httpHandlers> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="customErrorModule" type="customErrorModule"/> </modules> <handlers> </handlers> </system.webServer> </configuration>private static void CaptureChangesInGrid(RadGrid targetGrid){ //Loop through each targetgrid item foreach (GridDataItem gridRow in targetGrid.MasterTableView.Items) { Dictionary<object, object> editDict = new Dictionary<object, object>(); targetGrid.MasterTableView.ExtractValuesFromItem(editDict, (gridRow as GridEditableItem)); foreach (GridColumn column in targetGrid.MasterTableView.Columns) { CustomEditableColumn editableCol = column as CustomEditableColumn; GridEditableColumn editColumn = editableCol as GridEditableColumn; if (editableCol != null) { //Find the edit control in the given row System.Web.UI.Control editItem = editableCol.FindControlInRow(gridRow); if (editItem == null) { throw new ApplicationException("Unable to find edit control in for column: " + editableCol.HeaderText); } editableCol.CheckControlForChange(editItem, GetValueFromDictionary(editableCol, editDict)); } } }}