Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / October 2003

Tip: Looking for answers? Try searching our database.

can't get asp.net  to work on device

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dante - 29 Oct 2003 01:51 GMT
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
steph - 30 Oct 2003 16:25 GMT
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.

>-----Original Message-----
>My ASPX page works on my desktop computer, but when i run
[quoted text clipped - 40 lines]
>  </asp:DataList>
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.