- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
public enum PageType
{
Default,
Billing,
UserCabinet
}
public PageType GetPageType(int code)
{
if(code == 1){return PageType.Default;}
if(code == 2){return PageType.Billing;}
if(code == 3){return PageType.UserCabinet;}
return PageType.Default;
}
private int PageType
{
get
{
int page;
Int32.TryParse(Request["page"], out page);
return page;
}
}
brainstorm 13.01.2011 13:02 # +2