求分页控件

尔东主机 2009-12-27 10:11:42
要可以在手机WAP网站上可以使用的,分页控件或分页代码.

或者有比<mobile:ObjectList>更好的控件,更好的可以分页的控件也行.

顺便,大家看 wap.noteu.cn 这个网站的代码有没什么问题,有没什么可以改进的,谢谢!

附代码:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="notes.aspx.cs" Inherits="wap_notes" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="Microsoft Visual Studio .NET 8.0" name="GENERATOR"/>
<meta content="C#" name="CODE_LANGUAGE"/>
<meta content="http://schemas.microsoft.com/Mobile/Page" name="vs_targetSchema"/>
</head>
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:Form Id="Form1" runat="server">
<mobile:Label Id="lbl1" Font-Size="Large" Runat="server">记事本</mobile:Label>
<mobile:Command Id="btnUrls" Format="Link" Font-Size="Normal" OnClick="btnUrls_OnClick" runat="server">转到书签列表</mobile:Command>
<mobile:Command Id="btnNotes" Format="Link" Font-Size="Normal" OnClick="btnNotes_OnClick" runat="server" Visible=False>转到记事本列表</mobile:Command>
<mobile:Label Id="lblFolderId" runat="server" Text="" Visible="False"></mobile:Label>
<mobile:Command id="btnExit" OnClick="btnExit_Click" Font-Size="Large" runat="server">签 退</mobile:Command>
<mobile:Label Id="lbl2" Font-Size="Normal" ForeColor="#ff0066" Runat="server">如无法签退,请直接关闭网页!查看完详细便签后Nokia手机请按右软键返回,Motorola手机请先按左软键再按左方向键返回!</mobile:Label><br /><br />
<mobile:Label Id="lblTitle" runat="server" Text="" Visible="False">标题</mobile:Label><mobile:TextBox Id="txtTitle" Size="25" Font-Size="Normal" Font-Bold="true" runat="server" Visible="False"></mobile:TextBox>
<mobile:Label Id="lblUrl" runat="server" Text="" Visible="False">网址</mobile:Label><mobile:TextBox Id="txtNote" Size="25" Font-Size="Normal" Font-Bold="true" runat="server"></mobile:TextBox> <br />
<mobile:Command Id="btnSave" runat="server" Text="添加便签" Font-Size="Large" OnClick="btnSave_Click" /> <br />
<mobile:ObjectList Id="RepeaterNote" runat="server" ItemsPerPage="10">
<DeviceSpecific>
<Choice Filter="isNokia6300">
<HeaderTemplate>
<table cellspacing="0" cellpadding="0" width="100%">
</HeaderTemplate>

<ItemTemplate>
<tr>
<td>
<mobile:Command Id="btnNote" Format="Link" Font-Size="Normal" OnClick="btnNote_OnClick" runat="server"><%# app.GetLenString(Convert.ToString(DataBinder.Eval(((ObjectListItem)Container).DataItem, "Title")), 12) %></mobile:Command>
</td>
</tr>
</ItemTemplate>

<FooterTemplate>
</table>
</FooterTemplate>
</Choice>
</DeviceSpecific>
</mobile:ObjectList>
</mobile:Form>
</body>
</html>
...全文
378 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
qj64699916 2010-07-19
  • 打赏
  • 举报
回复
xuexi
尔东主机 2009-12-31
  • 打赏
  • 举报
回复
新年快乐!你好!2010!

有人再给点主意吗?
fontpage2000 2009-12-29
  • 打赏
  • 举报
回复
学习
silentwins 2009-12-29
  • 打赏
  • 举报
回复
注册没有?

<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
尔东主机 2009-12-29
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 wuyq11 的回复:]
MobileControls.List分页控件
[/Quote]

编译返回错误:未能加载类型“MERPWAP.BestList”。 BestList.ascx
wuyq11,给点主意。谢谢!
尔东主机 2009-12-29
  • 打赏
  • 举报
回复
是不是代码有些过时了?新的VS 2008编译通不过?怎样改呢?有谁知道吗?恩。。。
尔东主机 2009-12-29
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 silentwins 的回复:]
注册没有?

HTML code<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile"%>
[/Quote]

有啊!BestList.ascx 代码:

