Esempio n. 1
0
    protected void link1_Click(object sender, EventArgs e)
    {
        GridViewRow row       = ((LinkButton)sender).Parent.Parent as GridViewRow;
        int         rinrow    = row.RowIndex;
        Label       lbluserid = (Label)grdallowedlist.Rows[rinrow].FindControl("lbluserid");



        string         qryStr  = "select UserMacAddressMasterTbl.*,PartytTypeMaster.PartType,Party_master.Compname from UserMacAddressMasterTbl inner join User_master on User_master.UserID=UserMacAddressMasterTbl.UserId inner join Party_master on Party_master.PartyID=User_master.PartyID  inner join PartytTypeMaster on PartytTypeMaster.PartyTypeId=Party_master.PartyTypeId where Party_master.id='" + Session["Comid"].ToString() + "' and UserMacAddressMasterTbl.UserId='" + lbluserid.Text + "' ";
        SqlCommand     cmdeeed = new SqlCommand(qryStr, con);
        SqlDataAdapter adpeeed = new SqlDataAdapter(cmdeeed);
        DataTable      dteeed  = new DataTable();

        adpeeed.Fill(dteeed);

        GridView1.DataSource = dteeed;
        GridView1.DataBind();

        ModalPopupExtender1333.Show();
    }
 protected void LinkButton1_Click(object sender, EventArgs e)
 {
     fillgridpopup();
     ModalPopupExtender1333.Show();
 }