Strange behavior RRS feed

  • Question

  • User-144466109 posted

    if there is a link and a textbox on page ASP.NET renders page in a strange way for some devices.
    It render link control and add OK button to go to other controls (textbox).
    How to avoid this?

    Friday, July 15, 2005 6:37 AM

All replies

  • User-95607119 posted
    You already asked it before. Asking again.. hmm... makes no point I think. Give us more information to help you.

    What devices have problems?
    What is your markup output?
    Give example of output you get.

    It is hard to tell you exact reason based on so few information.
    Friday, July 15, 2005 7:07 AM
  • User-144466109 posted

    Qnnn, thanks for response. You are the first :)

    1. This problem occurs on this devices: Samsung C100, Siemens S55, Siemens M55. BTW it also works incorrectly in Openware V7 Simulator.
    2. Here is the simple form:

     <mobile:Form id="Form1" runat="server">
      <mobile:Link id="Link1" runat="server">Link</mobile:Link>
      <mobile:TextBox id="TextBox1" runat="server"></mobile:TextBox>

    Output for Openware V7 Simulator:
    <?xml version='1.0'?>
    <!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'><wml><head>
    <meta http-equiv="Cache-Control" content="max-age=0" />
    <onevent type="onenterforward"><refresh><setvar name="TextBox1" value="" /></refresh></onevent>
    <do type="accept" label="Go"><go href="/lingvowap/(p01jyp2o5sy0s245gw5p5f45)/test.aspx" method="post"><postfield name="__EVENTTARGET" value="Form1" /><postfield name="__EVENTARGUMENT" value="$(Form1)" /><postfield name="TextBox1" value="$(TextBox1)" /></go></do><p><select name="Form1"><option onpick="">Link</option><option onpick="#card1">OK</option></select></p></card>
    <card id="card1">
    <p mode="wrap"><input name="TextBox1" />

    <?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype>
    Friday, July 15, 2005 7:40 AM
  • User-95607119 posted
    As I can read from outputed markup, then TextBox locates on other WML card. If you push button OK you should see this textbox. Seems like ASP.NET doesn't render input elements on same card for these devices. The other option is that this behaviour is specific to these devices. You an try to change this behaviour in you web.config file for these devices.
    Friday, July 15, 2005 8:09 AM
  • User-144466109 posted

    Yes, if i push OK i see textbox. But it is not comfortable.
    By the way, some other sites looks good on this devices.
    How can i change this behaviour with my web.config?


    Friday, July 15, 2005 8:33 AM
  • User-95607119 posted
    Check out these links:


    You should be also able to find information about web.config and device capabilities assigning from Google or other search engines.
    Friday, July 15, 2005 9:42 AM
  • User-144466109 posted

    Thanks, Qnnn.

    But there is still one question: What device property is responsible for this behaviour?

    Monday, July 18, 2005 9:34 AM
  • User-95607119 posted
    Check out rendering capabilities by example.
    Monday, July 18, 2005 1:29 PM
  • User-144466109 posted
    i tried:
    Tuesday, July 19, 2005 4:17 AM
  • User-95607119 posted
    Try to set CanCombineFormsInDeck to false for these devices and see what happens. And... also tell us what happens :)
    Tuesday, July 19, 2005 5:20 AM