scriptmanager

ASP.NET Webform scriptmanager compatibility issue with Office outlook web add-in

雨燕双飞 提交于 2021-02-11 18:19:12
问题 We use asp.net webform to develop our outlook web add-in. There has been an issue in the add-in when a postback occurs inside an updatepanel, some client side errors will be thrown and it will make the add-in malfuntions. This issue is quite intermittent and we never found a solution. One of the error is like this h is not a constructor I have managed to strip down the add-in to its most simple form possible, where only the office.js and the scriptmanager are present. It can be observed that

ASP.NET Webform scriptmanager compatibility issue with Office outlook web add-in

寵の児 提交于 2021-02-11 18:18:18
问题 We use asp.net webform to develop our outlook web add-in. There has been an issue in the add-in when a postback occurs inside an updatepanel, some client side errors will be thrown and it will make the add-in malfuntions. This issue is quite intermittent and we never found a solution. One of the error is like this h is not a constructor I have managed to strip down the add-in to its most simple form possible, where only the office.js and the scriptmanager are present. It can be observed that

How to whitelist dynamically created scripts in a WebForms project using CSP (Content Security Policy)?

断了今生、忘了曾经 提交于 2021-01-27 05:26:48
问题 Is there a secure way of whitelisting dynamically created scripts in a WebForms project using CSP (Content Security Policy)? Using unsafe-inline like below it works but not recommended. context.Response.Headers.Append("Content-Security-Policy", string.Format("default-src 'none'; connect-src 'self'; font-src 'self'; img-src 'self' data: https:; style-src 'self'; script-src 'self' 'unsafe-inline'")); For any other options such as nonce-(random) , we see this CSP error message: Refused to

ScriptManager and UpdatePanel not found in namespace System.Web.UI

蹲街弑〆低调 提交于 2020-01-23 05:34:30
问题 I have a MVC4/Web API project and I created a test page that consumes the Web API using Ajax. Testing was going great, so I began working on the UI. One thing I needed to do was to populate some form controls with data returned from the Web API. I used JQuery for this. Now, when I run the application and submit the form, I get an error indicating that the page had been updated: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in

Client method called by ScriptManager.RegisterStartupScript not firing

随声附和 提交于 2020-01-17 03:35:12
问题 Can somebody look at the below code and tell me what I am doing wrong. for(i=0;i<=Request.Files.Count;i++) { int percentComplete = (int)Math.Ceiling((double)(i + 1) / (double)Request.Files.Count * 100); string message = string.Format("{0} of {1} uploaded", i + 1, Request.Files.Count); ScriptManager.RegisterStartupScript(this, this.GetType(), "progress", @"do_progress("+message+","+percentComplete+");", true); } I am trying to update the client with each pass of the loop. On the client (inside

UpdatePanel with input type other than text in html5

纵饮孤独 提交于 2020-01-12 07:17:03
问题 I am developing an open source project for rendering HTML5 using ASP.NET. Here you can take a look: http://asphtml5.codeplex.com/ now I have a problem with update panel in posting back the input values that have type other than 'text'. as you might know, html 5 has introduced several input types, for example 'number', 'tel', 'search', etc. Now if I render such controls, everything works fine in normal situations, but if I put them inside an UpdatePanel, no value will be posted back and the

UpdatePanel with input type other than text in html5

…衆ロ難τιáo~ 提交于 2020-01-12 07:16:47
问题 I am developing an open source project for rendering HTML5 using ASP.NET. Here you can take a look: http://asphtml5.codeplex.com/ now I have a problem with update panel in posting back the input values that have type other than 'text'. as you might know, html 5 has introduced several input types, for example 'number', 'tel', 'search', etc. Now if I render such controls, everything works fine in normal situations, but if I put them inside an UpdatePanel, no value will be posted back and the

ASP.NET Ajax client-side framework failed to load

六月ゝ 毕业季﹏ 提交于 2020-01-10 05:01:07
问题 I got this error: ASP.NET Ajax client-side framework failed to load with the error: 'Sys' is undefined. The error qppears in IE on the bottom (error message), and appears only when i'm running the site on server. on my localhost everything works fine. i moved for new server, and there i have the problem. in my previous server everything was fine. The problem comes from the SCRIPTMANAGER of the ajax. what i can to do? somthing in the web.config, or should the host company need to install

PageMethods in ASP.NET failed to work if you have ASP.NET Routing Implemented

北慕城南 提交于 2020-01-10 04:12:11
问题 I have a web method: [System.Web.Services.WebMethod] public static string getCharacterstics(int product_id, int lang_id) { // code goes here... } I want to access it using PageMethods like: (Provided the condition that i have Enable PageMethods in ScriptManager): <script type="text/javascript"> $(document).ready( function () { $('#characterstics').html("loading"); // '<%= product_id_property %>' , '<%= this.LanguageID %>' PageMethods.getCharacterstics(0 ,0 , OnSave); } ); function OnSave

Can't get ScriptManager.RegisterStartupScript in WebControl nested in UpdatePanel to work

妖精的绣舞 提交于 2020-01-09 12:19:39
问题 I am having what I believe should be a fairly simple problem, but for the life of me I cannot see my problem. The problem is related to ScriptManager.RegisterStartupScript, something I have used many times before. The scenario I have is that I have a custom web control that has been inserted into a page. The control (and one or two others) are nested inside an UpdatePanel. They are inserted onto the page onto a PlaceHolder: <asp:UpdatePanel ID="pnlAjax" runat="server"> <ContentTemplate> <asp