<asp:Label ID="Label1" runat="server" Text="Label">salary</asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="submit" runat="server" Text="submit" OnClick="submit_Click" />
Point is : <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
//Codebehind Code (C#)
protected void submit_Click(object sender, EventArgs e)
{
//Dummy list replaced get data from db
List<Employee> employeeList = new List<Employee>();
employeeList.Add(new Employee { Id = 1, Salary = 15, Point = 3 });
employeeList.Add(new Employee { Id = 2, Salary = 20, Point = 2 });
employeeList.Add(new Employee { Id = 3, Salary = 25, Point = 1 });
int inputValue = int.Parse(TextBox1.Text);
//Find object which salary >= input and get point in this object
var employee = employeeList.Where(a => a.Salary >= inputValue).OrderBy(x=>x.Salary).FirstOrDefault();
if (employee != null)
Label2.Text = employee.Point.ToString();
else
Label2.Text = employeeList.Min(a => a.Point).ToString();
}