test

Last post 07-27-2008, 6:33 PM by Anonymous. 2 replies.
Sort Posts: Previous Next
  •  03-27-2007, 9:51 AM Post number 71322

    test

  •  04-23-2008, 5:19 AM Post number 48232 in reply to post number 71322

    its urgent pls help me

    hi, this is Ranga.
    please help me to solve the following
    "how to add gridview at runtime in the child pages"
    I write the following code, but its not working

    GridView gv = new GridView();
    gv.ID = "gridview1";
    gv.Visible = true;
    gv.Style.Add("z-index: 100; left: 276px; position: absolute; top: 284px", "css");
    //form1.Controls.Add(gv);
    cmd = new SqlCommand("select * from functionhalls", cn);
    da = new SqlDataAdapter(cmd);
    DataSet ds = new DataSet();
    da.Fill(ds, "f");
    gv.DataSource = ds.Tables["f"];
    gv.DataBind();
    // this.Page.Controls.Add(gv);
    ContentPlaceHolder ContentPlaceHolder1 = new ContentPlaceHolder();
    ContentPlaceHolder1.Controls.Add(gv);
  •  06-13-2008, 11:09 PM Post number 59663 in reply to post number 71322

    hewfiudhf

View as RSS news feed in XML