or
<
CommandItemSettings
ShowExportToExcelButton
=
true
ExportToExcelImageUrl
=
"~/App_Themes/SETheme/SESkin/Grid/MyImage.gif"
/>
<
script
type
=
"text/javascript"
>
//
<![CDATA[
function MyFunction() {
}
//]]>
</
script
>
protected
void
radGrid_ItemCreated(
object
sender, Telerik.Web.UI.GridItemEventArgs e)
{
if
(e.Item
is
GridCommandItem)
{
e.Item.FindControl(
"InitInsertButton"
).Visible =
false
;
LinkButton Export = e.Item.FindControl(
"ExportToExcelButton"
)
as
LinkButton;
Export.OnClientClick =
"javascript:ExportTxt(); return false;"
;
}
}
|
Server Error in '/' Application.
--------------------------------------------------------------------------------
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Source Error:
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.
Stack Trace:
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
System.Reflection.RuntimeModule.GetTypes() +4
System.Reflection.Assembly.GetTypes() +78
System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +75
System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +42
System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +233
System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +162
System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +648
System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +78
System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +119
System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +124
System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) +39
System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +1109
System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +164
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +96
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +212
Telerik.Web.UI.GridTableView.PerformSelect() +38
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +127
Telerik.Web.UI.GridTableView.DataBind() +364
Telerik.Web.UI.RadGrid.DataBind() +173
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +108
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +130
System.Web.UI.Control.EnsureChildControls() +162
Telerik.Web.UI.GridBaseDataList.get_Controls() +33
Telerik.Web.UI.RadAjaxControl.PopulatePlainPanels(Control parent, List`1 list, Control root) +119
Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1808
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnPreRender(EventArgs e) +124
System.Web.UI.Control.PreRenderRecursiveInternal() +185
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4771
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Breifly the command executed in the last instance of control added to the page.