Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        //{
        p = Session["per"] as Person;
        try
        {
            List <Person> per = m.search(Session["follow"].ToString(), p.user_id);
            if (per.Count == 0)
            {
                Label3.Text = "No results found";
            }
            else
            {
                Label3.Text          = "Results for" + " " + " " + Session["follow"].ToString();
                gdvsearch.DataSource = per;
                gdvsearch.DataBind();
            }
        }
        catch
        {
            Label3.Text = "No results found";
        }

        //}
    }