How can we validate year, to allow only numeric formatHi Team,
Am stuck here..so can anyone guide me on this for the below code i have to do changes.
The if condition is only checking for null or empty, this wouldn't fix the flaw. Validate the year for numeric format
"string Year = Request.Params[""year""];
if (Year == null || Year.Equals(""""))
Year = System.DateTime.Now.Year.ToString();