No Results from Gallery

  •  12-19-2005, 6:29 PM

    No Results from Gallery

    I have followed the instructions for adding the Gallery to my VS2003 project added the reference and copied the .dll and .lic to my bin folder. I am building the image subfolder in another ASPX page and transferring to the page with Gallery1 object in it. I am setting the Gallery1.folderpath = "Photo" & imgkey   where imgkey is a query variable retrieved and set on pageload.
     
    I am getting the gallery.xml file to build but it looks like this ( no images are listed  - looked at the sample which i got to run )  any ideas ... I copied the sample gallery.xml and images into my subfolder and the gallery.xml file was overwritten with this: ( any ideas on what i am missing ?) I am using the developer license.

    image gallery page code:

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    'Put user code to initialize the page here

    If Not IsPostBack Then

    Dim imgKey As String

    imgKey = Request.Params("ImageKey").ToString

    'Label1.Text = imgKey

    Gallery1.FolderPath = "Photos/" & imgKey

    End If

    End Sub

     THIS IS THE GALLERY.XML FILE THAT GETS CREATED:
      <?xml version="1.0" standalone="yes" ?>
    - <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xs:element name="NewDataSet" msdata:IsDataSet="true">
    - <xs:complexType>
    - <xs:choice maxOccurs="unbounded">
    - <xs:element name="image">
    - <xs:complexType>
    - <xs:sequence>
      <xs:element name="url" type="xs:string" minOccurs="0" />
      <xs:element name="id" msdata:AutoIncrement="true" type="xs:int" />
      <xs:element name="title" type="xs:string" minOccurs="0" />
      <xs:element name="description" type="xs:string" minOccurs="0" />
      <xs:element name="date" type="xs:string" minOccurs="0" />
      <xs:element name="size" type="xs:string" minOccurs="0" />
      <xs:element name="width" type="xs:int" minOccurs="0" />
      <xs:element name="height" type="xs:int" minOccurs="0" />
      <xs:element name="t_width" type="xs:int" minOccurs="0" />
      <xs:element name="t_height" type="xs:int" minOccurs="0" />
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:choice>
      </xs:complexType>
    - <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//image" />
      <xs:field xpath="id" />
      </xs:unique>
      </xs:element>
      </xs:schema>
View Complete Thread