给点asp.net(c#)开发wap的示例,给者有分
解决方案 »
- 求助:UpdatePanel中Autopostback不起作用!附源码
- 关于两个ArrayList内元素排序的问题...急...
- winform窗口间传数组怎么传?
- 如何生成WORD,EXCEL,PPT文件
- 如何用DataReader获取字段名
- 用jquery怎么实现注册用户时检测该用户是否存在啊
- 看到有些网站的图片能够360度旋转显示,不知用程序能不能实现?
- 帮忙想个算法 计算时间的
- 日文的操作系统中,转义字符是什么?
- 请问下,.net下上传比较大的文件,视频,用什么比较好?
- 点击gridview编辑状态下的更新怎么获取不到textbox改变之后的值?
- 求点击Datalist模版中ImageButton,弹出新窗口显示图片的正确写法
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Order.aspx.cs" Inherits="Order" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %><!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" ><body>
<mobile:Form id="Form1" runat="server" Alignment="Left">输入个人信息:<br /><br />用户姓名:<mobile:TextBox ID="txtUserName" Runat="server" MaxLength="4" Alignment="Left" BreakAfter="False" Size="8" StyleReference=""></mobile:TextBox> (如:张三)<br />出生日期:<mobile:TextBox ID="txtBirthday" Runat="server" Numeric="True" BreakAfter="False" Size="8" MaxLength="8"></mobile:TextBox> (如:19800101)<br />用户性别:<mobile:SelectionList
ID="slSex" Runat="server">
<Item Selected="True" Text="男" Value="男" />
<Item Text="女" Value="女" />
</mobile:SelectionList><mobile:Label
ID="labMobileNo" Runat="server" BreakAfter="False">手机号码:</mobile:Label><mobile:TextBox ID="txtMobileNo" Runat="server" MaxLength="11" Numeric="True"></mobile:TextBox><br /><mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click" Alignment="Left" BreakAfter="False" StyleReference="">提 交</mobile:Command> <mobile:Label
ID="labErrMsg" Runat="server" Font-Size="Normal" ForeColor="Red"></mobile:Label><br /><br />
<mobile:DeviceSpecific id="ds" runat="server">
<Choice>
<HeaderTemplate>
</HeaderTemplate>
<FooterTemplate>
<mobile:Link id="Lnk_Default" runat="server" NavigateUrl="Default.aspx">返回首页</mobile:Link>
</FooterTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Form>
</body>
</html>using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Mobile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.MobileControls;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Configuration;
using System.Text.RegularExpressions;using Wap.Business;
public partial class Order : System.Web.UI.MobileControls.MobilePage
{
int ProductID = 0;
string mobile_no = string.Empty; protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["ProductID"] != null)
{
ProductID = int.Parse(Request.QueryString["ProductID"].Trim());
}
if (Request.Headers["x-up-calling-line-id"] != null)
mobile_no = Request.Headers["x-up-calling-line-id"].Trim().Substring(Request.Headers["x-up-calling-line-id"].Trim().Length - 11);
if (!string.IsNullOrEmpty(mobile_no))
{
labMobileNo.Visible = false;
txtMobileNo.Visible = false;
}
}
protected void Command1_Click(object sender, EventArgs e)
{
//Response.Write(txtUserName.Text+txtBirthday.Text+slSex.Selection.Value);
}
}
<Item Value="1" Text="公司汇总报表" />
<Item Value="2" Text="个人汇总报表" />
<Item Value="3" Text="客户汇总报表" />
<Item Value="4" Text="部门汇总报表" />
</mobile:SelectionList> <mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click">确定</mobile:Command></mobile:Form> <mobile:Form id="Form2" runat="server" Title="个人汇总" >
<mobile:Label ID="Label2" Runat="server">起始日期</mobile:Label>
<mobile:TextBox ID="txtstartdate" Runat="server">
</mobile:TextBox>
<mobile:Label ID="Label3" Runat="server">终止日期</mobile:Label>
<mobile:TextBox ID="txtenddate" Runat="server">
</mobile:TextBox>
<mobile:Label ID="Label4" Runat="server">姓名</mobile:Label>
<mobile:TextBox ID="txtusername" Runat="server">
</mobile:TextBox>
<mobile:Command ID="Command2" Runat="server" OnClick="Command2_Click" Wrapping="Wrap" BreakAfter="False" >确定</mobile:Command>
<mobile:Command ID="Command6" Runat="server" OnClick="Command6_Click">返回</mobile:Command>
</mobile:Form>
<mobile:Form id="Form3" runat="server" Title="公司汇总"> <mobile:Label ID="Label5"
Runat="server">请输入年度</mobile:Label> <mobile:TextBox ID="txtyear" Runat="server">
</mobile:TextBox> <mobile:Command ID="Command3" Runat="server" OnClick="Command3_Click" BreakAfter="False">确定</mobile:Command> <mobile:Command
ID="Command7" Runat="server" OnClick="Command7_Click">返回</mobile:Command></mobile:Form>
<mobile:Form id="Form4" runat="server" Title="客户汇总">
<mobile:Label ID="Label6" Runat="server">起始日期</mobile:Label>
<mobile:TextBox ID="txtgodate" Runat="server">
</mobile:TextBox>
<mobile:Label ID="Label7" Runat="server">终止日期</mobile:Label>
<mobile:TextBox ID="txtbackdate" Runat="server">
</mobile:TextBox>
<mobile:Label ID="Label8" Runat="server">客户名称</mobile:Label>
<mobile:TextBox ID="txtcustomer" Runat="server">
</mobile:TextBox>
<mobile:Command ID="Command4" Runat="server" OnClick="Command4_Click" BreakAfter="False">确定</mobile:Command>
<mobile:Command ID="Command8" Runat="server" OnClick="Command8_Click">返回</mobile:Command> </mobile:Form>