Hello,
I am trying to create a single aspx page containing 2 gallery forms: one for the public with all options turned off excpet for slideshow, and one for admin with most options turned on - both pointing to the same images folder. cool!
WHen I run the page, the first form below my 'if' statement (user is logged in - admin) works just fine
If I change my 'if' condition to render the second form below the else statement, the gallery renders but does not work. the browser says 'error on page'.
Why is it doing this?
Help is much appreciated.
Some sample code:
<% If sLogged= true then %>
<form runat="server" ID="mainform1">
<div align=center class="head"><b> Rob Hixon's Gallery</b></div><br>
<CE:Gallery
id="Public"
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"
ShowThumbNailName="True"
ShowThumbNailSize="false"
ShowThumbNailDate="false"
ShowThumbNailDescription="true"
ShowEditDescription="true"
ShowUpload="true"
ShowBatchBuild="true"
ShowWindowedScreen="false"
ShowFullScreen="false"
ShowHelp="false"
ShowHome="False"
FolderPath = "~/Gallery/RobHixen"
></CE:Gallery>
</form>
<% else %>
<form runat="server" ID="mainform2">
<div align=center class="head"><b> Rob Hixon's Gallery</b></div><br>
<CE:Gallery
id="Admin"
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"
ShowThumbNailName="True"
ShowThumbNailSize="false"
ShowThumbNailDate="false"
ShowThumbNailDescription="true"
ShowEditDescription="false"
ShowUpload="false"
ShowBatchBuild="False"
ShowWindowedScreen="false"
ShowFullScreen="false"
ShowHelp="false"
ShowHome="False"
FolderPath = "~/Gallery/RobHixen"
></CE:Gallery>
</form>
<% end if %>