Update Panel in web part not working in Google Chrome - asp.net

I have written a visual web part for SharePoint 2013 in VS2015. The web part contains a number of asp controls as well as a grid view. I implemented AJAX with using script manager proxy and update panel. The deployed web part works well in IE but in google chrome, it doesn't work. I have found the solution on the internet. http://www.jquery2dotnet.com/2011/11/update-panel-not-working-in-google.html. I have put the code in js file in layout folder. In scriptmanager add reference to the file Path="/_layouts/15/prj/WebKit.js". However, it is not working in chrome. Could anyone please tell me how to solve this issue?

There seems to be an issue with SharePoint + UpdatePanel.
I've had the same problem and found the following article:
https://msdn.microsoft.com/en-us/library/ff650218.aspx
To be honest, I couldn't apply the proposed solution, because I couldn't find the requested dll.
So, to solve my postback problem, I saw two possibilities:
1. Use DevExpress
2. Change my code to client side.
I chose the second option.

Related

ASP.Net Razor Page generates wrong URL

I have this Page '~/Pages/Topic/View.cshtml' that uses a layout '~/Pages/Shared/_Layout.cshtml' in my project. The problem is when this Page is rendered all Anchor tags generates a reference to the page itself ('~/Pages/Topic/View.cshtml')
Please, how do I fix this?
Note: You can connect to my computer using TeamViewer on other related remote App and solve this for me.
Below is _Layout.cshtml using the _Nav.cshtml
Try adding a forward slash in front of the page name:
asp-page="/Department"
Edit:
I just tested this using the same scenario you described and it works. You must have additional code somewhere causing issues, or you are trying to use MVC with Razor Pages and it's causing issues.

Code-blocks are not allowed in this file - Where is My web.confi file

I have a sharepoint at my office. Its 2013 version. Where I want to write some asp code. But the issue is SharePoint is blocking the code and I am getting error "Code blocks are not allowed in this file". I searched google and found several links to solve the issue by saying make some changes to the webconfig file.
Now my question is how do I find the file. Where it is actually.
What I have is a sharepoint, I don't have any designer. I only have admin access for this site. Can some one please guide me.
I know there are several entries here in stackoverflow, but no one is talking about where to find the file.
Please help me.
My apologies if this happens to be a repetition, in that case please point me to the right post. Thank you guys.
By default injecting server-side code (ASP.NET) in SharePoint pages directly from sites is not allowed for performance reasons, and should remain as is.
If you never approched SP developpment and are not an administrator of the farm in your company I strongly advise you to see first if you can solve your needs with client side development (javascript) instead of going to server side (ASP.NET).
SPS2013 comes with the "Script Editor WebPart" that you can use to inject your custom JS on pages. If you need your custom on all pages consider adding your JS on the site's masterpage.
From JS you can use SharePoint REST API to interact with your site https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service
If you need heavy customisation for your site you can move to the addin model (client side) that will require Visual Studio IDE develoment suite.
And last option is if you explicitly require serve side code and/or need to develop a scalable enterprise grade solution, you will need to make a "SharePoint full trust solution package".
PS: You may see articles around about "SharePoint Framework" (aka SPFx), unfortunatly this is not available for SPS2013.

Telerik image editor Tool Dialog issue

I am trying to implement a rad editor. In it there is an Image Manager and inside the image manager is an Image Editor. So far its fine(the image is being shown perfectly).
As in every story there is a villain here it is.
Now the problem arises when i click on any of the tool buttons in the image editor window. The popup screen but there is nothing inside it. Like when i click on the Crop button the popup heading is just Tool Dialog and there is no content in it. A preview can be seen .
This issue is arising only when i use it in a RadEditor. When i am using an Image Manager alone then there is no issue. I am kind of stuck here..
Thanks
This a follow-up, because there is addition information on the issue. The problem is discussed in the following help article: http://www.telerik.com/help/aspnet-ajax/radcompression.html
Known issues
Problem
When RadCompression is enabled and you are using .NET 4.0, event handlers might not be raised in a default document in IIS 7 or IIS 7.5 Integrated Mode.
Solution
This problem is caused by a breaking change in .NET 4.0 described here. To workaround it one can set preCondition="managedHandler" for the RadCompression module. You may also need to remove the runAllManagedModulesForAllRequests setting from your web.config if you have it (or set it to false).
I am aware of this problem which is caused by IIS of Windows 2008 server. The problem arise when the when the loaded URL in the browser doesn't contain the exact page hosting the control.
For example the control will not work at www.domain.com, but it will work at www.domain.com/Default.aspx.
Here you can find article, which discusses such a problem: http://forums.iis.net/p/1175925/1973069.aspx.
Please, note that the issue is not directly related to Telerik controls. If you are unable to solve it you could contact Microsoft or search in Internet for a solution.

newbie question about css property set up in Web developer 2010 Express

I am relatively new in C# and ASP.NET MVC.
There is something unusual that happens and it could be a simple property setup...
I have a MVC Web app and a css file associated with it in my Content folder.
Now everytime I do some changes in the css file I don't see these changes when I run the app. It seems that whatever I do the app keeps on using the old file. I can see it when I do a View Source on the page.
I played a bit with the Copy to Output Directory property in Web Developer without any good results.
Am I really missing something here ?
Thanks
Either restart casini, the web server for asp.net, the icon down by the clock or try hitting F5 in the browser a bunch of times.
Try clearing the cache in your browser.

Silverlight in aspx page not loading

I have developed a simple Silverlight control. I created this by using the Silverlight application project template in VS 2008, adding a test page to my existing website.
Now, my control works perfectly in the auto-generated aspx, where I have now got it functioning as required. However, when I try to put the control in a new page it does not load. Debugging suggests that the code is all executing, however the UI I expect to see simply isn't appearing.
I tried this initially in a content page using the correct master page for my site layout, and then just in a standard ASPX which doesn't use MPs...same problem.
Has anyone else experienced anything similar? Am I missing something simple!?
So frustrating, any help appreciated!
You can use Firebug or Internet Explorer's developer toolbar (and Fiddler) to see if the xap file is being requested and the rendered object tag has the proper size. If using the control check for any JavaScript errors.
Right-click the region where the Silverlight control should be to see if you get a Silverlight options prompt. That will tell you if the problem is in the loading of your Silverlight object into the page, or after the Silverlight plugin has loaded.

Resources