or
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|

<telerik:RadGrid ID="grdAdmin" runat="server" Width="100%" AllowFilteringByColumn="True" GridLines="None" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" onneeddatasource="grdAdmin_NeedDataSource" PageSize="20" ondeletecommand="grdAdmin_DeleteCommand"> <GroupingSettings CaseSensitive="false" /> <MasterTableView DataKeyNames="NominationID" NoMasterRecordsText="There are currently no nominations to display." Width="100%" CommandItemDisplay="Top" AutoGenerateColumns="False"> <Columns> <telerik:GridDateTimeColumn DataField="DateOfNomination" DataFormatString="{0:d}" HeaderText="Date Of Nomination" SortExpression="DateOfNomination" UniqueName="DateOfNomination" ReadOnly="true"> </telerik:GridDateTimeColumn> <telerik:GridBoundColumn DataField="NomineeName" HeaderText="Nominee Name" SortExpression="NomineeName" DataType="System.String" UniqueName="NomineeName" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="NominatorName" HeaderText="Nominator Name" SortExpression="NominatorName" DataType="System.String" UniqueName="NominatorName" ReadOnly="true" AllowFiltering="false"> </telerik:GridBoundColumn> <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteCommandColumn" ConfirmDialogType="Classic" ConfirmText="Are you sure you want to delete this nomination from the database?" ConfirmTitle="Are you sure?"> </telerik:GridButtonColumn> </Columns> </MasterTableView></telerik:RadGrid>protected void grdAdmin_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e){ using (RecognitionEntities dc = new RecognitionEntities()) { string selectStatement = string.Format(@"select n.NominationID, n.DateOfNomination, (SELECT FULL_NAME FROM dwdata.person_table where PERSON_ID=n.NomineeEmployeeID) as NomineeName, (SELECT FULL_NAME FROM dwdata.person_table where PERSON_ID=n.NominatorEmployeeID) as NominatorName from dbo.tblNominations as n where (n.DeletedBy IS NULL) and (n.FiscalYear = '{0}')", ConfigurationManager.AppSettings["CurrentFiscalYear"]); // bind the results to the grid IEnumerable<NominationAdmin> pn = dc.ExecuteStoreQuery<NominationAdmin>(selectStatement); grdAdmin.DataSource = pn.ToList(); }}using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Recognition.EntityDataModel{ public class NominationAdmin { private int _nominationID; private DateTime _dateOfNomination; private string _nomineeName; private string _nominatorName; public int NominationID { get { return this._nominationID; } set { this._nominationID = value; } } public DateTime DateOfNomination { get { return this._dateOfNomination; } set { this._dateOfNomination = value; } } public string NomineeName { get { return this._nomineeName; } set { this._nomineeName = value; } } public string NominatorName { get { return this._nominatorName; } set { this._nominatorName = value; } } }}<telerik:RadAjaxManagerProxy ID="UserAjaxManager" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="UserListGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="UserListGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RefreshList">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="UserListGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="DeleteSelectedItems">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="UserListGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="Search">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="UserListGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadWindowManager ID="RadWindows" runat="server" Skin="Web20" Behaviors="Close,Move,Resize"> <Windows> <telerik:RadWindow Height="362" Width="504" ID="ViewWindow" OnClientClose="updateRadGrid" RegisterWithScriptManager="false" runat="server" CssClass="actionWindow" NavigateUrl="UserEditor.aspx" VisibleStatusbar="false" VisibleTitlebar="true" ReloadOnShow="true"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> //View USER function showUserViewerWindow(userId) { var actionWindow = $find("<%=ViewWindow.ClientID %>"); actionWindow.setUrl("UserViewer.aspx?userId=" + userId); actionWindow.show(); } //UPDATEGRID function updateRadGrid(sender, eventArgs) { var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>"); ajaxManager.ajaxRequestWithTarget("<%= RefreshList.UniqueID%>"); } </script> </telerik:RadCodeBlock>