<%@ Control Language="c#" AutoEventWireup="false" Codebehind="BestList.ascx.cs" Inherits="MERPWAP.BestList" TargetSchema="http://schemas.microsoft.com/Mobile/WebUserControl" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<mobile:list id="list" Decoration="Bulleted" runat="server"></mobile:list>
<mobile:Panel id="Panel1" runat="server" BreakAfter="True">
<mobile:Label id="Label1" runat="server" BreakAfter="False">[</mobile:Label>
<mobile:Label id="lbl_currpage" runat="server" BreakAfter="False">1</mobile:Label>
<mobile:Label id="Label2" runat="server" BreakAfter="False">/</mobile:Label>
<mobile:Label id="lbl_count" runat="server" BreakAfter="False">0</mobile:Label>
<mobile:Label id="Label3" runat="server" BreakAfter="False">] </mobile:Label>
<mobile:Label id="lbl_RoteCount" runat="server" BreakAfter="False">0</mobile:Label>
<mobile:Label id="Label5" runat="server" BreakAfter="False">条记录</mobile:Label>
</mobile:Panel>
<mobile:Panel id="Panel2" runat="server" BreakAfter="True">
<mobile:Command id="btn_first" runat="server" BreakAfter="False" Visible="False">[首页]</mobile:Command>
<mobile:command id="btn_syy" runat="server" BreakAfter="False" Visible="False">[上页]</mobile:command>
<mobile:command id="btn_xyy" runat="server" BreakAfter="False" Visible="False">[下页]</mobile:command>
<mobile:Command id="btn_end" runat="server" BreakAfter="False" Visible="False">[末页]</mobile:Command>
</mobile:Panel>
<mobile:Label id="lbl_index" runat="server" Visible="False">0</mobile:Label>
silentwins 2009-12-28
  • 打赏
  • 举报
回复
这个...只能自己写自定义控件了!
尔东主机 2009-12-28
  • 打赏
  • 举报
回复
谢谢,谁还有更好的办法?

分页最好能分多页。。。
尔东主机 2009-12-28
  • 打赏
  • 举报
回复
现在太忙,有时间我测试一下。
wuyq11 2009-12-27
  • 打赏
  • 举报
回复
尔东主机 2009-12-27
  • 打赏
  • 举报
回复
wap.noteu.cn 测试帐号: cjq3@yahoo.cn 密码:1
谢谢!
shop >前言:基于ssm分布式开发实现的电商项目(聚合工程) 注:本项目为开源项目,不能用于商业应用,仅供学习。 ### 使用工具: maven(构建项目),svn(版本控制工具),myeclipse(集成开发环境),nginx(反向代理), FastDFS (图片服务器),tomcat(web服务器),zookeeper(集群管理),mysql(数据库) Junit(测试) ### 技术栈: spring,springmvc,mybatis(框架) solr(搜索服务),redis(缓存),easyUI(后台系统页面) ### 数据库设计 tb_user用户表(id,username,password,phone,email,created,updated) tb_item商品表(id,title,sell_point,price,num,barcode,image,cid,status,created,updated) tb_cat商品分类表(id,parent_id,name,status,sort_order,is_parent,created,updated) tb_item_desc商品描述表(item_id,item_desc,created,updated) tb_item_param商品规格参数表(id,item_cat_id,param_data,created,updated) tb_item_param商品规格参数模板表(id,item_id,param_data,created,updated) tb_order订单表(payment,payment_type,post_fee,status,create_time,update_time,payment_time,consign_time,end_time,close_time,shipping_name,shipping_code,user_id,buyer_message,buyer_nick,buyer_rate) tb_order订单商品表(id,item_id,order_id,num,title,price,total_fee,pic_path) tb_order_shipping订单物流表(order_id,receiver_name,receiver_phone,receiver_mobile,receiver_state,receiver_city,receiver_district,receiver_address,receiver_zip,created,updated) tb_content_category商品目录分类表(id,parent_id,name,status,sort_order,is_parent,created,updated) tb_content商品目录表(id,category_id,title,sub_title,title_desc,url,pic,pic2,content,created,updated) ## 分布式系统 ### 商品后台管理系统 ### shop-manager(管理后台) 商品的添加功能: 1.商品类目选择-easyui异步tree控件的使用 2.图片上传(fastdfs+nginx) 3.富文本编辑器使用KindEditor 4.分页使用PageHelper插件,插件是基于mybatis的拦截器接口实现的 商品的展示功能: 1.分页插件的使用PageHelper。 2.easyUIDataGrid的使用 ### 前台系统 ### shop-rest(发布服务) ### shop-search(搜索服务) * 使用solr实现搜索,内容列表使用redis缓存,使用zookeeper管理集群 ### shop-sso (单点登录系统) SSO英文全称Single Sign On,单点登录。SSO是在多个应用系统中, 用户只需要登录一次就可以访问所有相互信任的应用系统。它包括 可以将这次主要的登录映射到其他应用中用于同一个用户的登录的机制。 它是目前比较流行的企业业务整合的解决方案之一。 用户登录: 1、接收用户名和密码 2、校验用户名密码 3、生成token,可以使用UUID 4、把用户信息写入redis,key就是token 5、把token写入cookie。 6、返回登录成功需要把token返回给客户端。 Session共享的问题: 1、tomcat做集群配置session复制。如果集群中节点很多,会形成网络风暴。推荐节点数量不要超过5个。 2、分布式架构。拆
<#-- 调用宏 -->宏支持参数传递、嵌套调用甚至嵌入HTML块,可用于构建复杂的UI组件库。优先选用Thymeleaf。

111,120

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