converting to asp.net