D
dante
My ASPX page works on my desktop computer, but when i run
it on a device, a blank page loads with no error messages.
Is there something i need to change to get it to work for
the .net compact framework that is different on the
regular .net framework? here is the code:
<%@ Import Namespace="System.IO" %>
<script language="vb" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Const IMAGE_DIRECTORY as String = "/img/"
Const THUMBS_DIRECTORY as String = "/pre/"
Dim pics as ArrayList = new ArrayList()
Dim s as String, html as String
For Each s in Directory.GetFiles(Server.MapPath
(THUMBS_DIRECTORY), "*.jpg")
html = "<a href=""" & IMAGE_DIRECTORY &
Path.GetFileName(s) & """>" & _
"<img src=""" & THUMBS_DIRECTORY &
Path.GetFileName(s) & """>" & "</a>"
pics.Add(html)
Next
dlPictures.DataSource = pics
dlPictures.DataBind()
End Sub
</script>
<html>
<body>
<aspataList runat="server" id="dlPictures"
RepeatColumns="3"
Width="600" CellPadding="5" ItemStyle-
HorizontalAlign="Center">
<ItemTemplate>
<%# Container.DataItem %>
</ItemTemplate>
</aspataList>
it on a device, a blank page loads with no error messages.
Is there something i need to change to get it to work for
the .net compact framework that is different on the
regular .net framework? here is the code:
<%@ Import Namespace="System.IO" %>
<script language="vb" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Const IMAGE_DIRECTORY as String = "/img/"
Const THUMBS_DIRECTORY as String = "/pre/"
Dim pics as ArrayList = new ArrayList()
Dim s as String, html as String
For Each s in Directory.GetFiles(Server.MapPath
(THUMBS_DIRECTORY), "*.jpg")
html = "<a href=""" & IMAGE_DIRECTORY &
Path.GetFileName(s) & """>" & _
"<img src=""" & THUMBS_DIRECTORY &
Path.GetFileName(s) & """>" & "</a>"
pics.Add(html)
Next
dlPictures.DataSource = pics
dlPictures.DataBind()
End Sub
</script>
<html>
<body>
<aspataList runat="server" id="dlPictures"
RepeatColumns="3"
Width="600" CellPadding="5" ItemStyle-
HorizontalAlign="Center">
<ItemTemplate>
<%# Container.DataItem %>
</ItemTemplate>
</aspataList>