Click here to Skip to main content
14,669,072 members
Home » Discussions » SharePoint
   

SharePoint

 
AnswerRe: In infopath2010 how to clear the text box value Pin
AmirHashemZadeh15-Dec-11 1:29
MemberAmirHashemZadeh15-Dec-11 1:29 
GeneralRe: In infopath2010 how to clear the text box value Pin
javad andamani4-Jan-12 2:25
Memberjavad andamani4-Jan-12 2:25 
Questionthe item 'mysharepoinit site url' cannot be found. rsitemnotfound Pin
rameshdontagani2-Dec-11 17:57
Memberrameshdontagani2-Dec-11 17:57 
AnswerRe: the item 'mysharepoinit site url' cannot be found. rsitemnotfound Pin
DigiOz Multimedia5-Dec-11 4:16
MemberDigiOz Multimedia5-Dec-11 4:16 
Questioncopy doc to a different library using a timer job with immediate scheduled Pin
nicetohaveyou26-Nov-11 20:59
Membernicetohaveyou26-Nov-11 20:59 
AnswerRe: copy doc to a different library using a timer job with immediate scheduled Pin
Not Active26-Nov-11 21:04
mentorNot Active26-Nov-11 21:04 
QuestionSharepoint 2010 External list Pin
Gautam21-Nov-11 19:02
MemberGautam21-Nov-11 19:02 
AnswerRe: Sharepoint 2010 External list Pin
DigiOz Multimedia5-Dec-11 4:28
MemberDigiOz Multimedia5-Dec-11 4:28 
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:

try
{
    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
    Response.Clear();
    // 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
    Response.AddHeader("Content-Length", myDataBuffer.Length.ToString());
    // Set the HTTP MIME type of the output stream
    Response.ContentType = "application/octet-stream";
    // Write the data out to the client.
    Response.BinaryWrite(myDataBuffer);
}
catch
{
    lblFormError.Text = "Unable to add document to sharepoint list location";
}


Pete Soheil
DigiOz Multimedia
http://www.digioz.com
QuestionHow do I Customize Workflow and "Send To" menu in Sharepoint 2007? Pin
capturetheflag18-Nov-11 2:35
Membercapturetheflag18-Nov-11 2:35 
AnswerRe: How do I Customize Workflow and "Send To" menu in Sharepoint 2007? Pin
Not Active18-Nov-11 18:00
mentorNot Active18-Nov-11 18:00 
QuestionEmpty SharePoint Recycle bin using vbscript/javascript/vba Pin
Rodbh0810-Nov-11 9:05
MemberRodbh0810-Nov-11 9:05 
AnswerRe: Empty SharePoint Recycle bin using vbscript/javascript/vba Pin
Not Active16-Nov-11 3:18
mentorNot Active16-Nov-11 3:18 
GeneralRe: Empty SharePoint Recycle bin using vbscript/javascript/vba Pin
Rodbh0816-Nov-11 3:32
MemberRodbh0816-Nov-11 3:32 
GeneralRe: Empty SharePoint Recycle bin using vbscript/javascript/vba Pin
Not Active16-Nov-11 3:45
mentorNot Active16-Nov-11 3:45 
GeneralRe: Empty SharePoint Recycle bin using vbscript/javascript/vba Pin
Rodbh0816-Nov-11 3:47
MemberRodbh0816-Nov-11 3:47 
GeneralRe: Empty SharePoint Recycle bin using vbscript/javascript/vba Pin
Not Active16-Nov-11 4:03
mentorNot Active16-Nov-11 4:03 
AnswerRe: Empty SharePoint Recycle bin using vbscript/javascript/vba Pin
Manishdeveloper30-Nov-11 11:35
MemberManishdeveloper30-Nov-11 11:35 
GeneralRe: Empty SharePoint Recycle bin using vbscript/javascript/vba Pin
Manoj_Leo14-Dec-11 21:45
MemberManoj_Leo14-Dec-11 21:45 
QuestionHow to create separate database in share point? Pin
muralikrishna5310-Nov-11 1:28
Membermuralikrishna5310-Nov-11 1:28 
AnswerRe: How to create separate database in share point? Pin
ssivarao23-Nov-11 0:35
Memberssivarao23-Nov-11 0:35 
QuestionModify BCS Filter Web Part retrieves 500 items instead of only 200 items Pin
bakku v4-Nov-11 7:01
Memberbakku v4-Nov-11 7:01 
AnswerRe: Modify BCS Filter Web Part retrieves 500 items instead of only 200 items Pin
ssivarao23-Nov-11 0:40
Memberssivarao23-Nov-11 0:40 
QuestionWSS 3.0 site backup with stsadm Pin
nainakarri2-Nov-11 20:15
Membernainakarri2-Nov-11 20:15 
QuestionWorkflow with infopath Pin
phamhoangvu25-Oct-11 23:09
Memberphamhoangvu25-Oct-11 23:09 
QuestionCreating ddlb of external data in an external list Pin
R. A. Santiago18-Oct-11 17:16
MemberR. A. Santiago18-Oct-11 17:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.