asp.net easy POST data + error msg?

NulaelizBeepe

New Member
With asp.net is there some kind of lib which I can use to get \[code\]get\[/code\] or \[code\]post\[/code\] data as the expected type while checking if its valid. Maybe something like the below\[code\]int id = thing.GreaterThan("id", 0) //gets id from either get/formint id2 = thing.FormGreaterThan("id2", 0) //gets id2 from post data (aka form) onlystring body = thing.Between("body", 20, 100000); string after .trim() must be >=20 and <=100000if(thing.HasErrors) { //handle fail or missing data\[/code\]
 
Back
Top