Sharepoint with ASP.NET Ajax - ajax

I'm running a MOSS2007 Sharepoint website with .NET 3.5 Ajax. I'm using the SmartPart webpart to host a user control that contains an update panel.
I've added the script manager to the /_catalogs/masterpage/default.master file and it works fine when I log in as myself. But when I log in as a normal user I get the error message The control with ID 'UpdatePanel1' requires a ScriptManager on the page.
As far as I can tell, it's loading a different version of the masterpage for the different users (a user control with this.Page.MasterPageFile consistently returns /_catalogs/masterpage/default.master) but other edits I've made as tests don't show either...
Is there's any way to easily add a script manager to all master pages for all users (I'd rather have it on a page and not used, than needed on a page and not there)?

My stupid mistake. Needed to approve the new master page version after checking it in.

Related

apex application page not found

I created an empty application with project sample database in apex with administration and access control features.
Every time I create a new page for a table and want to run it, the page does not appear in navigation menu and when I run it from page editor an error occurs. (Report, master Report and etc.)
This problem does not happen in another applications I have.
Does anyone know why?
Something went wrong with the application creation process (perhaps an error occurred) or afterward to the application metadata (corrupted somehow).
When I created another new application, it worked fine.

Redirecting issues with spring and springmobile

I'm building a website using Spring and the SpringMobile extension.
I've configured the LiteDeviceDelegatingViewResolver with mobilePrefix = m/, tabletPrefix = t/ and enableFallback = true, so that, whenever a dedicated mobile (or tablet) view isn't available, the "normal" (desktop site) view is served.
The site has several sections and subsections. For instance, there's a Products section and several Categories within it.
Currently, there isn't a landing page for Products, so I redirect the user to the first Category. In other words, when the link to /products is clicked, the corresponding #Controller method redirects to /products/category1 (by returning "redirect:/products/category1"); then, the method mapped to /products/category1, serves the view (by returning "viewname").
This works as expected when using the desktop site. However, in the mobile site, whenever I try to browse to /products, I get automatically redirected to /m/products by SpringMobile (which is fine), but then my #Controller gets into action, and, instead of being eventually redirected to /m/products/category1, strangely I get redirected to /m/products/m//products/category1.
Any ideas on why is this happening, and on how to achieve the expected behavior?
P.S.: If I navigate directly to /m/products/category1, the desktop view (the fallback) is properly shown.
Well, it turns out this was a bug in SpringMobile(MOBILE-70, MOBILE-78) which was fixed in version 1.1.0.RC1. It also affected forward: redirection.
I've updated my project dependencies, and the issues appear to be gone for good.

Google Docs spreadsheet form / permissions

I have a Google Doc spreadsheet, which I created a native Form for. I copied the form code, and integrated it into my own page here.
This form was working until I gave the website owner permission to view the spreadsheet.
Since then, when we hit submit, it takes us to the native form page, and does not insert form data into the spreadsheet. (You're welcome to test the form.)
Should providing viewing permissions to the spreadsheet break my own version of the form?
Did you set permissions via docs.google.com? If so then no it should not have changed anything. I got all the way through the form to "Attending
Your response has been recorded." Is this what you are getting as well or do you have a backend error?
If it is not a backend error and I was able to get somewhere you couldt I would suggest clearing your browser chache and possibly resetting your router as sometimes they hold a cache of older versions of a website.
Did the current form of yours manage to work this before? I mean. It is shown that in the native form the questions are text boxes. While in your GUI form, it had radio buttons and check boxes, since you are calling the native post back url?

Javascript error on sharepoint page with search webpart and User Control containing UpdatePanel

I've been trying to find a cause for this error for some time to no avail...
We have a SharePoint 2007 site heavily customized in terms of look and feel.
In the master page a user control has been inserted that uses an update panel to partially render updates in the control.
The User control seems to work fine on all pages unless a search web part is inserted into the page.
The control has a DropDownList that according to user choice hides or shows different panels.
There are also buttons that cause async postbacks within each of the panels.
When a "Search Core Results" webpart is inserted into a page, all async requests cause a javascript error and no updates occur in the update panel.
The javascipt error is:
Sys.WebForms.PageRequestManagerServerErrorException:
Object reference not set to an
instance of an object.
The problem is I can't even figure out what this object is. It seems to be the ScriptManager (although its there in the master page).
Is there a way to get a detailed description of this error?
Also, are there are any known conflicts or issues with update panels and SharePoint search web parts?
I'm relatively new to SharePoint development and am still trying to find my way around customizing and debugging.
Update:
I used fiddler to examine the requests and responses.
In the request, the only difference I see is that without the search webpart it contains an NTLM authorization header, while the request on the page with the webpart has no authorization header.
In the response, the page that works has a private cache-control with some cookies set (i guess for authentication), while the other no-cache nor cookies set. Also, the response text contains the updated control when it works, while the other page returns this:
53|error|500|Object reference not set to an instance of an object.|
Could authorization be the issue here?
you are used visible property for hide DropDownList control or not
If not then please used visible property for

After deployment, login control stops working

In my development environment I can register and login just fine. After loging in or registering I do a redirect. Once deployed I noticed that the registering still works, but the page refreshes. Stranger still is the fact that when I try to log in, it also refreshes.
So basically, everything works - users still can register, the application can find the database, I can view public pages, etc. Just getting past the login (or register) page is not working. No redirect, just a refresh...
I run in IIS 6.0, SQL Server 2008, asp.net 4.0. I use membership and roles provided by asp.net.
Without more information, my best guess is a web.config problem. Make sure defaultUrl attribute set to your default page's name in the forms element of the web.config.

Resources