private void BindData() { BLL.Exchange objEx = new BLL.Exchange(); objEx.GetTopExchange(); uiRepeaterExchange.DataSource = objEx.DefaultView; uiRepeaterExchange.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLL.Exchange ex = new BLL.Exchange(); ex.GetTopExchange(); UIGridViewExchange.DataSource = ex.DefaultView; UIGridViewExchange.DataBind(); } }