关于向数据库做insert操作的问题 我用asp.net做wap网站,用IE操作没问题。当我用模拟器的时候。加一条留言到数据库。英文OK,但有中文的时候。数据库字段里的值除了插入的。还有一个t.或者bo等等。为什么呢希望高手帮忙 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="wml_news" %><%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %><html xmlns="http://www.w3.org/1999/xhtml" ><body> <mobile:Form id="Form1" runat="server"> <a href="index.aspx">首页</a> <br /> <mobile:List ID="List1" Runat="server"> <DeviceSpecific> <Choice Xmlns="http://schemas.microsoft.com/mobile/html32template"> <ItemTemplate> 标题:<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "wap_title") %> <br /> 时间:<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "moditime") %> <br /> 来源:<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "news_from") %> <br /> </ItemTemplate> </Choice> </DeviceSpecific> </mobile:List> <mobile:Image ID="Image1" Runat="server"> </mobile:Image> <mobile:List ID="List2" Runat="server"> <DeviceSpecific> <Choice Xmlns="http://schemas.microsoft.com/mobile/html32template"> <ItemTemplate> 内容: <mobile:TextView ID="TextView1" Runat="server" Runat="server" > <%# DataBinder.Eval(((MobileListItem)Container).DataItem, "content") %> </mobile:TextView> </ItemTemplate> </Choice> </DeviceSpecific> </mobile:List> <mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click" Alignment="Left">上一页</mobile:Command> <mobile:Command ID="Command2" Runat="server" OnClick="Command2_Click">下一页</mobile:Command> <mobile:Label ID="Label1" Runat="server" >Label</mobile:Label> <mobile:List ID="List4" Runat="server"></mobile:List> <mobile:Link ID="Link2" Runat="server"> 查看所有评论</mobile:Link> <p><mobile:TextBox ID="TextBox1" Runat="server"> </mobile:TextBox> <mobile:Command ID="Command3" Runat="server" OnClick="Command3_Click">游客发表评论</mobile:Command> 用户名:<mobile:TextBox ID="TextBox2" Runat="server"></mobile:TextBox> 密 码:<mobile:TextBox ID="TextBox3" Runat="server"></mobile:TextBox> <mobile:Command ID="Command4" Runat="server">会员登陆发表</mobile:Command>相关新闻</p> <mobile:List ID="List3" Runat="server"> <DeviceSpecific> <Choice Xmlns="http://schemas.microsoft.com/mobile/html32template"> <ItemTemplate> <mobile:Link ID="Link1" Runat="server" NavigateUrl='<%#"news.aspx?page=1&id="+DataBinder.Eval(((MobileListItem)Container).DataItem, "id")+""%>'> <%# DataBinder.Eval(((MobileListItem)Container).DataItem, "wap_title") %> </mobile:Link> </ItemTemplate> </Choice> </DeviceSpecific> </mobile:List> <br /> <a href="index.aspx">返回首页</a> <br /> <a href=''>新歌</a> <a href=''>新专辑</a>|<a href=''>DJ</a>|<a href=''>歌手分类</a>|<a href=''>搜</a> <br /> <a href=''>华语排行</a> <a href=''>日韩</a> <a href=''>欧美</a>|<a href=''>经典老歌</a> </mobile:Form></body></html> 求一段简单的代码。关于Repeater分页后和条件查询后的数据。 请问有谁对wap开发比较熟悉? 如何当用户单击标题栏上的关闭按钮时执行删除数据库的某条记录() 自定义控件如何显示二进制的图片 快崩溃了,哪位好心人帮忙啊 为什么我的asp.net程序会让客户端浏览器出现“IE遇到问题,需要关闭...”? 急!在线等!xml绑定treeview问题? 介绍些关于 asp.net 2.0 中 web part 的站点或文章给我看看 谢谢了 面向对象的几大特征答案 为什么显示不出来,在线等待,马上给分 日期計算/數值格式化﹖﹖﹖ 哪里有这样的BLOG,支持ASP.NET
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %><html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<mobile:Form id="Form1" runat="server">
<a href="index.aspx">首页</a>
<br />
<mobile:List ID="List1" Runat="server">
<DeviceSpecific>
<Choice Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ItemTemplate>
标题:<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "wap_title") %>
<br />
时间:<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "moditime") %>
<br />
来源:<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "news_from") %>
<br />
</ItemTemplate>
</Choice>
</DeviceSpecific>
</mobile:List> <mobile:Image ID="Image1" Runat="server">
</mobile:Image> <mobile:List ID="List2" Runat="server">
<DeviceSpecific>
<Choice Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ItemTemplate>
内容:
<mobile:TextView ID="TextView1" Runat="server" Runat="server" >
<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "content") %>
</mobile:TextView>
</ItemTemplate>
</Choice>
</DeviceSpecific>
</mobile:List>
<mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click" Alignment="Left">上一页</mobile:Command>
<mobile:Command ID="Command2" Runat="server" OnClick="Command2_Click">下一页</mobile:Command>
<mobile:Label ID="Label1" Runat="server" >Label</mobile:Label>
<mobile:List ID="List4" Runat="server"></mobile:List>
<mobile:Link ID="Link2" Runat="server">
查看所有评论</mobile:Link>
<p><mobile:TextBox ID="TextBox1" Runat="server">
</mobile:TextBox> <mobile:Command ID="Command3" Runat="server" OnClick="Command3_Click">游客发表评论</mobile:Command> 用户名:<mobile:TextBox ID="TextBox2" Runat="server"></mobile:TextBox> 密 码:<mobile:TextBox ID="TextBox3" Runat="server"></mobile:TextBox> <mobile:Command ID="Command4" Runat="server">会员登陆发表</mobile:Command>相关新闻</p>
<mobile:List ID="List3" Runat="server">
<DeviceSpecific>
<Choice Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ItemTemplate>
<mobile:Link ID="Link1" Runat="server" NavigateUrl='<%#"news.aspx?page=1&id="+DataBinder.Eval(((MobileListItem)Container).DataItem, "id")+""%>'>
<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "wap_title") %>
</mobile:Link>
</ItemTemplate>
</Choice>
</DeviceSpecific>
</mobile:List>
<br />
<a href="index.aspx">返回首页</a>
<br />
<a href=''>新歌</a> <a href=''>新专辑</a>|<a href=''>DJ</a>|<a href=''>歌手分类</a>|<a href=''>搜</a>
<br />
<a href=''>华语排行</a> <a href=''>日韩</a> <a href=''>欧美</a>|<a href=''>经典老歌</a>
</mobile:Form>
</body>
</html>