FreeTextBox and Asp.net 4 request validation

Sunday, October 17, 2010

In Asp.Net 4 the request validation model has changed (Yet another breaking change). In short, request validation is a security feature of Asp.Net which meant to prevent a user from XSS or script injection attacks. In Asp.Net the behavior of request validation has changed.  Validation of the input is know performed in the BeginRequest stage in the life-cycle . When we converted out web application to Asp.Net 4, we found out that one of our pages, which uses a control call FreeTextBox, threw a validation exception each time an input was typed and submitted in that control....
6 comments

AutoComplete Extender Troubleshooting

Friday, December 28, 2007

One of my tasks in our last block was to create a search box for a large value tree. For the implementation we (my team leader Doron and I) decided to use the AutoComplete extender from the Ajax Control Toolkit. While implementing, we ran into a couple of problems : Problem : I want the completion list to be right-to-left (for Hebrew input). Solution : Set the CompletionListItemCssClass and CompletionListHighlightedItemCssClass. In both CSS classes insert the following attribute : text-align:right; DO NOT set this...
no comments

CSS challenge

Friday, November 16, 2007

This is a challenge for all you web designers and CSS experts/ hackers. Check out this design : Each panel has a margin between the parent of 10 pixels in each side. The red panels are also spaced by 10 pixels with each other. And now for the challenge : You need to create this design using CSS classes only. Each panel can be a div or asp.net panel control. The panel should adjust automatically when the window resizes - the white panel should always cover the browser content. You can not...
tags: ,
5 comments

CSS and Html debugging

Friday, August 31, 2007

Translating UI design to a CSS & Html can be a little complicated. You receive a design from a UI team/expert in your company, which includes general look for the web site,font sizes, images , positioning in the page, distances etc... and you have to create the CSS which shows the design in the page you create. This requires a lot of experience and attention to details. Wrong design can result in unexpected things, like div's disappearing , partial views and wrong positions of items. For example, this simple html : <body> ...
tags: ,
one comment

Remove the scroll bar from a web page

Friday, July 27, 2007

A couple of months ago I was performing  maintenance on the main page of my team's web site. One of the things I noticed is that the page contains a disabled scroll bar which is not used. So I wanted to remove it to give more space in the page for other stuff (especially the Map  - the site is a GIS site). So after a little reading in the MSDN I found that there is a CSS property which is responsible for this. It is called "overflow". The property can have these values : visible - If components in...
tags: ,
2 comments

Mouse positions in a Html page

Friday, April 20, 2007

Let's say I have a page with some kind of image on it. Suppose we want to create a control which performs zoom on the image according to a user defined borders (User drags the mouse from one point on the image to another and creates a box). In order to do this we need to use events and scripts so we could know what area in the image the user selected. When adding event handlers to client events in a Html or ASP.NET page you can use an object called event. Among it's properties there are a couple which...
tags: ,
no comments