给点asp.net(c#)开发wap的示例,给者有分
解决方案 »
- Asp.net实现邮件的收发,要BS版的,急
- 强烈求助,做不到就被fire了100分!js,jquery,C#不管用什么如何获得页面像素点?
- 即时信息提示功能的实现(高手)
- 新手问两个问题
- 一个判断语句执行的问题
- 项目太大,编译一次花近5钟!!
- 非常喜欢也非常感谢lkk2073(三楼楼长)大哥所发布的OA。新建一群,希望大家进来讨论和互相解除在学习此OA过程中的疑问,群号:6437531
- 怎么用C#把数据库中图片表中存放的图片路径读取出来,然后用ASP.NET中的控件显示出来!
- 我想在状态栏显示当前用户和所属部门。该怎么做呢???
- treeview 的问题,我把webctrl_client 也搞上了,数据怎么还是没有树状效果,请各位指点。我有一个行的,但是其他目录就是不行,不知道怎
- 点击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>