protected void grvUserThread_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
Label lb = new Label();
lb = (Label)e.Row.FindControl("lblEdit");
string tuid = Convert.ToString(e.Row.Cells[3].Text);
if ((tuid != "UserID") && (lb != null))
{
int temp = Convert.ToInt32(tuid);
if (temp == Convert.ToInt16(Session["UserID"]))
{
lb.Visible = true;
}
}
}
catch(Exception ex)
{
String errorMessage;
errorMessage = "Error: ";
errorMessage = String.Concat(errorMessage, ex.Message);
errorMessage = String.Concat(errorMessage, " Line: ");
errorMessage = String.Concat(errorMessage, ex.Source);
LCE.Configuration.ErrorLog("Forum/ReplyToThreads.cs", errorMessage);
}
}
Thursday, February 4, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment