In ASP.NET 1.1 it was a pain to maintain the position of the scrollbar when doing a postback operation. In ASP.NET 2.0 you can simply add the MaintainScrollPostionOnPostBack attribute to the Page directive of any specific page:
<% Page Language="C#" ... MaintainScrollPositionOnPostback="true" %>
If you would like to apply this behavior to your entire site simply modify the <pages /> entry of your <system.web /> section in your web.config file like so:
<pages maintainScrollPositionOnPostBack="true">
Given an enum like...
public enum MyEnum
{
Value1,
Value2,
Value3
}
When you have a user submited value you need to check against an enum, you can easilly do it..
int submitedValue = 123;
if(Enum.IsDefined(typeof(MyEnum), submitedValue))
...