sharepoint

Sharepoint custom List

Hi, I am using Sharepoint Designer 2007 and doing the Custom Validations(through Aspx controls). The validations are working perfectly. But the issue is when there is a validation failure, I have Corrected the failed fields and leave the other fields as it is. In this case I am not getting any values from unchanged fileds in my form i...

Replace default search box in SharePoint 2010 with custom one

On every new SharePoint 2010 site you get the default search box (In the MasterPage) that allows you to just do a normal search. I would like to replace this with some item that will allow you to pick Advanced or People Search, something like this......... Is it possible to replace/alter the default search box in the MasterPage? ...

Focus is not going inside EventHandler

Hi, I had created a simple web part with one label, and one button. I wnat that when i click the button the label content will change. But when i debugg i found that the focus is not going inside the Button Click Event function. When i click the button the debugger will again start with page load. Is there any Autofocus for Button. Plea...

sharepoint--custom cas--request failed

When i add then my webpart doesnt works. It gives Request Failed. If i add Unrestricted="true" then it works. After that if i removed Unrestricted="true" then also it works. I have to add it one time, after that if i removed it then to it works. So why this happens? ...

Is possible to inherit from SPWeb?

Hi, Is possible to inherit from SharePoint classes such like: SPWeb, SPList etc. or this classes are sealed? I couldn't find right answer. Chris ...

Maximum control number of master pages in sharepoint 2010

Hello, As developers know, SharePoint 2010 master pages can contain maximum 200 controls. I've searched arround a bit, but did not get any information or suggestion about this problem. Anyone faced with this problem before? I call this is a problem, because I need to put more than 200 controls. Do you have any suggestion about how to pu...

Callback function?

I need to callback Javascript function in my code, but not firing. I am providing details what I am doing?. I have input button in the page that calling javascript function. There I am loading another ProfilePic.aspx page. ProfilePic.aspx has FileUpload, OK and cancle button <input type=button value="Change Image" onclick="javascript:...

Programatically changing field order in Sharepoint 2007 list

I'm adding in two new fields into an already existing Sharepoint list programmatically through a feature. The fields are being added successfully but I have been unable to adjust the column order. This task is done simply through the UI by going to List Settings and then Column Ordering, but I have been unable to achieve the task progra...

'Company.Dept.Project.Controls.ControlName' is not allowed here because it does not extend class 'System.Web.UI.UserControl'

I have defined the following control which serves as a wrapper for another control (simplified code): using System.ComponentModel; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Company.Dept.Project.Controls.ControlName { [ AspNetHostingPermission(Securit...

Can't find a complete list of default pages for MOSS 2007

I've made a change to what I thought was the main default template page in a hosted version of Sharepoint 2007, but the search page hasn't picked up the change. Can someone please either give me a list of all the default page files, or tell me how to identify them? It's really important that I add a JS script call across all pages every...

what does the Lookup field mean in SharePoint

I am quite new to SharePoint,sometimes when I read book or blog, I come across "two lists in SharePoint ,with one list performing a lookup on the other list.".What does the lookup mean here , can anyone point me some tutorial to understand this? ...

Modify attribute value in XSLT and call template again for second time

I'm working with the SharePoint content query web part. I have an HTML output which is desired to be <ul> <li> <img src="{RowAttribute-Url}" /> </li> <li> <img src="{RowAttribute-Url}" /> </li> </ul> <table> <tr> <td>{RowAttribute-Title}</td> <td>{RowAttribute-Title}</td> </tr> </table> and the input xml for the CQWP is <ds...

Configuring Sharepoint in .net?

Can you script SharePoint configuration (as in settings done in the "Configure your SharePoint farm" and "Reporting Services Configuration Manager") through .Net ? Does anyone have any links that might help ? ...

How do I make a list item read-only

I have a list (assume an issues list) and there is a workflow associated with it. The workflow can adjust the status column of the item to "Closed". Once an item's status is closed, I want to make it read-only so that noone can edit the item or create another workflow instance for that item. What's the best way to achieve this? ...

Not authorized for search.asmx web-service ?

How can I get authorized to use ..._vti_bin/search.asmx ? I manage to set up a service reference to the above web service. Anonymous access is disabled on the Sharepoint port 80 site. Here is my code in VS 2010: DocSystemApplication.QueryWebServiceProxy.QueryServiceSoapClient client = new DocSystemApplication.QueryWebServiceProxy.Qu...

Checking permissions of a user with a site collection

Hello I want to check whether a user has permissions to a site collection. But i dono how to use SPSite.DoesUserHavePermissions(). What is SPReusableAcl? How can i get it for checking the permissions of the user? ...

Add Item to Sharepoint List in Silverlight

Hello... i want to add a item to a Sharepoint 2010 custom List over WebService. I can read data but i can't write. i test this code, i had no Error but no new item is in the List: XElement batch = new XElement("Batch", "<Batch OnError=\"Continue\">" + "<Method ID=\"1\" Cmd=\"New\">" + ...

Token access to sharepoint Web service

Here is my problem, I have one webpart that will retrieve current username and its token, using this code: SPUser myUser = SPControl.GetContextWeb(Context).CurrentUser; This information will be forwarded to external system, that will invoke windows service to download a document in sharepoint using sharepoint webservice. The probl...

WebRequest to PUT file on SharePoint server returns (405) Method Not Allowed

I have a sharepoint server on which some files are hosted. I have some .Net code that creates a WebRequest to GET some of the files. This is is working correctly. When I try to use similar code to PUT a file at the same location, I'm getting a: System.Net.WebException: The remote server returned an error: (405) Method Not Allowed o...

Looking for end-user web-based ad-hoc query/reporting tool - SharePoint or Web-forms

Hi, I'm looking for a database query/reporting solution whereby the user can select (via a web-page) database tables (or lists of data), data fields on the tables/list and values or value ranges. The solution generates the query (i.e. CAML/SQL statements), executes the query and provides the resulting data in a report, on the screen, and...