protected void Page_Load(object sender, EventArgs e) { //creating an object from the eventClass eventClass objEvent = new eventClass(); rpt_main.DataSource = objEvent.getEvent(); rpt_main.DataBind();//binding the DB }
private void _subRebind() { //txt_date.Text = string.Empty;ESTE ESTABA ORIGINAL txt_title.Text = string.Empty; txt_short.Text = string.Empty; txt_content.Text = string.Empty; rpt_all.DataSource = objLinq.getEvent();//??? rpt_all.DataBind(); _panelControl(pnl_all); }