Praveen kumar

75 Followers
5 Blog Followers
1 Blog Reviews
Following: 83
Following Blogs: 6

Latest Activity

Loop through all webs faster way in SharePoint 2010

Praveen kumar posted an article on - Jan 21, 2012, 4:47 am
We are learning so many concepts each day and implementing/writing lot of code. But, we might not spending time to write the code more efficient way or more cleaner way. So, this post is again related to how to write code efficient in SharePoint 2010. :) So far, till SharePoint 2007 to loop throug...
Comment - Like

Download Visual Studio 11 Developer Preview - now with SharePoint developer tools

Praveen kumar posted an article on - Jan 10, 2012, 9:11 pm
Visual Studio 11 Developer Preview is now available with the SharePoint developer tools and downloadable to public. Earlier version only has the Windows 8 stuff as a new thing along with some user experience improvements. But, in the new version it has the SharePoint developer tools added. So, as...
Comment - Like

Script to install SharePoint 2010 in Windows 7

Praveen kumar posted an article on - Dec 12, 2011, 11:20 am
You are ready to install SharePoint 2010 in Windows 7? Then you are at the right place. For the installation you have to download all required and follow the complete MSDN article and then execute step by step. If there is something which do all the steps for you then how it is? good right? Yah! the...
Comment - Like

How to find Inactive computer accounts in active directory?

Praveen kumar posted an article on - Dec 12, 2011, 11:05 am
Do you know how can we do this? Either we query the AD to get the information by writing code in C# or manually check the AD for the inactive accounts. But, there is another simple way which will get this information without any big efforts. Yes, using Powershell script. $COMPAREDATE=GET-DATE $Numbe...
Comment - Like

Open PDF files directly in browser SharePoint 2010

Praveen kumar posted an article on - Dec 12, 2011, 3:53 am
Here is how you can tell SharePoint 2010 site to open the PDF files in the browser instead of prompting the user to save or open the PDF. This will be a great option to the most of end users. This needs simple Powershell scripting run on the server. Below is the code we should use: # # .DESCRIPTION ...
Comment - Like

ASP.NET 4.5 new features

Praveen kumar posted an article on - Dec 4, 2011, 9:34 am
The new version of ASP.NET 4.5 has many features integrated and there are many additions to the Visual Studio as well. I am really excited to see all of these features in hand.... These functionality improvements makes applications more easier and faster. The features are added in both Web forms and...
Comment - Like

Get TaskID in SharePoint custom Visual Studio workflows

Praveen kumar posted an article on - Oct 13, 2011, 10:08 am
When you are working with custom workflows implementing in Visual studio, you might be sending the emails when a task is created. By default SharePoint sends an email when a task is assigned to a user. But, if you want to customize the email body and subject, then you will use send mail activity and...
Comment - Like

The context has expired and can no longer be used–SharePoint and Reporting Services

Praveen kumar posted an article on - Oct 13, 2011, 9:49 am
Error: "System.Web.Services.Protocols.SoapException: Report Server has encountered a SharePoint error. ---> Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: The context has expired and c...
Comment - Like

Close SharePoint 2010 Dialog through code

Praveen kumar posted an article on - Oct 8, 2011, 7:31 am
In SharePoint 2010, the new feature is added is the dialog framework. With the help of this, user stays on the same page and able to get the information without go away from the current page. So, there are ways that we can close the dialog from the code in different ways. Below are the mainly used i...
Comment - Like

Exception of type 'System.Workflow.ComponentModel.WorkflowTerminatedException' was thrown

Praveen kumar posted an article on - Oct 8, 2011, 7:30 am
This is the error you see when you use the TerminateActivity in Windows workflow foundation/Visual Studio workflow development for SharePoint applications. The main reason behind why this exception is "We are terminating the current running workflow in middle and framework rises the exception that t...
Comment - Like

Links for 2011-08-23 [Digg]

Praveen kumar posted an article on - Aug 24, 2011, 3:00 am
Customize ReportViewerWebPart in C# and render in SharePoint Pages This is one of the major milestone I have achieved recently to customize the report viewer web part for SharePoint sites. The issue I was facing: the SharePoint site which I have developed was too complex and it exposed via 3 z...
Comment - Like

Customize ReportViewerWebPart in C# for all SharePoint Zones

Praveen kumar posted an article on - Aug 20, 2011, 6:33 am
This is one of the major milestone I have achieved recently to customize the report viewer web part for SharePoint sites. The issue I was facing: the SharePoint site which I have developed was too complex and it exposed via 3 zones. http://intranetsite, http://extranetsite, https://internetsite http...
Comment - Like

e-Filing of Income Tax Returns online INDIA

