hi
i want to find disable/readonly the controls( hyperlink and a button
in 2 different cols.). either in javascript or in codebehind.
thx
i tried to solve using the following code but hyperlink is not doing
well.
private void repDocuments_ItemDataBound(object sender,
System.Web.UI.WebControls.RepeaterItemEventArgs e){
if (Convert.ToInt32(Session["UserTypeId"]) != 1){
for (int i=0;i<repDocuments.Items.Count;i++){
Button myButton=
(Button)repDocuments.Items
.FindControl("btnDelete");
if (myButton != null)
myButton.Enabled=false;
System.Web.UI.WebControls.HyperLink myLink=
(System.Web.UI.WebControls.HyperLink)repDocuments.Items.FindControl("LnkDownLoad");
if( myLink!=null)
myLink.Enabled=false;
}}}
thx