23Apr
Posted by admin as .Net, C#, Visual Studio
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 [...]
21Apr
Posted by admin as .Net, Asp.Net, IIS7, Microsoft, Visual Studio, Web
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 [...]
18Dec
Posted by admin as .Net, Asp.Net, Technology, Visual Studio, Web
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 [...]
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.
02Jun
Posted by admin as .Net, Asp.Net, Microsoft, Technology, Visual Studio, Web
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
06May
Posted by admin as Microsoft, Visual Studio
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 [...]
01May
Posted by admin as .Net, Microsoft, Technology, Visual Studio
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 [...]
30Apr
Posted by admin as .Net, Microsoft, Technology, Visual Studio, Windows
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 [...]