web-part

Web Parts and Offering Files For Download?

Hi, Can anyone suggest the best way to offer a file for download within a SharePoint web part? The file will be dynamically created on request, but I still need to end up with the standard page being displayed as well as the file being downloaded. Cheers Moo ...

Datareader skips first result

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....

Custom Webpart doesn't show up in Sharepoint 2010 after deploying from VS2010

Hello all, Full disclosure: Sharepoint development noob. I currently have 3 custom web parts built in an SP solution in VS2010. I build and deploy my project out to our local Sharepoint dev box. However, after deploying, only the first 2 custom web parts show up under the Custom category in the "insert web part" ribbon section. I checke...

How can I specify a custom gallery Group when creating WSS 2.0 web parts?

I've created a custom Sharepoint 2007 web part with WSS 2.0 (using the Microsoft.Sharepoint WebPart class and a DWP file). I deploy it using a CAB file and the stsadm 'addwppack' command, and it gets added to the server gallery under the "miscellaneous" group. How can I make the web part install to a custom group, such as "Company Web P...

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Hi, I have a piece of code that works in a VS.C# project, but when this code is part of a webPart in Sharepoint, it throws an error. ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true; HttpWebRequest httpWebRequest = (HttpWebRequest)HttpWebRequest.Create(validateUrl); Http...