or
<rad:RadGrid runat="server" id="memberGrid" OnNeedDataSource="MemberGridNeedDataSource" OnItemCreated="MemberGridItemCreated" OnItemDataBound="MemberGridItemDataBound" ShowHeader="true" BorderWidth="0" > <MasterTableView PageSize="3" > <Columns> ... </Columns> </MasterTableView> </rad:RadGrid><rad:RadGrid runat="server" ImagesPath="~/App_Themes/mySkin/Grid" Skin="mySkin" EnableEmbeddedSkins="false" AutoGenerateColumns="false" ShowFooter="true" AllowPaging="true" PageSize="25" AllowSorting="true" Width="100%"> <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle> </rad:RadGrid>protected void MemberGridNeedDataSource(object sender, GridNeedDataSourceEventArgs e) { memberGrid.DataSource = Members; // Generic List }Dim sampleConfiguration As SampleAsyncUploadConfiguration = New SampleAsyncUploadConfiguration Try sampleConfiguration = CType(configuration, SampleAsyncUploadConfiguration) Catch ex As Exception End Try If sampleConfiguration IsNot Nothing Then postID = sampleConfiguration.postID Else+ ex {"[A]SampleAsyncUploadConfiguration cannot be cast to [B]SampleAsyncUploadConfiguration. Type A originates from 'App_Web_xauu0n21, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\myPC\AppData\Local\Temp\Temporary ASP.NET Files\mysite\b2f60de7\7f7ee92\App_Web_xauu0n21.dll'. Type B originates from 'App_Code.e2pu7rre, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\myPC\AppData\Local\Temp\Temporary ASP.NET Files\mysite\b2f60de7\7f7ee92\App_Code.e2pu7rre.dll'."} System.Exception
<telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="SearchUsersLinkButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="UserSearchResultsRadGrid" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="AddNewUserLinkButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="AddEditUserRadToolTip" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager><telerik:RadToolTip ID="AddEditUserRadToolTip" Modal="true" Skin="Vista" ShowEvent="FromCode" Position="Center" RelativeTo="BrowserWindow" EnableShadow="true" HideEvent="FromCode" runat="server"> <ACB:ProfileEdit ID="AddEditUserProfileEdit" runat="server" /> </telerik:RadToolTip>protected void AddNewUserLinkButton_Click(object sender, EventArgs e) { AddEditUserProfileEdit.InitializeData(null); AddEditUserRadToolTip.VisibleOnPageLoad = true; AddEditUserRadToolTip.Show(); }public void InitializeData(int? personID) { if (personID == null) { //--New User Setup SetupCreateUser(); } } private void ClearForm() { ProfileFormInfoLabel.Text = " "; this.FirstName = String.Empty; this.LastName = String.Empty; this.UserNamePrimaryEmail = String.Empty; this.AlternateEmail = String.Empty; this.PhoneNumber = String.Empty; this.UserPassword = String.Empty; } private void SetupCreateUser() { //--Title ProfileFormTitleLabel.Text = "Add System User"; //--FormType this.FormType = FormTypeEnum.Create; //--Roles RadGrid UserRolesRadGrid.DataSource = new DataTable(); UserRolesRadGrid.DataBind(); ClearForm(); }