It's not a headache until you can do without it, but to use the sharepoint's attachment controls can be a pain in you know what. Try the solution below and save your self from same.

~Adding attachment Functionality in a Web Part.

//Attachment Controls

//Add the Attachment Controls in the webpart, the attachment upload is the //control to upload and AttachmentsField displays the list of all attachments

AttachmentButton btnAttach;

AttachmentUpload uploadAttach;

AttachmentsField fieldAttach;

HiddenField hDeleteAttachs;

protectedoverridevoid RenderWebPart(HtmlTextWriter output)

{

//Add the javascript which will handle the list of attachments that have been //marked as deleted and add them to the Hidden Fiels, Actually its adds the //GUID of the Attachment(the delete attachment function use that)output.Write("'<'script'>'");

Stephen Elop, president of Microsoft's $18.9 billion Business Division, this week reiterated a bold prediction about the future of Microsoft's software-as-a-service business. Microsoft foresees half of Exchange, SharePoint, and Dynamics CRM revenue coming from online versions of those products within five years.

Elop was in New York meeting with analysts and customers, following Microsoft's announcement three weeks ago of general availability of Exchange Online and SharePoint Online. Microsoft's Office Communications Online service goes into testing early next year. Its Dynamics CRM Online has been available for several months.

If you put Elop's prediction of 50% of Exchange/SharePoint/CRM revenue coming from online services into the context of Microsoft's current business, Microsoft's cloud should become a billion-dollar operation in short order. SharePoint alone is a $1 billion business today, growing at 35% annually. At that growth rate, SharePoint in the cloud would be a $1 billion business within three years, if Elop's forecast holds true. Add in revenue from Exchange, Dynamics CRM, Office Communications, and other online services and Microsoft gets to the $1 billion cloud revenue mark within, say, 24 months.

Whether Microsoft can deliver on its ambitious cloud revenue projection remains to be seen, but it's not the first time I've heard the "50% in five years" forecast. Senior VP Chris Caposella made the same projection earlier this year, so company management is on the same page. Given the sheer size of Microsoft's application business -- the Business Division is expected to grow to $20 billion this fiscal year -- even modest success will translate into a rainfall of cloud revenue.

Windows SharePoint Services Project (WSP) Import
This will automate the manual task of creating Windows SharePoint Services solution package files. Previously, to create a solution package file, a developer had to use the Makecab.exe console application that is included in the Microsoft Cabinet Software Development Kit (SDK). Makecab.exe requires specifying the Diamond Directive File (.ddf) that contains a list of all the files to include in the package. Much of this will be automated.

Visual Web Part Designer
A new WSYWIG designer will exist for authoring Web Parts. The designer will also load a user control as a web part for SharePoint. This seems to be a more tightly integrated version of the widely-used SmartPart, which is a Web Part that allows hosting of ASP.NET User Controls in SharePoint.

Event Receiver Wizard
Adding Event Receivers and connecting them to Sources can be done visually through a wizard.

Workflow Integration
A new ASPX Workflow Initiation form for Workflow Project will be added. Workflow initiation forms will have a visual designer.

Packaging Editor
A new Packaging Explorer will exist that supports editing Packaging and structuring the SharePoint Features and WSP file.

It is been a long time that I had penned down on Sharepoint Tip, One of our prestigious Client wanted me to display Current Logged on User Name, So here we go on Some Useful TIPS, The restriction was not to use the SharePoint Control i.e '' ''. But we can't write server-side code in SharePoint ASPX pages. The way I get around this limitation is to code XSLT and make it do what I want.

1. Insert a Data View Web Part on the Page. From any of the Lists drop a Title column on that dataview.

2. Click on Data > Conditional Formatting

3. Select any data value and Click on Create

4. Click on Show Content under conditional formatting.

5. Create a Condition that says: Title EQUALS [Current User] and click OK back to the Design view

Here is the extract from SharePoint's official blog, we hope to see more of Azure and Wss in coming days.

In the Azure Services Platform, a number of developer services were mentioned including Microsoft SQL Services, Microsoft Dynamics CRM Services & Microsoft SharePoint Services. Keep in mind that this not the same as Windows SharePoint Services 3.0 which shipped in Windows Server. Microsoft SharePoint Services is a developer service that will be available as part of Azure in the future. (Possibly the infrastructure on same line will be available for silveright in next version of sharepoint)

The keynote also emphasized Microsoft’s investment in cloud applications that developers can extend and customize. Specifically, David Thompson (VP of Online Services) talked about Microsoft SharePoint Online and demonstrated how developers can write code against SharePoint Online web services as well as make customizations with SharePoint Designer. For example, using the Data View Web Part to surface data from an external source – this could be a web service living in Windows Azure. In fact, later in the week at PDC, there’s a breakout session that walks through the different ways SharePoint Online can be customized.

Here are answers to a few frequently asked questions:

What is Microsoft SharePoint Services in Azure?

In the future, developers will have access to SharePoint functionality in the Azure Services Platform (“Microsoft SharePoint Services”). With the flexibility to use familiar developer tools like Visual Studio, developers will be able to rapidly build applications that utilize SharePoint capabilities as building blocks for their own applications. Developers can expect a breadth of SharePoint capabilities across the spectrum of on-premises, Online and the Azure Services Platform.

Where can I find more information about Microsoft SharePoint Services in Azure?

We have not announced any further detail or release dates. We will release more information about this in the future.

How do developers get ready for Microsoft SharePoint Services?

Keep developing on SharePoint technology (MOSS, WSS, SharePoint Online)! You can learn more about SharePoint Development here.