Click here to Skip to main content
15,905,785 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how I can get id's of checked checkboxes, which are runtime added? Pin
Kannan Ar13-Jul-09 5:19
professionalKannan Ar13-Jul-09 5:19 
AnswerRe: how I can get id's of checked checkboxes, which are runtime added? Pin
kripa2125-Nov-09 23:19
kripa2125-Nov-09 23:19 
QuestionASP.NEt with ORACLE Pin
sandhya1413-Jul-09 1:42
sandhya1413-Jul-09 1:42 
AnswerRe: ASP.NEt with ORACLE Pin
Blue_Boy13-Jul-09 1:43
Blue_Boy13-Jul-09 1:43 
GeneralRe: ASP.NEt with ORACLE Pin
sandhya1413-Jul-09 1:51
sandhya1413-Jul-09 1:51 
AnswerRe: ASP.NEt with ORACLE Pin
Brij13-Jul-09 1:44
mentorBrij13-Jul-09 1:44 
AnswerCP Member Ignore : Cross Post Pin
Abhijit Jana13-Jul-09 1:44
professionalAbhijit Jana13-Jul-09 1:44 
QuestionAdd arraylist to pre-checked checkboxes Pin
simplee13-Jul-09 1:07
simplee13-Jul-09 1:07 
Hi,

How to add arl_CoList2 to disabled & checked checkboxes and checked the rest of company id from Table1?

Updating company list:
When page loads it will get from tbCompany with checked checkboxes of company id from Table1.
I want to disabled and checked the checkbox (when company id from Table1 exist in Table2 & Table3)
other checkboxes company id can be added if checked. Only enabled checkbox can be unchecked and deleted.
GridView do not have datakeyname.

<br />
protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)   <br />
        {   <br />
            if (e.Row.RowType == DataControlRowType.DataRow)   <br />
            {   <br />
                ds = new DataSet();   <br />
                dv = new DataView();   <br />
                arl_CoList2 = new ArrayList();   <br />
  <br />
                //Get all company id from tbCompany<br />
                ds = otmcl.GetCompany(Session["Dept"].ToString());   <br />
  <br />
                if (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate)   <br />
                {   <br />
                    dv = ds.Tables["Company"].DefaultView;   <br />
  <br />
                    lbl_CompanyID = (Label)e.Row.FindControl("lblCompanyID"); // all company   <br />
                    cb_selectCo = (CheckBox)e.Row.FindControl("CheckThisCompany");   <br />
  <br />
                    ddl.DataSource = dv;   <br />
                    ddl.DataTextField = dv.Table.Columns["CompanyName"].ToString();   <br />
                    ddl.DataValueField = dv.Table.Columns["CompanyID"].ToString();   <br />
                    ddl.DataBind();   <br />
  <br />
                    int check = ddl.Items.Count;   <br />
  <br />
                    if (check != 0)   <br />
                    {   <br />
                       //get company id from Table1 exist in Table2 & Table3<br />
                       GetCheckItems();   <br />
  <br />
                        if (arl_CoList2 != null)   <br />
                        {   <br />
                            arl_CoList2.Add(hid_id2.Value.ToString());   <br />
  <br />
                            //if (arl_CoList2.Contains(ddl))   <br />
                            //{   <br />
                            //check the CheckBox   <br />
                            cb_selectCo.Checked = true;   <br />
                            cb_selectCo.Enabled = false;   <br />
                            //}   <br />
                            //if (cb_selectCo.Checked == true)   <br />
                            //{   <br />
                            //    //arl_CoList.Add(lbl_CompanyID.Text.ToString());   <br />
                            //    arl_CoList2.Add(hid_id2.Value.ToString());   <br />
                            //}   <br />
                            //}   <br />
                        }   <br />
                        else if (!arl_CoList2.Contains(ddl))   <br />
                        {   <br />
                            cb_selectCo.Checked = true;   <br />
                            cb_selectCo.Enabled = true;   <br />
                        }   <br />
  <br />
                    }   <br />
                }   <br />
            }  <br />
<br />

QuestionHow to filter Office Documents in Indexing Services. Pin
alisolution13-Jul-09 0:59
alisolution13-Jul-09 0:59 
AnswerRe: How to filter Office Documents in Indexing Services. Pin
vaghelabhavesh13-Jul-09 2:32
vaghelabhavesh13-Jul-09 2:32 
Questionhow to apply themes to the webparts Pin
lakshmichawala13-Jul-09 0:46
lakshmichawala13-Jul-09 0:46 
AnswerRe: how to apply themes to the webparts Pin
Brij13-Jul-09 1:42
mentorBrij13-Jul-09 1:42 
AnswerRe: how to apply themes to the webparts Pin
r a m e s h13-Jul-09 5:22
r a m e s h13-Jul-09 5:22 
Questionsending email with attachment(which lies in a table as an image file ) Pin
shankbond13-Jul-09 0:08
shankbond13-Jul-09 0:08 
AnswerRe: sending email with attachment(which lies in a table as an image file ) Pin
Blue_Boy13-Jul-09 0:11
Blue_Boy13-Jul-09 0:11 
AnswerRe: sending email with attachment(which lies in a table as an image file ) Pin
CrazyCoder2613-Jul-09 0:24
CrazyCoder2613-Jul-09 0:24 
GeneralRe: sending email with attachment(which lies in a table as an image file ) Pin
shankbond13-Jul-09 0:54
shankbond13-Jul-09 0:54 
QuestionHow to persist clientside values Pin
CrazyCoder2613-Jul-09 0:02
CrazyCoder2613-Jul-09 0:02 
AnswerRe: How to persist clientside values Pin
Blue_Boy13-Jul-09 0:10
Blue_Boy13-Jul-09 0:10 
GeneralRe: How to persist clientside values Pin
CrazyCoder2613-Jul-09 0:21
CrazyCoder2613-Jul-09 0:21 
GeneralRe: How to persist clientside values Pin
himanshu256113-Jul-09 1:01
himanshu256113-Jul-09 1:01 
AnswerRe: How to persist clientside values Pin
Muhammad Mazhar13-Jul-09 0:36
Muhammad Mazhar13-Jul-09 0:36 
QuestionDataBinding: 'System.Data.DataRowView' does not contain a property with the name 'RecievingDate'. Pin
haleemasher12-Jul-09 22:36
haleemasher12-Jul-09 22:36 
AnswerRe: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'RecievingDate'. Pin
Abhijit Jana12-Jul-09 23:03
professionalAbhijit Jana12-Jul-09 23:03 
GeneralRe: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'RecievingDate'. Pin
haleemasher12-Jul-09 23:17
haleemasher12-Jul-09 23:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.