Also your developer override naming of these identifiers. But i do not
think he will want to do that.

these should be
Also your can developer override naming of these identifiers. But i do not
think he will want to do that.

        protected void ctlDataGrid_RowDataBound(object sender, 
GridViewRowEventArgs e)
        {
                Label lbl = e.Row.FindControl("lblName") as Label;
                if (lbl != null)
                {
                        // gets the server control Name generated by Asp.Net
                        string unique = lbl.UniqueID;
                        // gets the server control ID generated by Asp.Net
                        string clientID = lbl.ClientID;
                        // this is programmatic identifier you give to your 
control like lblName
                        // this is what you can set.
                        string id = lbl.ID;
                        // this is my databinder object, most probably your 
developer uses
                        // datarow of datatable object he needs to cast it 
accordingly.
                        AppCenterEntity entity = e.Row.DataItem as 
AppCenterEntity;
                        // RID is my primary key.
                        lbl.ID = "lblName" + entity.RID.ToString();
                        lbl.
                }

        }

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to