You can create same query in Page_Load itself as long you don't need any input from user using below code
protected void Page_Load(object sender, EventArgs e)
{
var query = "select logo,companyname from logos where status='True' AND type='Birthdays' AND day='" + DateTime.Now.Day.ToString() + "' AND month='" + DateTime.Now.Month.ToString() + "'";
}