Praveen kumar posted an article on - Aug 20, 2011, 4:02 am
Yes, using the e-filing process one can file in tax returns just within a few clicks at any time of the day and that too without any hassles. Using this technology all you have to do is fill the form and submit it, online or offline. This is one of the best option available to us. It...
Comment - Like

Set Page Layout programatically for a publishing page

Praveen kumar posted an article on - Aug 7, 2011, 6:16 am
If you like to create pages in site through code then you have to set the page layout for the page. Below is the simple code which does that works well. private static void SetPageLyoutToPublishibPage() { using (SPSite site = new SPSite("http://SP2010Site")) { ...
Comment - Like

Set default Page Layout for a SharePoint site

Praveen kumar posted an article on - Aug 7, 2011, 6:04 am
Before reading this post, please take a look at this post: Get default Page Layout for a SharePoint site. Setting default page layout to a SharePoint site is very important. For example if you are trying to create a new site/web template in SharePoint and from it you like to create sites then do not...
Comment - Like

Get default Page Layout for a SharePoint site

Praveen kumar posted an article on - Aug 7, 2011, 5:44 am
Sometimes when you are provisioning sites through web/site templates you might miss one thing that setting default page layout for the web. In SharePoint 2010 especially you have to face this issue when you try to browse to the page "Page layouts and Site Templates" from site settings page. If there...
Comment - Like

Copy users from one SharePoint group to another group

Praveen kumar posted an article on - Aug 7, 2011, 4:55 am
This is one of the question raises from many people who has to copy users from one SharePoint group to another group. There is no direct way you can directly copy users through browser. So, it could be problem to site owners and administrators to add all users again. How to solve these kind problems...
Comment - Like

Activate only selected features while deploying a solution package in Visual Studio 2010

Praveen kumar posted an article on - Jul 16, 2011, 3:17 am
In Visual Studio 2010 SharePoint Developer Tools is what we use to develop quick solutions to SharePoint. With these tools we can quickly deploy into SharePoint environment as well. But, the only issue we see here is, if we are trying to deploy a package which contains a set of 5 features then all o...
Comment - Like

Permissions for document 'Move' operation in SharePoint

Praveen kumar posted an article on - Jul 16, 2011, 2:40 am
This might not be a super thing to blog but very important point to note. Through code I have tried to move a document from one document to another document by using file.MoveTo() operation. It was working very fine when I tested as I am administrator in the dev environment. But, when I have given t...
Comment - Like

Move and Copy operations in SharePoint Lists

Praveen kumar posted an article on - Jul 16, 2011, 2:21 am
Do not know how many of you aware of these important points. When you move a document/list item from one document library/list to another then the versioning will also be retained in that destination library/list. When you copy a document/list item from one document library/list to another the...
Comment - Like

How to hide a specific div in SharePoint 2010 dialog

Praveen kumar posted an article on - Jul 16, 2011, 2:19 am
The class in styles "s4-notdlg"[means don't show in dialog not+dlg] is what we have to use to not show a specific division on SharePoint 2010 dialog. For example, there is a banner in the header position of the master page and you do not want to show the banner in the dialog then the only simple...
Comment - Like

Upgrade SharePoint 2007 Visual Studio projects to 2010

Praveen kumar posted an article on - Jul 2, 2011, 5:29 am
This will be very helpful for the scenarios where we have custom solutions developed in Visual Studio 2008 for SharePoint 2007 environment and upgraded 2007 site to SharePoint 2010 and now in SharePoint 2010 we like to do some changes to that custom solution files. Simply, we have a SharePoint 2007 ...
Comment - Like

SharePoint workflow staus codes

Praveen kumar posted an article on - Jul 2, 2011, 4:50 am
This is very important for SharePoint devs. Even I have used them many times, but I forget the status codes almost every time. So, might be happening to everyone too and planned to blog in my blog. The enum SPWorkflowStatus in the namespace "Microsoft.SharePoint.Workflow" in the library "Microsoft.S...
Comment - Like

Error occurred in deployment step 'Recycle IIS Application Pool': The communication object, System.ServiceModel.InstanceContext, cannot be used for communication because it has been Aborted

Praveen kumar posted an article on - Jul 2, 2011, 2:14 am
When we are developing custom code through Visual Studio 2010 for SharePoint 2010 sites and when we try to deploy the solution then we might see below error. "Error occurred in deployment step ‘Recycle IIS Application Pool’: The communication object, System.ServiceModel.InstanceContext, cannot b...
Comment - Like

Get bytes from Stream in c#

Praveen kumar posted an article on - May 19, 2011, 11:16 am
I know you may think what is the need of this post as this is very minor or simple to think and write. But, whenever I need to get bytes from a stream object, I always forgot it. This is simple but most of the times we used to Google. So, planned to write it to remember at least myself next time. pu...
Comment - Like

Check list exists in SharePoint site

Praveen kumar posted an article on - May 19, 2011, 11:04 am
This is very generic issue all SharePoint developers face at initial stages. As there is no default method available in SharePoint API to check whether if list exists in the SharePoint site, everyone write the below code: SPList list = web.Lists["Task List"]; If(list != null) { //Some code on l...
Comment - Like

How to go to SharePoint Webpart Maintenance page for any page

Praveen kumar posted an article on - Apr 16, 2011, 5:52 am
This is one of the great tips we have in SharePoint. There are many scenarios why we need this. I had very tough time to migrate a SharePoint 2007 site to SharePoint 2010 site. What happened was, The other team deployed a custom web part 2 years ago.Used that web part on different pages in that si...
Comment - Like

Clear and then disable controls in infopath

Praveen kumar posted an article on - Jan 16, 2011, 6:10 am
This is simple for reading, but difficult to implement in infopath forms. To disable controls we have to use “Conditional Formatting” option of a control. To clear content of a control then we have to use “Rules” option of a control. But, the sequence of execution of these two causes some pr...
Comment - Like

Date validation in Infopath forms

Praveen kumar posted an article on - Jan 16, 2011, 4:47 am
In SharePoint infopath forms I need to implement one thing which was a bit tricky as it is not the default supported by infopath forms. The requirement is like this: The date fields on form should not allow date plus/minus 5 years from current server date. For this, so many people recommended to imp...
Comment - Like

Delete event receiver from a SharePoint list

Praveen kumar posted an article on - Jan 16, 2011, 3:23 am
In my previous post, we saw how we added an event receiver to a list. Now, we will see how to delete the existing event receiver on a list. private void DeleteEventReceiverFromAList(string siteUrl) { using (SPSite site = new SPSite(siteUrl)) { using(SPWeb web = site....
Comment - Like

Add event receiver to a SharePoint list

Praveen kumar posted an article on - Jan 16, 2011, 3:15 am
This is very generic and everyone knows how to add an event receiver. But, usually we attach the event receiver on a list template, site etc. This post deals with adding event receiver to a specific list. private void AddEventReceiverToAList(string siteUrl) { using (SPSite site = new SPSite(siteUrl...
Comment - Like

Change content type order in NEW button of a SharePoint library

Praveen kumar posted an article on - Jan 16, 2011, 2:35 am
This is continuation of my previous post. After you read that post you get clear understanding of how we added the content types to a library through coding. But, what if there is a requirement we need this content type order to be shown when I select the NEW button from the list tool bar or hide so...
Comment - Like

Add content type to a SharePoint list or library through code

Praveen kumar posted an article on - Jan 16, 2011, 2:03 am
In one of my SharePoint projects, there is a requirement like a SharePoint site has 140+ sub sites and each web has 2 lists which I need to update. There are 2 content types which are inheriting by each list and now I have to add another through coding. It is very difficult to go through all webs an...
Comment - Like

UDCX files in Sharepoint Infopath and dynamic queries

Praveen kumar posted an article on - Jan 15, 2011, 11:27 am
Confused? Can we use dynamic queries in the infopath and UDCX combination? UDCX are meant for not writing any code to get data from database and to show it up the retrieved data on the infopath form. They allow only STATIC queries. Just straight SQL or SPROC names  and parameters to it. But, I got ...
Comment - Like

Using Variables in TOP clause in T-SQL

Praveen kumar posted an article on - Jan 14, 2011, 10:31 am
This is what I want to post as I heard so many people are facing this issue. We can use variables in T-SQL queries but, there are requirements that we may select only the top 5 rows or 10 rows or n rows from the result set and use them wherever needed. So, below is the implementation we have to use ...
Comment - Like

Visual Studio get pubic key token through external tools

Praveen kumar posted an article on - Jan 9, 2011, 4:20 am
This is very needful post. Most of the times in general development we work on class library projects which outputs DLL at the end. To use them we may need to know the Public Key Token of the DLL and use it wherever needed. We can know the Public key token either through the command prompt SN.EXE or...
Comment - Like

Download reports from Sql Server Reporting Services

Praveen kumar posted an article on - Dec 7, 2010, 10:56 am
I know that this is what the reporting services didn’t give us an available option. There are many scenarios we require to get the reports to the local server and edit the changes. For example, I have 10 reports and they aren’t available right now in my server or they are under source control an...
Comment - Like

Add web reference to a console application in visual studio

Praveen kumar posted an article on - Nov 26, 2010, 9:45 am
This is somewhat confusion to many people. We can add a service reference to console application, but when you right click on project, you didn't see a direct "Add Web Reference" option. But, there are so many requirements we have to add a web reference. So, I thought of posting it in my blog. Solut...
Comment - Like

Publish Nintex workflow file to all sites and libraries using code

Praveen kumar posted an article on - Nov 24, 2010, 10:39 pm
Nintex workflows - They are easy to build workflows and customize. I used them in couple of projects and it supports many activities which we can use and build workflows according to requirements. But, this time I got a big project which has plenty of sub sites in a site collection. All sub sites ar...
Comment - Like

STSADM - Object reference not set to instance of an object

Praveen kumar posted an article on - Nov 5, 2010, 12:42 pm
I know this is the error which developers see most of the times. This is very basic error and it raises when we tried to access NULL reference object. But, What is if it comes while accessing STSADM? In SharePoint everyone knows the role of STSADM and the advantage of it. If you try to do some opera...
Comment - Like

Operation is not valid due to the current state of the object when making changes to SPListItem object using elevated previliges

Praveen kumar posted an article on - Nov 5, 2010, 11:49 am
This is known error to sharepoint developers that when try to update/delete a SharePoint list item using system account. Means using SPSecurity.RunWithElevatedPrivileges() method. I am not sure, why it is not allowing to update or delete a file in this code block. But, there is work around for it. Y...
Comment - Like

Table of contents web part remove max 50 limit

Praveen kumar posted an article on - Nov 5, 2010, 11:04 am
We use the "Table of contents" web part on SharePoint landing pages to give access to users to easily navigate to the sites/pages. But, there is a default limitation on the display items in left navigation or table of web part contents  in sharepoint. By default it shows only 50. If you have more t...
Comment - Like

SharePoint 2007 Limitations complete list

Praveen kumar posted an article on - Oct 17, 2010, 9:45 am
There are so many posts in the Internet describes about this. But, there is no place where I found all at once. So, I am planning to keep this post up to date with whatever I find. If I miss anything then please add here or let me know. That will be a great help. SharePoint maximum limitations Perf...
Comment - Like

Template Explorer in SQL Server 2008

Praveen kumar posted an article on - Oct 17, 2010, 4:28 am
I know, most of us do not know what it is... But, there are nice advantages of it and everyone should know about it. Template Explorer contains so many templates which helps us to understand many things and these templates have many examples on how we can write or do things through SQL queries. Ther...
Comment - Like

Find table size used in SQL Server

Praveen kumar posted an article on - Oct 17, 2010, 1:30 am
In a database, when size is growing then we have to find which table is taking more size. Then we have to query database to find what is the table taking maximum size. Log is also one of the factor which causes the database size grow in very huge amount. But, except logs, if you want to find the tab...
Comment - Like

Find the database size in SQL Server

Praveen kumar posted an article on - Oct 17, 2010, 1:20 am
This is very important to find regularly if you are hosting the web site in hosting providers. The database size grows day to day and we have to find it more often. otherwise it grows than the given size and account will be suspended.  Below is the command used to find the size of the database and ...
Comment - Like

List all Tables using SQL Query in a database

Praveen kumar posted an article on - Oct 17, 2010, 1:07 am
This is not needed in general development times. But, very rare cases only we have to get these kind of requirements and use these rarely used commands. I have a requirement where I need to know the list of tables in a database and do something. So, below is the simple query which is used to list or...
Comment - Like

Sql Server Management Studio for Sql Azure

Praveen kumar posted an article on - Oct 17, 2010, 12:53 am
Sql Azure is very powerful and good to know these concepts. I love it and very nice technology these days. Windows Azure is going to be very powerful in near future. When you install the Sql Azure in the system, then you may need to search for downloading the SSMS for it. Here are the links for it. ...
Comment - Like

Update the Nintex workflow to multiple lists and libraries in a SharePoint site

Praveen kumar posted an article on - Sep 30, 2010, 2:09 pm
Special thanks to Vadim Tabakman.  It is a special requirement. Nintex workflows are very  helpful in some scenarios to achieve things in simple and easy way. I got a requirement that I have to implement a workflow which needs to be used in many document libraries and list. As we know the SharePoi...
Comment - Like

About Me

Hello.
This is Praveen Battula.
I am a senior software developer on Microsoft Technologies like SharePoint, TFS, ASP.NET, C#, JQuery, T-SQL, CSS etc... I like to share information and blogging.
As part of it, I am writing nice posts and rare solutions I found in my experience in my blog.
http://praveenbattula.blogspot.com

Please visit my blog and let me know your valuable feedback.

Thanks
-Praveen

Praveen kumar's Blogs:

Praveen kumar's Followers

Praveen kumar is Following

Invite Your Friends

Invite your contacts to blogged from:
gmail yahoo