write If conditions for checkbox in view page in edit mode?

Nov 25 2015 3:41 AM
Hi,
I inserted two image paths dynamically into my database as column1 and column2. In my view page there is three checkboxes. If I check checkbox1 the right image inserted into column1 and wrong image inserted into column2 like wise If I check checkbox2 then the wrong image inserted into column1 and right image inserted into column2. If I check checkbox3 the "default" will be stored into column3(in above cases column3 will be null).
Now I stored the image paths in sessions in edit mode but based on session value I want to check the checkbox in view page.
How to write if conditions in view page for this requirement.
Thanks in advance.

Answers (1)