#region
Ajax initialization
Page.ClientScript.RegisterStartupScript(
typeof(ReferralsListWebPart1), this.ID, "_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;", true);
if (this.Page.Form != null)
{
string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];
if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();")
{
this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";
}
}
RadAjaxPanel panel = new RadAjaxPanel();
panel.ID =
"RadAjaxPanel1";
this.Controls.Add(panel);
RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
if (ajaxManager == null)
{
ajaxManager =
new RadAjaxManager();
ajaxManager.ID =
"RadAjaxManager1";
Controls.Add(ajaxManager);
this.Page.Items.Add(typeof(RadAjaxManager), ajaxManager);
}
RadAjaxLoadingPanel loadingPanel = new RadAjaxLoadingPanel();
loadingPanel.ID =
"AjaxLoadingPanel1";
loadingPanel.Width =
Unit.Percentage(100);
loadingPanel.Height =
Unit.Pixel(400);
loadingPanel.Transparency = 25;
loadingPanel.EnableSkinTransparency =
true;
AjaxLoadingPanelBackgroundPosition position = new AjaxLoadingPanelBackgroundPosition();
position =
AjaxLoadingPanelBackgroundPosition.Center;
loadingPanel.BackgroundPosition = position;
Image image = new Image();
image.ID =
"loadingImage";
image.AlternateText =
"Loading...";
image.ImageUrl =
"/_layouts/images/loading.gif";
loadingPanel.Controls.Add(image);
this.Controls.Add(loadingPanel);
panel.LoadingPanelID =
"AjaxLoadingPanel1";
#endregion
| <asp:Panel id="pnlbtnSearch" runat="server" defaultButton="btnSearch"> |
| <table id="FilterControls" border="0" cellspacing="2" style="margin-top: 20px"> |
| <tr style="margin-left: 25px;padding-bottom:15px"> |
| <td class="labels" align="left" valign="top" style="padding-right:15px"> |
| <asp:label id="lblService" enableviewstate="False" runat="server" |
| text="Service:"></asp:label> |
| </td> |
| <td align="left" valign="top" colspan="2" > |
| <asp:textbox id="uxService" runat="server" width="195px"></asp:textbox> |
| </td> |
| </tr> |
| <tr> |
| <td style="height:30px" > |
| </td> |
| <td style="text-align:left" ><a><asp:LinkButton ID="btnSearch" runat="server" Text="Search" CssClass="searchBtn" ToolTip="Search" |
| OnClick="uxSubmit_Click" Style="float: right;"></asp:LinkButton></a> </td> |
| <td style="text-align:right" > |
| <a> |
| <asp:LinkButton ID="uxReset" runat="server" Text="Reset" ToolTip="Reset" CssClass="cancelBtn" |
| OnClick="uxReset_Click" Style="float: right;"></asp:LinkButton></a> |
| </td> |
| </tr> |
| </table></asp:Panel> |
| <telerik:GridButtonColumn ConfirmText="Warning! This will remove this service and any services underneath." |
| ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" |
| CommandName="Delete" Text="Delete" ImageUrl="~/Admin/ServiceFinder/images/Delete.gif" |
| UniqueName="DeleteColumn"> |
| <HeaderStyle Width="40px" /> |
| <ItemStyle Width="40px" /> |
| </telerik:GridButtonColumn> |
System.Reflection.TargetInvocationException: Property accessor 'FileName' on object 'Telerik.WebControls.RadUploadUtils.RadUploadFile' threw the following exception:'Telerik.WebControls.RadUploadUtils.RadUploadFile.get_FileName()' ---> System.MethodAccessException: Telerik.WebControls.RadUploadUtils.RadUploadFile.get_FileName() ---> System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) The action that failed was: Demand The type of the first permission that failed was: System.Security.PermissionSet --- End of inner exception stack trace --- at System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) --- End of inner exception stack trace --- at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) at System.Web.UI.DataBinder.Eval(Object container, String expression) at System.Web.UI.TemplateControl.Eval(String expression) at ASP.promoitemedit_aspx.__DataBind__control6(Object sender, EventArgs e) in e:\inetpub\vs156194\milieextranet\PromoItemEdit.aspx:line 98 at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.Repeater.DataBind() at MilieExtranetUI.PromoItemEdit.BindResults(UPLOAD_STATUS bSuccess) in C:\SVN\LMG\Millie\trunk\Code\MillieExtraNet\MillieExtraNet\PromoItemEdit.aspx.vb:line 994 at MilieExtranetUI.PromoItemEdit.btnUpload_Click(Object sender, EventArgs e) in C:\SVN\LMG\Millie\trunk\Code\MillieExtraNet\MillieExtraNet\PromoItemEdit.aspx.vb:line 1089