protected void ddlProjects_SelectedIndexChanged(object sender, EventArgs e) { DataSet ds = null; objTrackUser = new TrackUser(); objTrackUser.ProjectID = Int32.Parse(ddlProjects.SelectedValue); ds = objTrackUser.readLogFile(); rptLogList.DataSource = ds; rptLogList.DataBind(); if (ds.Tables[0].Rows.Count <= 0) { lblError.Text = "No records Found"; } else { lblError.Text = String.Empty; } }
private void userTracker() { objTrackUser = new TrackUser(); objTrackUser.ProjectID = Int32.Parse(Request.QueryString["pid"]); objTrackUser.BID = Int32.Parse(Request.QueryString["bid"]); objTrackUser.ViewedBy = Convert.ToString(Request.QueryString["email"]); objTrackUser.intTrackUserRecord(); }