Administration Role!!!

Last post 04-18-2006, 5:45 PM by AndrewH. 1 replies.
Sort Posts: Previous Next
  •  02-18-2006, 1:53 AM 16107

    Administration Role!!!

    Hi adam!!!
    Thanks 4 ze reply!!!
    Ok i have found the requested page!!!
    In addition i would like to ask u something about the Gallery!!!
    What type of control is it!!!
    Because i am doing administration role 4 the gallery!!!

    Below is my code!!!!
    However  i am getting an error telling me that gallery1 is not declared!!!
    Do i have to imports something!!!
    Please help me on that!!!
    Thanks Beforehand!!

    Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

    Dim album As String

            album = Request.QueryString("album")
            If ((album = Nothing)  _
                        OrElse (album = "/")) Then
                gallery1.FolderPath = "album1"
            End If
            gallery1.FolderPath = album
        End Sub

    gallery1 is being underlined!!!!


    KevinArenaL@b

    KevinArenaL@b
  •  04-18-2006, 5:45 PM 18324 in reply to 16107

    Re: Administration Role!!!

     
    It looks like you need to import the DotNetGallery namespace.  Add the red line below to your page:
     
     
    <%@ Page Language="VB" %>
    <%@ Register TagPrefix="CE" Namespace="DotNetGallery" Assembly="DotNetGallery" %>

    Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

    Dim album As String

            album = Request.QueryString("album")
            If ((album = Nothing)  _
                        OrElse (album = "/")) Then
                gallery1.FolderPath = "album1"
            End If
            gallery1.FolderPath = album
        End Sub
     
     
    You don't have to declare the gallery instance if you have the namespace loaded.
     

    Andrew
    UpManager Dealership Sales & CRM Software
    http://upmanager.com
View as RSS news feed in XML