Do you mean attachments (aka attach files to an external sharepoint site)? If so here is a code that should do the trick for you:
WebClient loClient = new WebClient();
loClient.Credentials = new NetworkCredential(Utility.GetConfigKey("SharePoint ACCOUNT"), Utility.GetConfigKey("SP Account Password"), "Domain Name");
byte myDataBuffer = loClient.DownloadData(new Uri(Utility.GetConfigKey("SharePoint URL") + lsFileName));
// Clear all content output from the buffer stream
// Add a HTTP header to the output stream that specifies the default filename// for the browser's download dialog
Response.AddHeader("Content-Disposition", "attachment; filename=" + lsFileName);
// Add a HTTP header to the output stream that contains the// content length(File Size). This lets the browser know how much data is being transfered
// Set the HTTP MIME type of the output stream
Response.ContentType = "application/octet-stream";
// Write the data out to the client.
lblFormError.Text = "Unable to add document to sharepoint list location";
My company needs to simplify the posting of documents to Production(public) and Archives(non-public) folders. When a document is published to Production it is linked to a hard coded URL and therefore always has the same name titled (i.e. Help Desk Answers) without a version number attached. However, we need a static number attached to the document that will go to the Archive folder as well. An example would be that I create the first "Help Desk Answers" document for the month of October and then I create a second "Help Desk Answers" in November. I need to have the Archives(non-public) folder reflect that there are two "Help Desk Answers" documents now, while the document in Production(public folder) is still called just "Help desk Answers" and is the most recent document in Production. My first thought is to some how customize the "Send To" menu but if there is a better idea out there please let me know Thanks for your help!
This EBook is designed to give SharePoint developers an introduction and overview of the features in Microsoft® SharePoint® Designer 2010. It begins with a brief introduction and a summary of what's new, followed by a more in-depth discussion of the most pertinent features of Designer 2010.
With the help of this book we can solve the our problem.
you can download this book from this url
I was created registration page using asp.net, that page integrated to share point server. when we execute that page(registration)in share point server that values stored to separate database. How to create database in share point(2010). I need to create database for registration page.
you can create separate DB while creating the Web Applicaiton in SharePoint server 2010 . There is an option called Create Database in Central Administration 2010 otherwise please check it once while creating the Web Application from Central Administration otherwise you can directly select the particular web app and create the db from the Central Administration .
I have a external database which is connected thru BCS from sharepoint . external list being used to display external items but when i ct i click on external item picker it shows only 200 items but i would want the limit increased to 500 or some other number. how to modify it. pls let me know.
When I use workflow and infopath in Sharepoint list, I have an issue that make my system run too slow. After running task of each user, "System Account" also run a version task automatically.
So I want only user run. Please help me...
Cause I can not upload picture to internet so I paste the description. Here is all version of workflow.