Hi,
I was shown the following example to set different properties based on a condition, but the control ignores the code set by the condition and utilizes default settings. Why is this happening?
<div align="center"><form runat="server" ID="mainform1">
<div align="center"><font size=3 class=Head>Rob Hixen</font></div><br>
<CE:Gallery id="gallery1"
runat="server"
Height="300"
Width="300"
Column = "3"
Row = "2"
MaxImageWidth="1024"
BackColor="#ffffff"
CellPadding="5"
AutoResizeUploadedImages = "true"
CellSpacing="5"
ForeColor="#000000"
BorderColor="#cc0000"
BorderStyle="solid"
BorderWidth="0"
CssClass="container"
></CE:Gallery>
</form></div>
<% If Session("Logged") = "True" then
gallery1.ShowThumbNailName="True"
gallery1.ShowThumbNailSize="True"
gallery1.ShowThumbNailDate="True"
gallery1.ShowThumbNailDescription="True"
gallery1.ShowEditDescription="True"
gallery1.ShowUpload="True"
gallery1.ShowBatchBuild="True"
gallery1.ShowWindowedScreen="false"
gallery1.ShowFullScreen="false"
gallery1.ShowHelp="false"
gallery1.ShowHome="False"
gallery1.FolderPath = "~/Gallery/Rob"
response.write("loggedIn")
Else
gallery1.ShowThumbNailName="True"
gallery1.ShowThumbNailSize="false"
gallery1.ShowThumbNailDate="false"
gallery1.ShowThumbNailDescription="true"
gallery1.ShowEditDescription="false"
gallery1.ShowUpload="false"
gallery1.ShowBatchBuild="False"
gallery1.ShowWindowedScreen="false"
gallery1.ShowFullScreen="false"
gallery1.ShowHelp="false"
gallery1.ShowHome="False"
gallery1.FolderPath = "~/Gallery/Rob"
response.write("notLoggedIn")
End If %>