×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    12

    Exclamation problem showing image in WAP site

    Hi, I try to show Image in my wap site, but some how it's not working!
    I try to put default html default image and as well as ASP (.net 2.0) image but its not showing any!
    Anyway, i put the code below, and can anyone tell me what's wrong with it!..
    Thanks.

    <img src="cb_logo.gif" runat="server" width="100" height="29">
    OR
    <asp:Image ID="Image1" runat="server" ImageUrl="~/CB_logo/cb_logo.gif" />

    And my page full source code is like this,

    <%@ Page Language="C#" AutoEventWireup="true" ContentType="text/xhtml/html" CodeFile="test.aspx.cs" Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>WAP Home</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:Panel ID="Panel1" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Height="200px"
    Width="160px">
    <asp:Panel ID="Panel3" runat="server" Height="35px" Width="157px">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/CB_logo/cb_logo.gif" />
    </asp:Panel>
    <asp:TextBox ID="txtSearch" runat="server" Font-Names="Tahoma" Width="152px" Wrap="False"></asp:TextBox>
    <asp:Panel ID="Panel2" runat="server" Height="15px" Width="157px">
    <asp:Button ID="Button1" runat="server" Height="19px" Text="Quick Search" Width="114px" /></asp:Panel>
    <asp:Label ID="Label2" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Width="152px">(e.g. mobile nokia)</asp:Label><br />
    </asp:Panel>

    </div>
    </form>
    </body>
    </html>

  2. #2
    Registered User
    Join Date
    Jun 2006
    Location
    England
    Posts
    49

    Re: problem showing image in WAP site

    Need to see the generated source code recieved by the handset, not the server side code.

    Do you have a link to a page?? That way i can see exactly what code is being delivered and what headers are being sent.

    I'm a PhP programmer and not familiar with aspx to be honest as i prefer the more hands on approach to coding.

    Also what handset(s)??

    Be aware that coding for mobile is radically different than that for Web.
    Not all Xhtml/html Tags and Attributes are available for use due to the developing nature of this platform.
    Last edited by SimonThomas; 2006-12-15 at 00:22.
    http://wapple.net
    Mobile Internet Solutions

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    12

    Re: problem showing image in WAP site

    Quote Originally Posted by SimonThomas
    Need to see the generated source code recieved by the handset, not the server side code.

    Do you have a link to a page?? That way i can see exactly what code is being delivered and what headers are being sent.

    I'm a PhP programmer and not familiar with aspx to be honest as i prefer the more hands on approach to coding.

    Also what handset(s)??

    Be aware that coding for mobile is radically different than that for Web.
    Not all Xhtml/html Tags and Attributes are available for use due to the developing nature of this platform.

    Thanks buddy!
    I'm afraid, if i give you that wap address, you can't visit, because that's in a private domain and limited number of people can access that site.
    We face difficulties specially in Nokia handsets. (e.g. Nokia 6020, 6021, 3120 etc.)
    Yes, i agree with you, the mobile platform is different, that's why we are facing so many problems.

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    42

    Re: problem showing image in WAP site

    Hi,

    I think this tag is not supported:
    <div> for mobile browser

    What picture not displayed? These are the possible causes:

    1. If the mobile phone is Wap1.0, this supports only basic black and white bitmap

    2. if the mobile phone is WAp2.0, then you image size should not be bigger than the screen pixel.

    for ie if the mobile phone is 240X320 pixel, the Photo you want to show must be less than or same same 240x320 pixel

    the panel will not help in this case.

    Try and see if this works.






    <body>
    <form id="form1" runat="server">
    <div>
    <asp:Panel ID="Panel1" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Height="200px"
    Width="160px">
    <asp:Panel ID="Panel3" runat="server" Height="35px" Width="157px">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/CB_logo/cb_logo.gif" />
    </asp:Panel>
    <asp:TextBox ID="txtSearch" runat="server" Font-Names="Tahoma" Width="152px" Wrap="False"></asp:TextBox>
    <asp:Panel ID="Panel2" runat="server" Height="15px" Width="157px">
    <asp:Button ID="Button1" runat="server" Height="19px" Text="Quick Search" Width="114px" /></asp:Panel>
    <asp:Label ID="Label2" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Width="152px">(e.g. mobile nokia)</asp:Label><br />
    </asp:Panel>

    </div>
    </form>
    </body>

  5. #5
    Registered User
    Join Date
    Dec 2006
    Posts
    12

    Re: problem showing image in WAP site

    Quote Originally Posted by DancingWave
    Hi,

    I think this tag is not supported:
    <div> for mobile browser

    What picture not displayed? These are the possible causes:

    1. If the mobile phone is Wap1.0, this supports only basic black and white bitmap

    2. if the mobile phone is WAp2.0, then you image size should not be bigger than the screen pixel.

    for ie if the mobile phone is 240X320 pixel, the Photo you want to show must be less than or same same 240x320 pixel

    the panel will not help in this case.

    Try and see if this works.
    My image "cb_logo.gif" width is 100 pixel and hight is 29 pixel

    The code is still the same, but i think problem lies else where

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    12

    Re: problem showing image in WAP site

    guys, thank you all for trying.. the problem resolved at last!..

Similar Threads

  1. Problem with image decoding using CImageDecoder::DataNewL
    By sebi_ichim in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-08-30, 05:06
  2. Problem of drawing FLIPPED Image after clipping in Nokia 3510i handset
    By radhesh in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-12-10, 03:29
  3. Problem in loading image into WAP emulator through jsp
    By gchuaay in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2002-05-15, 12:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×