or
<telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpeg,.gif,.png,.jpg" ControlObjectsVisibility="None" OverwriteExistingFiles="True" AllowedMimeTypes="image/png,image/jpeg,image/gif"></telerik:RadUpload>For Each f As UploadedFile In RadUpload1.UploadedFiles
strNewMasterFilename = Server.MapPath("~/blogs/" & strActiveBlogName & "/" & strActiveBlogName & "_masterimage") & f.GetExtension
f.SaveAs(strNewMasterFilename, True)Next<connectionStrings> <add name="ActiveSkillConnectionString" connectionString="Data Source=NETDEV\SqlExpress;Initial Catalog=ActiveSkill;Integrated Security=True;User Id=ActiveSkillUser;Password=a0biozasu1" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <roleManager enabled="true"> <providers> <add connectionStringName="ActiveSkillConnectionString" applicationName="/ActiveSkill" name="RoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </providers> </roleManager> <membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ActiveSkillConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="3" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/ActiveSkill"/> </providers> </membership>
etc etc...
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/><div style="width: 80%"> <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1"> <div style="float: left; height: 100%; width: 55px; background: #E3EFFF; text-align: center; border-right: 1px solid #6593CF;"> <img src="images/tasks.gif" alt="" /></div> <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" GridLines="None" Width="585px"> <MasterTableView AllowMultiColumnSorting="true" /> <SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false" /> <HeaderStyle Width="100px" /> </telerik:RadGrid> </telerik:RadAjaxPanel> </div>protected void PRate_Load(object sender, EventArgs e) { LoadData(); } protected void LoadData() { var Person = TypeCreator.TypeGenerator(new[]{ new {ID=1, PackageName="1 Week", Duration="1 Week", Rate=29, Price=100}, new {ID=2, PackageName="1 Month(s)", Duration="1 Week", Rate=29, Price=100}, new {ID=3, PackageName="3 Month(s)", Duration="1 Week" , Rate=29, Price=100}, new {ID=4, PackageName="6 Month(s)", Duration="1 Week", Rate=29, Price=100}, new {ID=5, PackageName="9 Month(s)", Duration="1 Week", Rate=29, Price=100}, new {ID=6, PackageName="12 Month(s)", Duration="1 Week", Rate=29, Price=100} }); //none of the method is working, var dt = new System.Data.DataTable(); dt.Columns.Add(new System.Data.DataColumn("ID", typeof(System.Int16))); dt.Columns.Add(new System.Data.DataColumn("PackageName", typeof(System.String))); dt.Columns.Add(new System.Data.DataColumn("Duration", typeof(System.String))); System.Data.DataRow dr; for (int i = 0; i < 100; i++) { dr = dt.NewRow(); dr[0] = i; dr[1] = "Package" + i; dr[2] = i * 10; dt.Rows.Add(dr); } RadGrid1.DataSource = dt; RadGrid1.DataBind(); } static class TypeCreator { public static List<T> TypeGenerator<T>(this T[] t) { return new List<T>(t); } }<telerik:RadChart runat="server" ID = "chartTransactions" AutoLayout="true" DataSourceID="datTransactions" DefaultType="Line" DataGroupColumn = "Store" Width="800" > <ChartTitle><TextBlock Text = "Transactions - Store"></TextBlock></ChartTitle> <PlotArea> <XAxis DataLabelsColumn = "AppRejDate" > <Appearance ValueFormat="ShortDate"> <LabelAppearance RotationAngle="270"> </LabelAppearance> </Appearance> </XAxis> </PlotArea> </telerik:RadChart><asp:SqlDataSource ID = "datTransactions" runat="server" ConnectionString="<%$ ConnectionStrings:DBString %>" SelectCommand = "Select tblStore_Ref.Description, CAST(DATEADD(Day, DATEDIFF(Day, 0, AppRejDateTime), 0) AS Float) + 2 AS AppRejDate, Count(*) as Transactions From tblTransactionHistory INNER JOIN tblTransactionItems ON tblTransactionHistory.TransactionID = tblTransactionItems.TransactionID INNER JOIN tblStore_Ref ON tblTransactionItems.Store = tblStore_Ref.Store Where Status = 'A' AND AppRejDateTime Between @dateBegin AND @dateEnd Group By DATEADD(Day, DATEDIFF(Day, 0, AppRejDateTime), 0), tblStore_Ref.Description Order By AppRejDate, tblStore_Ref.Description"> <SelectParameters> <asp:ControlParameter ControlID = "dateBegin" Name = "dateBegin" PropertyName="SelectedDate" /> <asp:ControlParameter ControlID = "dateEnd" Name = "dateEnd" PropertyName="SelectedDate" /> </SelectParameters> </asp:SqlDataSource>if (e.Item is GridEditFormItem && e.Item.IsInEditMode) { GridEditFormItem dataItem = e.Item as GridEditFormItem; TableCell cell = dataItem["InspectionDate"]; RadDatePicker rdp = cell.Controls[0] as RadDatePicker; rdp.Calendar.UseColumnHeadersAsSelectors = false; rdp.Calendar.UseRowHeadersAsSelectors = false; rdp.MaxDate = DateTime.Now; }