Unable to cast object of type 'System.Data.DataTable' to type 'System.Data.DataSet'.
Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
If e.CommandName = "select" Then
Session("sessiondataset") = CType(Session("sessiondataset"), DataSet).Tables("CTETable").Select("Customer ='" + DirectCast(e.CommandSource, LinkButton).Text + "'")
RadGrid1.Rebind()
end if
End Sub
Protected Sub RadGrid1_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
RadGrid1.DataSource = Session("sessiondataset")
End Sub
<
PlotArea>
<Appearance Dimensions-Width="300">
<FillStyle FillType="Solid" MainColor="White"></FillStyle>
<Border Color="130, 130, 130" />
</Appearance>
</PlotArea>
How do I resolve this
Thanks
protected void WorkOrderGrid_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem item = e.Item as GridDataItem; WorkOrderDetailItem view = item.DataItem as WorkOrderDetailItem; List<CustomField> CustFlds = CustFields(); for (int j = 0; j < CustFlds.Count; j++) { item.Cells[FirstCustomFieldCell + j].Text = (string.IsNullOrEmpty(view.CustomFieldValues[j]) ? " " : view.CustomFieldValues[j]); } } } protected void AddCustomFieldColumnsToGrid(List<CustomField> customFields) { foreach (CustomField custFld in customFields) { if (custFld.CustomFieldType == "money") { GridNumericColumn col = new GridNumericColumn(); _reportGrid.Columns.Add(col); col.DataType = typeof(Decimal); col.DataFormatString = "$ {0:N}"; col.Aggregate = GridAggregateFunction.Sum; col.UniqueName = "cf" + custFld.Id.ToString(); col.HeaderText = custFld.Name; col.Display = false; } else

<telerik:RadEditor Runat="server" id="FCKeditorThai" Width="100%"
AutoResizeHeight="true" AllowScripts="True" EnableResize="false"
BorderStyle="None" Visible="false" OnClientPasteHtml="OnClientPasteHtml"
ToolbarMode="PageTop" onclientload="OnClientLoadEdit"
ToolsFile="~/upload/toolFile.xml" Skin="Office2010Blue" >
<ExportSettings OpenInNewWindow="True">
</ExportSettings>
<mediamanager deletepaths="~/upload/images/Media/"
searchpatterns="*.asf,*.asx,*.wm,*.wmx,*.wmp,*.wma,*.wax,*.wmv,*.wvx,*.avi,*.wav,*.mpeg,*.mpg,*.mpe,*.mov,*.m1v,*.mp2,*.mpv2,*.mp2v,*.mpa,*.mp3,*.m3u,*.mid,*.midi,*.rm,*.rma,*.rmi,*.rmv,*.aif,*.aifc,*.aiff,*.au,*.snd"
uploadpaths="~/upload/images/Media/" viewpaths="~/upload/images/Media/"
maxuploadfilesize="20480000"
/>
<silverlightmanager deletepaths="~/upload/images/Silverlight/"
maxuploadfilesize="20480000" searchpatterns="*.*"
uploadpaths="~/upload/images/Silverlight/"
viewpaths="~/upload/images/Silverlight/" />
<templatemanager deletepaths="~/Template/"
searchpatterns="*.htm,*.html" uploadpaths="~/Template/"
viewpaths="~/Template/" />
<documentmanager deletepaths="~/upload/images/Document/"
maxuploadfilesize="20480000" searchpatterns="*.*"
uploadpaths="~/upload/images/Document/" viewpaths="~/upload/images/Document/" />
<content></content>
<flashmanager deletepaths="~/upload/images/Flash/"
maxuploadfilesize="20480000"
searchpatterns="*.swf" uploadpaths="~/upload/images/Flash/"
viewpaths="~/upload/images/Flash/" />
<imagemanager deletepaths="~/upload/images/Image/"
maxuploadfilesize="20480000"
searchpatterns="*.gif,*.xbm,*.xpm,*.png,*.ief,*.jpg,*.jpe,*.jpeg,*.tiff,*.tif,*.rgb,*.g3f,*.xwd,*.pict,*.ppm,*.pgm,*.pbm,*.pnm,*.bmp,*.ras,*.pcd,*.cgm,*.mil,*.cal,*.fif,*.dsf,*.cmx,*.wi,*.dwg,*.dxf,*.svf"
uploadpaths="~/upload/images/Image/" viewpaths="~/upload/images/Image/" />
</telerik:RadEditor>

editorScheduleText.Content = scheduleDetail.ScheduleText
I set content to : Problème avec les accents même si ca marche pas
When I try to get content like this :
editorScheduleText.Content
I lost all accent, content is now : Probl&easpme avec les accents m&ahdfme si ca marche pas
Why I lost accent ?
