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

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT
Post New Web Links

How to Post Code To Your Blog and other Religious Arguments

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
If you've got a programming blog, chances are you'll want to post some code snippets. Posting code sounds easy but it's surprisingly tricky if you consider all the ways that people will be reading your blog. There's a number of ways. Here's a few and their pros and cons . Copy Paste from your IDE (like Visual Studio, for example) If I copy paste directly from VS into my editor of choice, Windows Live Writer, I'll get a <pre> section. using System; namespace WindowsGame1 { #if WINDOWS || XBOX     static class Program     {         /// <summary>         /// The main entry point for the application.        ...(read more)

View Complete Post

More Related Resource Links

Sharepoint Blog Post List Renaming in onet.xml


Ihave created a Site definition and added a Posts Listview in the same.

<View List="$Resources:core,lists_Folder;/$Resources:core,blogpost_Folder;" BaseViewID="10" WebPartZoneID="Left" WebPartOrder="1"/>

This list is created using my own schema.xml which i have copied from the Blog site template.

I wanted to rename the title of the list [not Title field] which is coming to be Posts right now.

Is there anyway to do it?

Any help appreciated


Email this Post in SharePoint Blog is not working for Lotus Notes 6.5


I have tried "Email this Post" in a SharePoint blog. I got the email as desired, but the doesnot resolve the post.

Here are the link examples:

I got the link in email as mentioned below:


But i should get as below to resolve the link:


Any ideas?


forgot to post code in previous post

Sorry about that...here's the code:<%@ Language=VBScript %> <% option Explicit %> <% 'Response.Buffer = true %> <!--#include file="../adovbs.inc"--> <!--#include file="../ConnectionString.asp"--> <!--#include file="SqlFormattingFunctions.asp"--> <% 'If Session("bolAuthenticated") = False Then ' Response.Redirect "AdminLogon.asp?" 'End If dim oConn, oRecSet,strConn,oCmd, LanguageChosen,Upload dim action,Pid ,strSql,ID,CompareID,I,OldLogoName,uploadPath,StrConnNews dim Title,FirstHeader,databaseTable,NumElements ' Template for the administration of a database table ' there are four sections ' 1. The display of the information with a edit or delete option ' 2. Add , this has the processing and the form ' 3 Edit ' 4 Delete 'These are the items that you may change ' we then set the tableName and the headers Title = "Edit Room Rates Page Text" FirstHeader = "Edit Room Rates Page Text" DatabaseTable = "rates_page_text" const Name = 1 const value = 2 dim element(3,15) dim TextAreaRows(3), TextareaCols(3) ' rows and cols for three text areas 'Now we set the field names and types NumElements = 2 ' the array starts at 0 which will always be the ID We then make NumElements the last n

Embed a video in blog post

How to embed a video in my blog post, in SharePoint 2010?

sp_MSadd_logreader-history has too many arguments specified code 1007

I installed a new sql 2005 server and set 4 publications with subscription. The replication is working but looks slow....It means when I change a value into a table the transaction take more than 30 secondes before it came into the synchronisation status monitor.   I saw that for each subscription my logreader agent could not start ...I have the following message.   MessageExecuted as user: 280db02\280db02sql. The replication agent encountered an error and is set to restart within the job step retry interval. See the previous job step history message or Replication Monitor for more information.     Message-XCMDLINE 0   -XCancelEventHandle 00000000000007B4   -XParentProcessHandle 00000000000003C82007-04-20 09:54:32.109 Parameter values obtained from agent profile:   -pollinginterval 5000   -historyverboselevel 1   -logintimeout 15   -querytimeout 1800   -readbatchsize 500   -readbatchsize 5000002007-04-20 09:54:32.109 Status: 4096, code: 20024, text: 'Initializing'.2007-04-20 09:54:32.109 The agent is running. Use Replication Monitor to view the details of this agent session.2007-04-20 09:54:32.125 Status: 16384, code: 20007, text: 'No replicated transactions are available.'.2007-04-20 09:55:37.125 Status: 16384, code: 20007, text: 'No replicated transactions are available.'.2007-04-20 09:55:37.125 Status: 0, code: 22037, text: 'The last step did not log any message!'.20

MOSS 2007 - Error Code 500 after click on Ok button on a post reply with an accent charactere in the



I have this strange behavior in my test and prod environment but not in my Dev.

The case is as following:

  1. Someone create in a discssion list a topic with an accent charactere in the title.
  2. Someone else click on the reply button. then he write the post.
  3. Then he click on the Ok button and a code error 500 page is loaded.

In the same discussion list If the title of the topic does'nt contain any accent charactere it works well !

Regional settings of the site collection are strictly identical on Dev, test and pro environment.

Does someone have any Idea ?

Thanks in advance for your answers



Enable rating on Blog Post



im looking for enabling rating fonctionnality for Blog in sharepoint 2010.


Pls help to post the code to get data from sqldatasource into a list


I have this code but dunno how to get the data from the existing sqldatasource1 into the list. Pls help to post the code. 

ie the code for this line:        ' Get Data from Database and Fill DataReader and we will pass values to List

The sqldatasource1 returns only one field of data called holiday which is a date field. Thanks


<%@ Page Title="" Language="VB" MasterPageFile="~/00_MasterPage.master" %>

<script runat="server">

    Private Function GetPublicHolidays() As List(Of DateTime)

        Dim list As New List(Of DateTime)()

        ' Get Data from Database and Fill DataReader and we will pass values to List

    End Function


    <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>

SharePoint Blog remove links at end of post (posted by, Category, permalink, email this post, Commen


I have googled and searched for a way to change the links (remove and or edit) shown below:

Posted at 4:05 PM by THETEST\Administrator | Category: Category 1 | Permalink | Email this Post | Comments (0)

I got as far as changing the views for the Posts list, I un checked the Comment field. It still shows up, so I opend all of the views and unchecked the Comment field and it is still there. Do i need to approve the view? I have tried to see where the view is pending but I cannot.

Anyone have any ideas that can help me?

Thanks for your help.

Some Read/Write Properties Are Read-Only in Sandboxed Solutions (Blog Post)

Review a list of properties of the SPSite, SPWeb, and SPUser classes that are read/write in farm solutions are read-only in sandboxed solutions.

Visual Studio 2010 SharePoint Developer Tools Overview Presentation (Blog Post)

Mike Morton, Program Manager on the Visual Studio team, presents a link to his session at the recent Microsoft MVP Summit.

Link to launch MS Word for editing a blog post


Is there anyway you can launch Word from the browser to edit a particular blog post? I've created a blog site and I know how to use MS Word to publish to that blog site.

I know there's button on the Word ribbon saying "Open Existing" that will allow me to select and edit an existing post, but I'd like to approach it in reverse.

If I'm on the site browsing on different posts, I'd like a button or a link on that page. Clicking on that link, I'd like Word to automatically open up that particular blog post in edit mode. I think it should be possible, but just not sure how. On the main page, there's link called "Launch blog program to post" which opens up Word to post a new blog.

Any suggestions?



Using LINQ-to-SharePoint with Choice Fields (Blog Post)

Ricky Kirham describes a problem (and a solution) when using the LINQ to SharePoint provider to perform your SharePoint data queries in server-side code.

Learn How To Build a Silverlight App for PWA (Blog Post)

. . . which is, after all, a SharePoint application. Get a basic understanding of the SharePoint and Silverlight in this training course that includes 30 hands-on labs.

How to create a Blog using code in Sharepoint 2007


Hi All,

  I have a requirement to create a Blog in Sharepoint 2007, how to create one using C# code. any help is appreciated.




Code Optimized Web Development Profile (VS 2010 and .NET 4.0 Series)

When you first run VS 2010 it prompts you to select an IDE profile to use. The profile you select will configure how tool windows are displayed/docked in the IDE by default and set the default keyboard shortcuts. You can then customize any of these settings by using the Tools->Options menu within the IDE and then override/change them. You can also later reset your profile and pick a different one by choosing the Tools->Import and Export Settings menu command.

Free Code Snippets - ASP.NET

You Can Find Useful ASP.NET Related Posts on the above link.
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