protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { AbcDAL MyDAL = new AbcDAL(""); DataTable ResultTable = MyDAL.PopulateStudent(); RadGrid1.DataSource = ResultTable; }
public void StudentSearchBox() { AbcDAL MyDAL = new AbcDAL(""); DataTable ResultTable = MyDAL.PopulateStudent(); MyDAL.BindStudentCombobox(RCBStudentName); }
public void DisplayData() { AbcDAL MyDAL = new AbcDAL(""); DataTable ResultTable = MyDAL.PopulateStudent(); RadGrid1.DataSource = ResultTable; RadGrid1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { int AuthorityID = 0; if (!IsPostBack) { AbcDAL MyDAL = new AbcDAL(""); DataTable ResultTable = MyDAL.PopulateStudent(); AuthorityID = Convert.ToInt32(ResultTable.Rows[0]["AuthorityID"]); //Getting my field value if (AuthorityID != 1002) { Response.Redirect("~/default.aspx?MsgPos=5&MsgType=warning&MsgContent=You are not authorised to this function, No students allowed !!!!"); } } }