Why do I get the error message ‘A potentially dangerous Request.Form value was detected from the client ‘

Sounds like you are running version 1.1 of ASP.NET / .NET Framework, which added a new security feature called request validation. Request validation looks at every request and determines if it could be a possible CSS (Cross Site Scripting) attack. By default Request Validation is on for every page. If you wish to allow users to post arbitrary HTML to you site you need to turn off request validation: <%@Page ValidateRequest=’false’ %> For more information check out : Protecting Against Script Exploits in a Web Application on MSDN

Why do I get the error message ‘Unable to start debugging on the web server…’ when I debug?

There is a possibility that there is no web.config file for the project or there is no Execute permission for the project. If you already have a web.config file, double check it’s well-formedness. If the web.config file is missing, add one to the directory that contains the ASP.NET application. You can copy one from the numerous samples applications available with the framework installation. Make sure that the following section reads like this: <compilation defaultLanguage=’c#’ debug=’true’ /> On the other hand, if your project already has a Web.config file, and the above section is set as specified, follow these steps to set the Execute Permissions property for the project folder: Start Internet Services Manager, and then click the project that you are trying to debug. Right-click the project, and then click Properties. Click the Directory tab. If None is selected in the Execute Permissions list, click Scripts only, and then click Apply

How can I automatically layout Grids Using the IsSharedSizeScope Property ?

Grids are useful in localizable applications to create controls that adjust to fit content. In the below example, the Grid element’s ‘IsSharedSizeScope’ attached property is useful for sharing the same sizing among multiple grid elements. [XAML] <StackPanel Orientation=’Horizontal’ DockPanel.Dock=’Top’> <Button Click=’setTrue’ Margin=’0,0,10,10′>Set IsSharedSizeScope=’True'</Button> <Button Click=’setFalse’ Margin=’0,0,10,10′>Set IsSharedSizeScope=’False'</Button> </StackPanel> <StackPanel Orientation=’Horizontal’ DockPanel.Dock=’Top’> <Grid ShowGridLines=’True’ Margin=’0,0,10,0′> <Grid.ColumnDefinitions> <ColumnDefinition SharedSizeGroup=’FirstColumn’/> <ColumnDefinition SharedSizeGroup=’SecondColumn’/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height=’Auto’ SharedSizeGroup=’FirstRow’/> </Grid.RowDefinitions> <Rectangle Fill=’Silver’ Grid.Column=’0′ Grid.Row=’0′ Width=’200′ Height=’100’/> <Rectangle Fill=’Blue’ Grid.Column=’1′ Grid.Row=’0′ Width=’150′ Height=’100’/> <TextBlock Grid.Column=’0′ Grid.Row=’0′ FontWeight=’Bold’>First Column</TextBlock> <TextBlock Grid.Column=’1′ Grid.Row=’0′ FontWeight=’Bold’>Second Column</TextBlock> </Grid> <Grid ShowGridLines=’True’> <Grid.ColumnDefinitions> <ColumnDefinition SharedSizeGroup=’FirstColumn’/> <ColumnDefinition SharedSizeGroup=’SecondColumn’/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height=’Auto’ SharedSizeGroup=’FirstRow’/> </Grid.RowDefinitions> <Rectangle Fill=’Silver’ Grid.Column=’0′ Grid.Row=’0’/> <Rectangle Fill=’Blue’ Grid.Column=’1′ Grid.Row=’0’/> <TextBlock Grid.Column=’0′ Grid.Row=’0′ FontWeight=’Bold’>First Column</TextBlock> <TextBlock Grid.Column=’1′ Grid.Row=’0′ FontWeight=’Bold’>Second Column</TextBlock> </Grid> </StackPanel> <TextBlock Margin=’10’ DockPanel.Dock=’Top’ Name=’txt1’/>