Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         PendingRecordsGridview.DataSource = "SqlDataSource1";
         PendingRecordsGridview.DataBind();
     }
 }
Ejemplo n.º 2
0
        protected void Bind()
        {
            foreach (GridViewRow row in AcceptedRecordsGridview.Rows)
            {
                PendingRecordsGridview.DataSource = c.getNotifications();
            }
            PendingRecordsGridview.DataBind();
            AcceptedRecordsGridview.DataSource = c.getHistory(ViewState["Filter"].ToString());
            AcceptedRecordsGridview.DataBind();
            DropDownList ddlStatus = (DropDownList)AcceptedRecordsGridview.HeaderRow.FindControl("ddlStatus");

            c.BindStatusList(ddlStatus, ViewState["Filter"].ToString());

            // DropDownList ddlStatus = (DropDownList)AcceptedRecordsGridview.HeaderRow.FindControl("ddlStatus");
            // c.BindStatusList(ddlStatus, ViewState["Filter"].ToString());
            // this.BindStatusList(ddlStatus);

            int countRows;

            countRows = Convert.ToInt32(c.countNotifications());
            if (countRows > 0)
            {
                count.Visible   = true;
                count.InnerHtml = countRows.ToString();
                System.Diagnostics.Debug.WriteLine(count.InnerHtml);
                count.Style.Add("padding", "1px 5px 1px 5px");
            }
            else
            {
                count.Visible = false;
            }
            DataTable dt = this.GetData();

            // DataTable dt = c.getCordinates();
            rptMarkers.DataSource = dt;
            rptMarkers.DataBind();
            ShowData();
        }