sharepoint

sharepoint authentication

Hello all, I have developed one site in sharepoint wss3.0 when i type in the url i.e. http://testserver/default.aspx i am first asked username and password On successful login(I have created user from sharepoint central admin site) i am redirected to my site's login page. then i have do login to access my site. Now what i want to do i...

Sharepoint wss 3.0 authentication

Hello all, I have developed one site in sharepoint wss3.0 when i type in the url i.e. http://testserver/default.aspx i am first asked username and password On successful login(I have created user from sharepoint central admin site) i am redirected to my site's login page. then i have do login to access my site. Now what i want to do i...

instantiate SPSite and SPWeb objects

Hi, I want to know whats the best method of Instantiating SPSite and SPWeb objects . As there are no. of ways by which you can do this.Some of the ways I know 1. SPSite mySite = SPControl.GetContextSite(Context); SPWeb myWeb = SPControl.GetContextWeb(Context); //Why we use second method as in first method there is no nee...

problem in Retrieving rich text box sharepoint

Hi, I need to retrieve values from a rich text box from a list.My code till now is this.. ArrayList arCategory=new ArrayList(); SPList myList = myWeb.Lists["PList"]; SPQuery myQuery = new SPQuery(); myQuery.Query = "<OrderBy><FieldRef Name='ProgramID' Ascending="False"/></OrderBy>; ...

apply CSS list style buttons to server created button controls

Hi, I have some CSS that uses lists to create 3D buttons styles similar to the link below: http://articles.techrepublic.com.com/5100-10878_11-5323375.html My problem is I have buttons which are server controls and thus render html buttons. The question is how would I rewrite my button code to use lists and hyperlinks so I can apply ...

How do I get the username of the currently displayed profile in a SharePoint Webpart for MySites

I am writing a web part that will be displayed in public SharePoint My Sites. This part will display some 3rd party information for the user whose profile is being displayed. For example, if UserA is viewing UserB's profile, then it will show some information about UserB. How do I go about getting the username 'UserB' in the webpart c...

sharepoint 2007 -where is the layouts directory i cant find it ?

i have moss 2007 . i cant find any _layouts directory where is it ? do i have to create it or do some configuration ? i need it because i have to add a javascript file .js file to it according to this link http://weblogs.asp.net/wesleybakker/archive/2009/03/05/select-multiple-list-items-in-sharepoint-feature.aspx any help appreci...

SharePoint Web part Shared settings

I am creating a webpart that connects to another server in order retrieve data. This webpart has some settings that are the same for all instances i.e. Username, Password, Url ... Is it possible to store those values in a common place so that I can change them in the future and every instances should be affected? It is important that the...

where to add the c sharp code in this example to make changes in sharepoint programmatically ?

i am trying to programmatically do some changes in sharepoint as per the link below in the link below there is a the second cod snippet is a C sharp code. where do i put this code ? or how can i use this code in sharepoint is not mentioned .. can anyone please tell me ? http://weblogs.asp.net/wesleybakker/archive/2009/03/05/select-mult...

Sharepoint Designer stripping accent

I have an issue with Sharepoint Designer. Every time I put an accent in its HTML entities form: either &#233; or &eacute;, Sharepoint Designer changes it to é upon Check In and isn't shown when accessing the page on Internet Explorer. Is it an encoding problem? What can I do to avoid it? ...

Required Field InfoPath

Can you can make an info path attachment control mandatory based on a set criteria? if listbox selected value is High attachment is mandatory else not mandatory . this form will be in sharepoint as a web based form ...

Find all code that is not protected by a Try Catch

I am doing a code review of a large SharePoint project. One thing that I need to check is that there are no unhandled exceptions. We allow exceptions to "buble up", so in many cases they will not be caught before the UI layer (web part). Is there a way to get a list of all methods that have code outside a try catch block? ...

Sharepoint deployment packaging (simplest!)

Hi all, I'm looking for a simplest and effective method of sharepoint deployment? Supposedly, you've a package and you deploy no need to separately move the dependencies. There is a tool SharePoint Content Deployment Wizard but I'm unlucky to get any help from it. It successfully creates a export package but when I import the package on...

32bit binaries on sharepoint 64bit, An attempt was made to load a program with an incorrect format.

I have a lot of sharepoint web parts etc all of which are compiled for any cpu, they run fine on 32bit sharepoint but moving to server 2008 in 64bit causes the following error: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) From my reading they should all work fine? ...

problem with SPQuery for whole sitecollection?

HI, Can we use SPQuery to query whole site collection. Means I have a list which is in different site so is it possible to use SPQuery for that or I need to use SPSiteDataQuery. I know SPSiteDataQuery would work in this case but I don't wanna search all the lists as I know the name of the list and in SPSiteDataquery i can't mention the...

Importing and Exporting atendees in a Sharepoint Meeting Workspace (WSS 3.0)

We're using workspaces (tied to calendar entries) for our meetings. It looks like attendees have to be added individually, on a per meeting basis. Is there an easy way to import the attendees (from excel, or a text list). Importantly we'd like to import them all at once, not have to add each person individually to each meeting. A sim...

Sharepoint calendar items - Automatic Permissions possible? (WSS 3.0)

Within sharepoint you can set permissions on a calendar basis, and on a per-item basis. Essentially, there are 2 kinds of calendar items we have, both with different permissions. We'd like to simplify the permissions setting process, ideally so its automatic. Is it possible to have the per-calendar-item permissions set automatically,...

Sharepoint data view web part

Hi, I'm looking for a good data view web part that will allow me to specify; The connection string in web.config Alternatively, take the connection string from a web part connection The SQL to execute, taking parameters from a web part connection And feature Paging and sorting Filtering Any suggestions? Cheers Tony ...

SharePoint writing content to a site navigation programmatically

Hi, For a certain sub site in sharepoint I want to add a new section to the navigation on the left handside. For example "My Section". Under "My Section" I wish to some links but I want to control the hml output of the links. For example add my own classes. How would I go aboutdoing this? ...

Hiding Groupings Only Containing 1 Element (in Sharepoint)

I have a list in Sharepoint that contains a few hundred groupings. Some groupings only contain 1 row, and in those cases, I want to removing the grouping header above. To do that, I think I need to hide all of the code (below) using jQuery. I want to make the logic so that it looks for the portion ">‎(1)", and if it finds that, it hid...