摘要:
windows.xaml<NavigationWindow x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" ShowsNavigationUI="False" Source="Index.x 阅读全文
摘要:
Main.xaml <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <!--TitlePanel 包含应用程序的名称和页标题--> <StackPanel x:Name=&quo 阅读全文
摘要:
前台:page.xaml<phone:PhoneApplicationPage x:Class="PhoneApp1.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phon 阅读全文
摘要:
System.Net.IPHostEntry IpEntry = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()); for (int i = 0; i != IpEntry.AddressList.Length; i++) { if (!IpEntry.AddressList[i].IsIPv6LinkLocal) { MessageBox.Show(IpEntry.AddressList[i].ToString()); } }在最后一行字符串不知道为什么获取... 阅读全文
摘要:
刚开始接触jquery,很多东西不熟悉在用$("#id")来获得页面的input元素的时候,发现$("#id").value不能取到值后来终于在伟大的百度帮助下,找到了问题的原因:$("")是一个jquery对象,而不是一个dom elementvalue是dom element的属性jquery与之对应的是valval() :获得第一个匹配元素的当前值。val(val):设置每一个匹配元素的值。所以,代码应该这样写:取值:val = $("#id")[0].value;赋值:$("#id")[ 阅读全文
摘要:
function isEmail(obj) { reg = /^\w{3,}@\w+(\.\w+)+$/; $("#emailSure").removeClass('imgSure'); if (!reg.test(obj)) { $("#emailSure").attr("src", "img/error.png"); } else { $("#emailSure").attr("src", "img/success.png"); } } 阅读全文
摘要:
连接数据库时加上 charset=utf8 如下: <connectionStrings> <add name="ClinicDB" connectionString="Data Source=localhost;User Id=root;Password=root;Database=Clinic;charset=utf8;"/> </connectionStrings> 阅读全文
摘要:
下载Dblinq-0.20.1编写批处理文件,放在Dblinq文件夹中,生成数据操作类。@echo offDbMetal.exe -provider="MySql" -conn="Data Source=localhost;port=3306;User Id=***;Password=***" -database="***" -namespace="***" -code="mysql\***.cs" -sprocs把生成的***.cs文件复制到项目中修改生成的代码:更改继承到DbLinq.MyS 阅读全文