can't get asp.net to work on device

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>

<asp:DataList runat="server" id="dlPictures"
RepeatColumns="3"
Width="600" CellPadding="5" ItemStyle-
HorizontalAlign="Center">
<ItemTemplate>
<%# Container.DataItem %>
</ItemTemplate>
</asp:DataList>
 
S

steph

Not sure if this is the reason why, but at a quick glance
it looks like all your content is images and all jpegs. If
this is the case it might just be that the phone you are
testing on is unable to display jpegs and hence no content
and no errors.

The best way I can think to move forward is to put some
text up as well and see if that comes through okay and
also to view the content on a phone emulator where you can
see the source code that is being sent to your phone -
openwave and winwap for example.

Hope this is of some help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top