Subscribe to Feed

Archive for the ‘Visual Studio’ Category

There usually are several occasions where you might want to loop through all the controls in a container like a panel or a form etc.. looking for a particular type of control. For example, lets say you have a panel on your form which has several CheckBoxes in it, and you wish to find out [...]

It is very simple to get the name of the application pool current worker process is associated with in Asp.NET. You can simple use the server variables for that. For example, to display the app pool name on your web page you can simply use the below code snippet.
<%= Request.ServerVariables("APP_POOL_ID") %>
 
This is usually helpful when [...]

On some occasions you might want to deploy the Asp.Net MVC application to avoid compiling it yourself etc. You can achieve this by following the below steps

Create an ASP.NET website project in Visual Studio
Add a reference to the System.Web.Mvc.dll (and any other DLLs that your application might need)
Copy the web.config from regular ASP.NET MVC project [...]

10Aug

31 Days of Refactoring

Posted by admin as Random, Visual Studio

Take a look at this very interesting blog post series - 31 days of refactoring
http://www.lostechies.com/blogs/sean_chambers/archive/2009/07/31/31-days-of-refactoring.aspx
The various refactoring “methods” are getting more complex and interesting as the series continues.
IMHO, This is must read for all developers.

You can determine the Name or ID of hosting IIS application from with in the ASP.Net web site or Web application by using “HostingEnvironment” class.
HostingEnvironment class is defined in the System.Web.Hosting namespace.
He is how you get the name of the application and its physical path.
HostingEnvironment.SiteName
HostingEnvironment.ApplicationPhysicalPath
 
And to get the unique identifier for the Web application,
HostingEnvironment.ApplicationID

The 2007 Microsoft Office System - Learning Portal Clinic 5046: Inside Look at Building and Developing Solutions with Microsoft Office SharePoint Servers 2007 Get help incorporating Microsoft Office SharePoint Server 2007 into your portal-based solution development and integrating it into your existing enterprise application infrastructure. This e-learning [...]

To create a ShelveSet from command prompt in TFS, you can just use the command “TF shelve” from Visual Studio command line. This should open a UI dialog with all the pending changes in current work space. If you would like to create a shelveset with all the changes under current directory you can use [...]

To migrate your shelveset from one branch to a different branch in TFS you need Team Foundation Power Tools.  Download the October 2008 Release of TFS power tools from Microsoft here. After downloading and installing the power tools, Open visual studio command prompt and run “TFPT /?” to get a list of all the commands [...]

Officially according to Microsoft .Net Framework 3.5 is not supported by Visual Studio 2005. I dot not know if there is a way to make the .Net FrameWork v3.5+ Asp.Net websites work with  and Visual Studio 2005, but for any other windows projects, All you have to do is make a small change in your [...]


 

 

Subscribe to Feed

Categories

Links

Dev Jobs