Tag Info

Hot answers tagged

3

This is because the UpdatePanel updates all the content WITHIN the UpdatePanel itself, meaning it recreates the DOM within that, excluding all javascript from outside the Panel. It has to be pointed out that moving the javascript within the UpdatePanel will not help. You'll have to use the Sys.WebForms.PageRequestManager.getInstance(); in order to make ...


3

A webpart is a just a kind of asp.net control, nothing specific to SharePoint considering what you want to achieve.You can use javascript\jquery\ajax to add controls dynamically. With javascript\jquery, you can add HTML controls.Check this : http://techbrij.com/445/add-dynamic-form-elements-textbox-button-radio-checkbox With Ajax Updatepanel, you can add ...


2

You can use jquery Ajax pretty easily and either have the response return some more html which you can add to an element on the page or build elements based on data returned. The update panel is a simple way to implement ajax in ASP.NET but may be (depends on req) more difficult to add controls dynamically (you may end up using JS anyway.


2

seems like a common problem with the new version browsers, this has been an on going issue! things like Page.ClientScript.RegisterClientScriptBlock(...) just doesnt work due to javascript not loading properly in those browsers at the beginning as sharepoint is doing one thing and browser is doing another! you have two methods! first i would try the ...


2

To completely understand the above answer, you would require the following reference: http://www.a2zmenu.com/Blogs/SharePoint/Richtext-contol-is-not-working-inside-updatepanel.aspx As suggested above, adding the following two lines after "RTE_TextAreaWindow_OnLoad(richtextContolId)", solved my problem: RTE_GiveEditorFirstFocus(richtextContolId); ...


2

I have resolved this issue. add following lines 2 lines after line "RTE_TextAreaWindow_OnLoad(richtextContolId)"; RTE_GiveEditorFirstFocus(richtextContolId); RTE_TransferIFrameContentsToTextArea(richtextContolId); Please let me know if it helps you...:) Cheers, Yogesh Ghare


1

This may be caused by not having resource quota on the site collection where the sandboxed solution is. Check by accessing SharePoint Admin Center, and see if you have resource quota for that site collection. Check in the list of site collections or the property page: If you have resource quota for your site collection, then you may be using the Update ...


1

Got the answer by testing workarounds. Just I need to write some lines of code in the OnInit() method of form. if (Page.Request.Browser.Type.ToUpper().Contains("SAFARI")) { ScriptManager sm = ScriptManager.GetCurrent(this.Page); if (sm != null) { sm.EnablePartialRendering = false; } } Anything for ScripManger cannot be changed ...


1

There appears to be some sort of change in the postback mechanism that's used by SharePoint and ASP.NET in SP2013. Here's a solution provided on MSDN In Visual Studio, add a reference to Microsoft.Practices.SPG.AJAXSupport.dll. Add a SafeScriptManager control to your page and set the EnableUpdatePanelSupport flag to true. This changes the postback ...


1

I should use the example that are explained in the SPServices project, like this: http://spservices.codeplex.com/wikipage?title=GetListItems basically you can use JQuery and IMHO is better


1

you can call MakeLynk(UserProfile user) within your updatepanel! I would also suggest that you could store the values within a session state and reload the values back again or use: if (!Page.IsPostBack) { your code here } both of those examples can be found here: How to save variables per user session per page as I dont have more code to go by I ...


1

you might want to have a look into this blog which explains the control tree: http://blog.typps.com/2008/01/failed-to-load-viewstate-typical.html Both links within the article are very good in explaining the viewstate and the life cycle of an asp.net page. Hope it helps. Kind Regards Ben


1

Have you tried clicking on the prompt to update the form? Give this a try. I am not entirely sure how InfoPath pulls forms down from the server but, it may have a cache that stores copies of these forms.


1

Not exactly an answer to your question but just sharing my experience: My understanding of update panels (and the reason I have stopped using them) is that it sends out an async httpRequest to the same page in background. The server process the whole page (that means all web parts on the page) and sends back the whole page in response and then the panel ...


1

I've been experiencing the same problem. I have a SharePoint dashboard where all my custom webparts reside (currently 9 webparts). All webparts retrieve their data from web services and while using AJAX with the Timer works well in terms of initial page load, it can take up to 30 seconds for the last webpart in the sequence to get its data which doesn't look ...


1

I'm not really a developer, but I believe the core of the problem is that ASP.NET processes each page request using a single thread (even where there are multiple Web parts). An UpdatePanel is a really a page-postback and AFAIK it can only post one event at a time. As such, you will most likely need to create and register asynchronous tasks (i.e. using ...


1

Try to keep all relevant controls (including buton) inside updatepanel. No need to use trigger here. If you keep button outside, it will be a postback and you will not see updateprogress.


1

since what you are trying to achieve is to show some kind of loading or processing indicator due to the long running operation. Have you tried SharePoint SPLongOperation Hope this helps



Only top voted, non community-wiki answers of a minimum length are eligible