.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Enabling attachments with DataFormWebPart on Blog template

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#
Hey there

I'm running SP 2007 with hotfix 953749 installed.

What I'm trying to do is enable file attachments in NewForm.aspx and EditForm.aspx on a Blog site template.

I followed the instructions in http://support.microsoft.com/kb/953271 and yet the attachment field is not shown.

Please your guide.

Thank you.

View Complete Post

More Related Resource Links

Attachments in Sharepoint Blog

Hi there I'd like to enable attachments in sharepoint blog entries. Attachments to list items are enabled in Advanced Settings, but still I do not see the option to attach a file when I open a new post. What can I do to enable it? Thank you.

Blog template and security

I created a blog template with SP 2010. Anonymous access is enabled. Home page is accessible by all users but when the user clicks on a post title, security window pops up and asks for credentials. In short, post details are not visible to anonymous users. Anyone knows why?

Enabling Enterprise Key Words for a custom list template

Hi, I have developed a list template in the usual manner, using features that create site columns, content types and then a list template that leverage's the content type.  I have a problem with Enterprise Keywords.  As this is simply a Yes/No type activation, I take it this column is slightly different from normal site columns.  When I first extracted my list template from a site with keywords activated, all I can see is that the keywords column has been added to the columns in the template.  There doesn't seem to be any setting that indicates that Managed Keywords is activated.  Regardless, I can create list instances from my template fine and the managed keywords column appears as expected.  The strange behaviour is that when I upload a new document and enter keywords for it, although these keywords are entered into the termstore, when I next view the document properties, the entries have dissapeared.  Is there something I need to do through code for this.  My problem is, as I want this setting to be enabled for a list template, How else do I activate the setting considering I cannot run code from a list template?  I hope someone can help, Cheers,   Amit

Customizing blog. "Save as template" produces broken template



I have a problem in such simple scenario:

1. Create new site with BLOG template

2. Save this site as template, eg BLOG_V2

3. Create new site from new template

4. Try to make new template from new site - I get "Error exporting the list named "Posts" at the URL: Lists/Posts"

And I also see that list "Posts" is broken in strange way.

Powershell script:

$site = get-SpSite .....

$web = $site.OpenWeb(.....)

$web.Lists |Select Title, DefaultViewUrl

PS C:\Users\AYuryshev> $web.Lists |Select Title, DefaultViewUrl

Title                                   DefaultViewUrl
-----                                   --------------
Categories                              /blog_v3_2/Lists/Categories/AllCateg...
Comments          &

Blog Template Customization



I just created a new site by selecting Blog template. The blog is created. Now i want to modify it as per my needs, For example i wanted to add a field in comments column "URL", I added the field in list and its done.

Now the point where I am stuck is, i want to bring that URL behind the comment maker's name. just like in all other blogs!

As I see the post.aspx page (/List/Posts/Post.aspx) It has three webparts, 1. which displays posts, 2. which displays comments, 3. which displays comments form.

So how may I modify the second webpart which displays Comments ?


"Save Template as" SharePoint 2010 OOB Blog Template



I create a template based on the SharePoint 2010 OOB blog template, and it works fine.

When I create a site based on that template, the Posts list default view is 5 times!

I found this link, but the problem is not resolved.



Customizing the SharePoint 2010 Blog Template


I want to apply branding to a sharepoint 2010 blog site which is a sub site of our internet. I'm trying to achieve this by creating a custom blog site template based on the original blog site template. So I followed the following blog post.


And I got a copy of the blog template files from "C:\...\14\TEMPLATE\SiteTemplates\blog", modified the files and put in to the "SiteTemplates\<custom template name>" folder.

I can see a new site template has been created but every time when I create a web site based on my custom template it uses the original blog template files for provisioning (for ex: default.aspx).

Is this the correct way to achieve this? Please let me know if I'm doing sth wrong here.

Thanks in advance.


Enabling Users to Maintain SharePoint Content

When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Some areas of the site usually contain less-dynamic information. Internal memos and corporate policies are common examples of this information. One option for this information is to post these documents in a document library. Documents in a library are often stored in a few different formats: Word, Acrobat (PDF), or HTML. Each of these formats has its drawbacks.

Enabling Users to Maintain SharePoint Content

When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

SmtpClient and Locked File Attachments

Got a note a couple of days ago from a client using one of my generic routines that wraps SmtpClient. Apparently whenever a file has been attached to a message and emailed with SmtpClient the file remains locked after the message has been sent. Oddly this particular issue hasn't cropped up before for me although these routines are in use in a number of applications I've built.

Dropdown Event (Template Field)



I have grid view control that includes a dropdown control in a template field.

I wish to execute some code when the value is changed in the dropdown list.  Can't figure out how to capture this event though?

Any suggestions?

Empty template support for GridView


Just add the following to support the empty text in the GridView.


protected override void RenderContents(HtmlTextWriter writer)
	if (Extender.AdapterEnabled)
		GridView gridView = Control as GridView;
		if (gridView != null)
			if ((gridView.Rows.Count == 0) && !String.IsNullOrEmpty(gridView.EmptyDataText))
				writer.WriteAttribute("class", "AspNet-GridView-Empty");

Example of tag to be added to the css
.NiceGridView .AspNet-GridView div.AspNet-GridView-Empty
	border-width: 1px;
	border-style: solid;
	border-color: #

Extreme ASP.NET: Text Template Transformation Toolkit and ASP.NET MVC


The Visual Studio T4 code generation engine lets you parse an input file and transform it into an output file. We give you a basic introduction to T4 templates and show you how ASP.NET MVC uses this technology.

Scott Allen

MSDN Magazine January 2010

Toolbox: C# JavaScript, Eric Lippert's Blog, And More


Writing your JavaScript code in C# and having it converted, Eric Lippert's programming blog, and reading up on T-SQL 2008.

Scott Mitchell

MSDN Magazine January 2009

Toolbox: Static Analysis Tools For .NET, Matt Berseth's Blog


This month we take a look at FxCop and other tools that enforce your design rules, along with jQuery.

Scott Mitchell

MSDN Magazine December 2008

Toolbox: Online Scheduling, Jeff Smith's SQL Blog, Easy Regular Expressions, And More


This month Scott looks at improving development skills, writing regular expressions, a web scheduling control and a SQL tips blog.

Scott Mitchell

MSDN Magazine November 2008

Toolbox: Realistic Test Data, Dare Obasanjo's Blog, Color-Coding Tools, and More


This month Scott shows how to generate realistic test data, visits Dare Obasanjo's blog, and demonstrates color coding code for better readability.

Scott Mitchell

MSDN Magazine October 2008

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend