or
<?xml version="1.0" encoding="UTF-8"?><configuration> <connectionStrings> <-- some connection strings --> </connectionStrings> <appSettings> <-- some settings --> </appSettings> <system.web> <compilation debug="false" 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> <customErrors mode="Off" defaultRedirect="Error.aspx"> <error statusCode="404" redirect="/NotFound.aspx" /> </customErrors> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true" /> <handlers> <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" /> <add name="ChartImage.axd" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" /> </handlers> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> <system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLength="999999999" /> </webServices> </scripting> </system.web.extensions></configuration>
<telerik:RadUpload ID="FileUploadControl" runat="server" MaxFileInputsCount="1" TargetFolder="~/Temp" OverwriteExistingFiles="false" Skin="Office2007" AllowedFileExtensions=".xls,.xlsx" ControlObjectsVisibility="None" InputSize="30" /><telerik:RadChart ID="RadChart2" runat="server" DefaultType="Pie" OnItemDataBound="RadChart2_ItemDataBound" DataSourceID="SqlDataSourceBusArea" Skin="Office2007" IntelligentLabelsEnabled="True" AutoLayout="True" Height="275px" > <Appearance> <Border Visible="False"></Border> </Appearance> <Series> <telerik:ChartSeries Name="sum_area" Type="Pie" DataYColumn="bu_area" DefaultLabelValue="#Y{N0} (#%)"> <Appearance ShowLabels="true" LegendDisplayMode="ItemLabels"> <FillStyle MainColor="69, 115, 167" FillType="Solid"> </FillStyle> <TextAppearance TextProperties-Color="Black" TextProperties-Font="Arial, 9pt"> </TextAppearance> <Border Color="69, 115, 167"></Border> </Appearance> </telerik:ChartSeries> </Series> <Legend> <Appearance Dimensions-Margins="0px, 0px, 0px, 0px" Dimensions-Paddings="0px, 10px, 0px, 3px" Dimensions-AutoSize="True" Dimensions-Height="165px" Dimensions-Width="85px"> <ItemTextAppearance TextProperties-Color="Black" AutoTextWrap="False"> </ItemTextAppearance> <ItemMarkerAppearance Figure="Square"> </ItemMarkerAppearance> <Border Visible="false" /> </Appearance> </Legend> <PlotArea> <Appearance Dimensions-Margins="0px, 0px, 0px, 0px" SeriesPalette="Vista" Dimensions-Height="275px" Dimensions-Paddings="0px, 0px, 0px, 0px"> <FillStyle MainColor="" FillType="Solid"> </FillStyle> <Border Visible="False" /> </Appearance> </PlotArea> <ChartTitle Visible="false"> <Appearance Visible="false"></Appearance> </ChartTitle> </telerik:RadChart><tr><td>Attachment(s)</td><td class="btnUpload"> <telerik:radupload id="ruImage" runat="server" controlobjectsvisibility="RemoveButtons, AddButton" maxfilesize="5120000" > <localization add="Add image" /> </telerik:radupload> </td></tr> </asp:panel> <asp:panel id="pnlMessageResult" runat="server"> <tr> <td colspan="2"> <asp:label id="lblMessageNote" runat="server" forecolor="Black" /> </td> </tr> </asp:panel> <tr> <td colspan="2"> <span class="btnAccept"> <asp:linkbutton id="lbSend" runat="server" text="Send" onclick="lbSend_Click" /></span> <span class="btnReject"> <asp:linkbutton id="lbContactCancel" runat="server" text="Close" onclick="lbContactCancel_Click" /></span> </td> </tr> </table> </contenttemplate> </asp:updatepanel> if (ruImage.UploadedFiles.Count > 0) { UploadAttachment(thread.MessageThreadId); } MessageThreadController.ADD(thread); pnlMessageResult.Visible = true; pnlMessage.Visible = false; lbSend.Visible = false; } else { throw new Exception("Upload validation failed"); } } catch (Exception ex) { validationShow(ex.Message, "Missing fields."); }}protected void validationShow(string message, string title){ RadValidationManager.RadAlert(message, 300, 40, title, "alertCallBackFn");}