Spotlight IT Ramblings Blog

I'm living in Dublin, Ireland and this is a collection of ramblings about my day-to-day activities in the exciting world of web development ;-) Technologies used and projects under development. Also links of interest, mostly completely work un-related....

Saturday, March 03, 2007

VS 2005 random observations

Random observations about Visual Studio .Net 2005

- Turn on Quotes when editing in Source view of webform ASPX pages

Go to Tools-->Options menu item

Choose "Text Editor" Branch in tree on left then "HTML" then "Format". Tick on the "Insert attribute value quotes when typing". This works for all server controls and html elements so when you space after <asp:Textbox enabled=
it gives you a intellisense dropdown for true/false when you choose the option it automatically puts quotes around it. This saves you having to do into design view all the time to quote all your attributes. If you don't you get an error.


- Displaying Currency In datagrids

When trying to format the currency on the datagrids. When I applied DataFormatString="{0:c}" I expected it to display as €10.00 but it doesn't. You also have to add HtmlEncode="false" to the tag to get it to work.

- Debugging

I don't know if there is a bug in VS2005 but sometimes when you build a project and you are waiting on it to launch the internet browser window to start stepping through code nothing happens. BUT, move the mouse and all of a sudden it continues with the debugging and launches the window.

This sounds like random behaviour but all 4 of us on a development team (running on isolated machines with different installations of VS2005) have repeatedly encountered this. If you don't touch the mouse, the build process will just wait there until you do before launching the debugger, very strange.

0 Comments:

Post a Comment

<< Home

 

Valid CSS!
news section


news seperator