Thanks, I got lost in this asp.net code, so I will pass it to the developer and see if he can and will use it. :)
Zeljko -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Atilla Ozgur Sent: Thursday, July 21, 2005 4:13 PM To: [email protected] Subject: Re: [Wtr-general] id 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 [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
