Click here to Skip to main content
15,915,019 members

Comments by Tyson3264 (Top 2 by date)

Tyson3264 4-Aug-12 18:00pm View    
Hi Christan, do you know of any articles or references that show how to implement this method? Thanks
Tyson3264 2-Aug-12 18:34pm View    
Deleted
OK, I was able to get the image to display in the cell. However, there is a problem with the if statements. I did confirm by writing into a label that the value is indeed coming back as "Stopped". However, the below code doesn't seem to be comparing properly. If I put an else statement with a random picture it always defaults to and will load the picture from specified in ELSE. Any ideas?

string epsFtpState = shell.Runspace.SessionStateProxy.GetVariable("epsFtpState").ToString();

if (string.Equals(epsFtpState, "Stopped")){
Image epsFTPimg = new Image();
epsFTPimg.ImageUrl = "~/Images/error.png";
epsFtpStatusPlaceHolder.Controls.Add(epsFTPimg);
}
else {
//do nothing
}