小编use*_*839的帖子

使用iPhone浏览器处理搜索按钮?

我正在使用asp(移动)开发一个Web应用程序.

当使用iPhone浏览器在搜索文本框中输入一些搜索文本时(<mobile:TextBox ID="txtSearchData" Runat="server" BreakAfter=False></mobile:TextBox>), iPhone会启动搜索键盘,当我使用iPhone键盘单击搜索按钮时,它会刷新整个页面,但是单击文本框下方的搜索按钮工作正常.

谁能告诉我如何解决这个问题?

到目前为止,这是我的代码:

<body>
  <mobile:Form ID="frmSearch" Runat="server" Font-Name="NotSet" Font-Size="Small">
    <mobile:DeviceSpecific ID="dsSearch" Runat="server">
      <Choice Filter="isHTML32">
        <ScriptTemplate>
          <link href="StyleSheets/Common.css" rel="stylesheet" type="text/css"></link>
          <meta http-equiv="content-type" content="text/html; charset=utf-8" />
          <meta id="Meta1" name="viewport" content="width=device-width; initial-scale=1.0;" />
        </ScriptTemplate>
        <HeaderTemplate>
          <table cellspacing="2" width="100%">
            <tr>
              <td width="100%">
                <uc1:Header ID="ucHeader" runat="server" />
              </td>
            </tr>
          </table>
          <table>
            <tr>
              <td colspan="2"></td>
            </tr>
            <tr>
              <td align="right">
                Find :
              </td>
              <td>
                <mobile:DeviceSpecific>
                  <Choice="isHTML32">
                    <ContentTemplate>
                      <asp:DropDownList ID="lstGroups" runat="server"  OnSelectedIndexChanged="LstGroups_SelectedIndexChanged" AutoPostBack="true">
                      </asp:DropDownList>
                    </ContentTemplate>
                  </Choice>
                </mobile:DeviceSpecific>
              </td>
            </tr>
            <tr> …
Run Code Online (Sandbox Code Playgroud)

html asp.net iphone mobile

24
推荐指数
1
解决办法
1284
查看次数

会话变量未显示在其他页面中

我在menu.php中使用两个网页我无法获得会话变量的详细信息,它将显示未定义的索引.

Controller.php这样

    $info = mysql_fetch_array( $data );  
   session_start();
   // store session data
   $type="$info[TYPE]";
   $no="$info[NO]";

   $_SESSION['type']=$type;
   $_SESSION['no']=$no;
   echo "Pageviews=". $_SESSION['type'];
   echo "Pageviews=". $_SESSION['no'];
   header('Location:menu.php');
Run Code Online (Sandbox Code Playgroud)

menu.php

    <?php sesstion_start();
     echo "Pageviews=". $_SESSION['type'];
    echo "Pageviews=". $_SESSION['no'];
    ?>
Run Code Online (Sandbox Code Playgroud)

html php session session-variables

-1
推荐指数
1
解决办法
646
查看次数

标签 统计

html ×2

asp.net ×1

iphone ×1

mobile ×1

php ×1

session ×1

session-variables ×1