or
hello
In Telerik.Web.UI.dll v2010.1.616.35 I can use asyncUpload.UploadedFiles[0].ContentType correctly
but in new versions (I test Telerik.Web.UI.dll v2010.3.1317.35) always return Incorrect (=application/octet-stream) ContentType!
why?
Any solution to solve this problem there?
it's very important for me because i should use new version of Telerik.Web.UI.dll and also i should check ContentType instead of file extension
if users change file extension and send it, result of my work is incorrect and if send a virus or ... my website security is in danger
please help me
_radGrid = new RadGrid
{
ID = "telerikInspections",
DataSource = _siteSpecificAreas,
AutoGenerateColumns = false,
AllowPaging = false,
EnableViewState = true,
AllowSorting = true,
ShowHeader = true,
ShowFooter = true,
ShowStatusBar = false,
GroupingEnabled = false,
ShowGroupPanel = false,
Skin = "Forest"
};
gbc = new GridBoundColumn
{
UniqueName = "CountPendingInspection",
DataField = "CountPendingInspection",
HeaderImageUrl = "/_layouts/images/custom.images/Purple-P-16.png",
ShowSortIcon = false,
HeaderText = "Pending Inspection",
Aggregate = GridAggregateFunction.Sum
};
_radGrid.Columns.Add(gbc);
An error has occurred because a control with id 'Inspections1$telerikInspections$ctl00$ctl02$ctl00$ctl05' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.