FloffnoniPalp
New Member
if isnumeric( Request.Params("myreqyest") ) then<BR> .......<BR>end if<BR>-----------------------------------------------------------------<BR><BR>i try to use Char.IsNumber(Request.Params["myreqyest"]) <BR>but it not work..<BR><BR>You could try something like this:<BR><BR>int myInteger ;<BR><BR>try<BR>{<BR> myInteger = System.Int32.Parse( Request.Params("myreqyest") )<BR>}<BR>catch( System.Exception e )<BR>{<BR> myInteger = 0 ;<BR>}A much more efficient one would be<BR><BR>int myInteger = 0;<BR><BR>try<BR>{<BR> myInteger = System.Int32.Parse( Request["myreqyest"] )<BR> // True condition.<BR>}<BR>catch{ /*False condition */ }<BR><BR>