Click here to Skip to main content
15,942,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my if condition,if my condition is satisfied ,i have to display an image,and if the condition fails then i have to display another image.
my code:
C#
function IsActveDisplay(status) {
       if (status == "1")
           return "<img src=C:\Users\Desktop\kendoui grid\person.png/>";
       else
           return "<img src= F:\KendoGrid\styles\Metro\loading.gif/>";
   }

i gave in this way.it is displaying some default image for the both actions.i want to get the exact images for this.how i have to return the image?
Posted
Comments
Technoses 26-May-12 6:53am    
where your r writing this code
js or C#
bopannavb 26-May-12 9:27am    
to which variable are you setting the value which the function returns
Sandeep Mewara 26-May-12 13:16pm    
Did you DEBUG? Checked what is the execution? ViewSource?

1 solution

Can you mention to which variable are you setting the value which the function returns
 
Share this answer
 
Comments
Nelek 26-May-12 17:38pm    
please don't write answers to ask for information, you have the "have a question or comment" button for that (as the others did)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900