Example #1
0
    protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        AbcDAL    MyDAL       = new AbcDAL("");
        DataTable ResultTable = MyDAL.PopulateStudent();

        RadGrid1.DataSource = ResultTable;
    }
Example #2
0
    public void StudentSearchBox()
    {
        AbcDAL MyDAL = new AbcDAL("");

        DataTable ResultTable = MyDAL.PopulateStudent();

        MyDAL.BindStudentCombobox(RCBStudentName);
    }
Example #3
0
    public void DisplayData()
    {
        AbcDAL    MyDAL       = new AbcDAL("");
        DataTable ResultTable = MyDAL.PopulateStudent();

        RadGrid1.DataSource = ResultTable;
        RadGrid1.DataBind();
    }
Example #4
0
    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 !!!!");
            }
        }
    }