I have a fairly complex SQL query that pulls different types of products from a database based on a customer ID. It pulls three different types of products, identified by their unique identifier number ranges (i.e., IDs 1000-1999 are one type of product, 2000-2999 are another, and 3000-3999 are yet another).
SELECT b.fldMachineName, m2....
I have some code which I am attempting to use to "rollback" a sharepoint document and it's metadata properties to a previous version using ootb version control and the SharePoint API. Here is a sample of my code:
int versionCount = item.Versions.Count;
if (versionCount > 0)
{
// this only restores properties
item.Versions.Restore(1);...
Hi,
I have a textbox and I have set required validationcontrol on it on click of a button.
<asp:TextBox runat="server" ID="name" Width="120"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvname" runat="server" ControlToValidate="name" ErrorMessage="Name is required" Display="Dynamic" />
</td>
but the problem is when I am clic...
I am using sharepoint 3.0 and I do the following:
1. Create a user in the server
2. Go to sharepoint site and associate a group with this newly created user (I could not use common name of user to search for the user, I had to use the login name :S)
3. Create an item in one of the list and use this user
4. Login to the site with this use...
I am trying to add OneViewCalendarWebpart to my site. I am getting the following error when I try to add the webpart from the gallery.
Server Error in '/' Application.
Value cannot be null.
Parameter name: g
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for ...
Hi,
I got to store some user specific data (string) in my sharepoint webpart.I guess hidden webpart properties should do the trick. Tried with the following attributes on webpart property:
[WebBrowsable(false)]
[Bindable(true)]
[WebPartStorage(Storage.Personal)]
[Personalizable(PersonalizationScope.User)]
But i observe in the webpart ...
I want to add some rules to SSP Audiences and I can't access to Active Directory Groups in this rules.
When you want to add a rule you have 2 option: 1-User, 2-Property. I am using User option so I have to choose "Reports Under" or "Member of".
When I choose Reports Under I can't find any AD Group in search popup.
I tried Full Import ...
Hi All,
I am facing a very strange issue. I have a SharePoint webpart that displays an asp.net tree view. It takes tree depth from a drop down. To improve performance of the tree view, i am setting the PopulateOnDemand property to true for the last level of the tree depth.
For example, if i have a total of 10 levels in the data and the...
I am trying to show events from a calendar in the main site to a calendar in a sub-site of the main site (or vice-versa)...I can't alter any server files or use custom-built web parts...is there anyway to do this w/ OOTB moss 2007?
...
Hi there, currently I'm faced with a LOT of static HTML documents to convert to SharePoint (MOSS 2007), basically they can remain static, but need to be migrated into the SharePoint site with the SharePoint look and feel (each page needs to be updated with the SharePoint headers and footers at a minimum), are there any tools out there th...
Hi,
I have a custom webpart and when it first renders I want to give link to open modify shared webpart properties as we generally get when we open OOB webparts like Content editor or XML webpart? Any one is having idea on this ...I was using this but when I m clicking on it, its showing following error
I m using this:
LiteralControl ...
Given a list of Workspaces:
http://server/managed_path/sitecoll/basic
http://server/managed_path/sitecoll/blank
http://server/managed_path/sitecoll/decision
http://server/managed_path/sitecoll/multipage
http://server/managed_path/sitecoll/social
How can I call DoesUserHavePermissions() - or something similar - to find out if the curre...
I have a web application in SharePoint that has been extended to another zone (Extranet). The access URL for the default zone is http ://server1, and the URL for the extranet zone is https: //www.server1.com.
Now, when I access the site via the extranet zone, I find that SPContext.Current.Web.Url returns http ://server1. I would have ex...
Hello everyone,
I've created a custom Web Part for SharePoint that interacts with SQL.
Everything worked fine on my DEV server.
After I moved the WebPart to the client's server I started having problems.
I get Error Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection when I'm trying to open the...
Hi everyone, I have a problem with my sharepoint site, when I go to the home page the log in box keeps popping up, I have to click about 3 to 4 times before it goes away, and it does that everytime I go to the home page, all the other pages does not do that.
Can any one please help me out here.
Thank you.
...
Okay, here is the scenario...
I have created a subfolder in a document library, and when an item is added to the document library, i want to do some processing on the document and then move the item to the subfolder, say MySubFolder. For that purpose, i will be using this statement
SPListItem folder = this.workflowProperties.List.Folder...
Hi,
I have a webpart that displays HTML output within the RenderWebPart method and also creates controls within the CreateChildControls both methods are declared as overridden in the webpart.
My question is how to I control the order of the display of the controls and html output?
At the moment I call EnsureChildControls() within the ...
how to upload the xml file in the sharepoint library
...
I'm developing on a machine that is not the MOSS Server. I have Visual Studio and WSP builder installed. WSP builder is awesome because it can automatically create WSP Packages from within the Visual Studio IDE. However it seems the deploy functionality only works on the local dev machine.
Is there an easy way to deploy a WSP package t...
Hello,
I know a similar question has already been asked, but that retrieves all the items for Choice field using Sharepoint Object Model. I dont have object model available to me. I want to do this using CAML or something. I couldnt figure out a CAML query to get all the items for a choice field.
Any pointers in the right direction wil...