Skip to main content

Posts

Showing posts from September, 2012

To download Large collection of Free Microsoft eBooks, including: SharePoint, Visual Studio, Windows Phone, Windows 8, Office 365, Office 2010, SQL Server 2012, Azure, and more for free.

http://blogs.msdn.com/b/ mssmal lbiz/archive/2012/07/27/ 103342 62.aspx Web Developement Related free Books http://social.technet. microsoft.com/wiki/contents/ articles/11608.e-book-gallery- for-microsoft-technologies. aspx#[Category]%20Web% 20Development   Windows Development  Related  free  Books http://social.technet. microsoft.com/wiki/contents/ articles/11608.e-book-gallery- for-microsoft-technologies. aspx#[Category]%20Windows

What is Asp.net Impersonation?

Impersonation is when ASP.NET executes code in the context of an authenticated and authorized client. By default, ASP.NET does not use impersonation and instead executes all code using the same user account as the ASP.NET process, which is typically the ASPNET account. (ASP.NET basics you can refer about it). That means when you install IIS and .NET Framework together – process that belongs all the .NET application hosted in IIS(unless you change it manually), default runs on ASPNET account permissions. you could see an account called ASPNET created in your system. This account is only for executing ASP.NET application processing thread on the context of IIS. Why Impersonation? When we are doing I/O operations, the operation system makes security checks to understand if the user is authorized to do the operation. The same thing happens when you try to do operations on another machine in your network. Using impersonation, ASP.NET applications can optionally e...

How to Delete The Files Having More than 3 Underscores ( _ ) ?

Example: File format may be like XXX_123_253_2175_216.html Irrespective of file format based on Underscores we need to delete ? Solution: Private void deleteFiles()  { DirectoryInfo objDir = new DirectoryInfo(@"C:\"); FileInfo[] objFileList = objDir.GetFiles(); foreach(FileInfo f in objFileList)  { if (f != null) if (f.Name.Split('_').Length > 3) { f.Delete(); } } } and Later I have added on more requiremnet in the about CODE LIKE this File having similar fast name should delete  Extra condition if(f.name.startswith) { //code }

How to Create The Contact/feedback Web part in SharePoint 2010

Contact Feedback Webpart in Sharepoint 2010 This article will show, step-by-step, how to create simple visual web part that implements a contact feedback form. A contact feedback form is typically used on a public website to provide a way for customers, business partners, and others outside the company to submit questions or request information by filling out fields on a web page and clicking a Submit button. This web part will collect the user’s name, email address, and message, and send the information to an email address when the user clicks Submit. The web part created in this article will use Sharepoint 2010. To create the web part, we will be using Visual Studio 2010 installed on Windows Server 2008. Design the Webpart: Add the following code in your webpart(Design Mode) < style type ="text/css">     span.required     {         color : #FF0000 ;       ...