Friday, March 25, 2011

Enable Button and textbox

txtName.ReadOnly = true;
btnAdd.Enabled = false;

Wednesday, March 23, 2011

Crete Virtual Directoty automatically when you run VS project

In case you want to create virtual directoty of the project when you click the solution of the project.Follow these steps

1) Right click the .csproj file of the project and open with notepad. Donot open it with the VS or any other editor otherwise you won;t get the screen.

2) At the last of the file you would see tag. which needs to be updated.

3) By Default it would be like this.
ProjectExtensions
VisualStudio
FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"
WebProjectProperties
UseIIS false UseIIS
true
6748
/


True
False


False





4) Change it to like like as per your requirement and the VD will be created for you when you run this project.




True
False
6748
/
http://localhost/TicklerCUW
True
http://localhost/TicklerCUW
True
False


False