Re: 2 Galleries in one aspx? One for public use and one for admin use... doesn't work

  •  04-07-2005, 2:29 PM

    Re: 2 Galleries in one aspx? One for public use and one for admin use... doesn't work

    I spoke too soon... I've been playing with your example and no matter which properties I set for the gallery depending on the 'if' condition, the gallery always renders all the top buttons - (i.e. edit, upload, home, batch, fullscreen, etc.)
     
    I check to make sure what conidtion and properties I'm setting by doing a 'response.write'. So I know where I am in the code.
    It appears that the gallery control is not repsonding properly.
    Whats am I doing wrong?
     
    Code example:
     
    <%  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 %>
       
       <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>
View Complete Thread