- 博客(19)
- 收藏
- 关注
转载 loacaldb常用命令
常用命令: 创建一个名字为"Test"的Sql实例: SqlLocalDB.exe create Test 启动Test数据库实例: SqlLocalDB.exe start Test 停止Test数据库实例: SqlLocalDB.exe stop Test 显示Test数据库...
2017-08-01 16:49:00
173
转载 三目运算符
Federal=IIf(Federal=String.Empty,"0",Federal)转载于:https://www.cnblogs.com/SkyLeo/p/7269159.html
2017-08-01 16:19:00
154
转载 VB读取sql文并删除
Private Sub UpdateTask() Dim connStr As String = ConfigurationManager.connectionStrings("TaxSoftwareConnection").ToString() if File.Exists(path) Dim ...
2017-07-26 10:09:00
157
转载 openfiledialog的RestoreDirectory 属性问题
MSDN上的解释是 Getsorsetsavalueindicatingwhetherthedialogboxrestoresthecurrentdirectorybeforeclosing. 应该是是否恢复currentdirectory,而不是打开对话框时的目录 对应的变量是Environment.CurrentDirectory:如果RestoreD...
2017-07-05 14:26:00
801
转载 NetworkOnMainThreadException异常
解决办法:在发起Http请求的Activity里面的onCreate函数里面添加如下代码: StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectDiskReads().detectDiskWrites().detectNetwork()...
2017-05-20 23:36:00
93
转载 后台控制GridView中Itemtemplate中控件属性
1、foreach(GridViewRowgringridview1.Rows) { LinkButtonl=gr.FindControls("LinkButton1")asLinkButton; } 2、Visible='<%#GetVisible(Eval("id"))%>' publicboolGetVisible(objectx){returnt...
2017-05-18 13:33:00
348
转载 上传大小限制
1.修改web.config文件可以改变这个默认值 <configuration> <system.web><httpRuntimemaxRequestLength="1048576"executionTimeout="3600"/>...
2017-05-15 21:24:00
149
转载 SSRS常见问题
常见问题:1、空白页处理:select --> Tablix_ ,然后通过tablix的虚线条,来控制大小,并且将白板的长框也移动到最小。2、查询多个,出现的报表第二个数据不在报表上:设置Retangle Properties,选中Keep contents together on a sinigle page, if possible转载于:https://www.c...
2017-05-15 15:36:00
323
转载 SQL 分页存储过程
https://www.codeproject.com/articles/125541/effective-paging-with-gridview-control-in-asp-net转载于:https://www.cnblogs.com/SkyLeo/p/6693337.html
2017-04-11 14:14:00
100
转载 SQLHelper
<!-- webconfig中配置 --><connectionStrings> <add name="Connection" connectionString="server=(LocalDB)\Software;database=D:\XMEN\TTAXSOFTWARE.MDF;Integrated Security=True;Multipl...
2017-03-23 16:53:00
106
转载 dropdownlist操作
dropdownlist1.Items.Clear(); 全部删除dropdownlist1.Items.Remove(要删除的选项); dropdownlist1.Items.RemoveAt(要删除的选项的索引);转载于:https://www.cnblogs.com/SkyLeo/p/6605995.html...
2017-03-23 16:51:00
147
转载 无白页弹框
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "onekey", "alert('登陆失败')", true);转载于:https://www.cnblogs.com/SkyLeo/p/6605989.html
2017-03-23 16:50:00
118
转载 图片转base32
Bitmap bmp = new Bitmap(@"E:\TrainingPlatform\TrainingPlatform\Images\11floor.jpg"); MemoryStream ms = new MemoryStream(); bmp.Save(ms, System.Drawing.Imag...
2017-03-23 16:49:00
422
转载 GridView字段+...
1.可以在绑定事件里if(e.Row.Cells[0].Text.Length>50)e.Row.Cells[0].Text=e.Row.Cells[0].Text.SubString(0,50)+"..."2.也可以在前台页面中绑定写如下:<asp:LabelID="Label1"runat="server"Text='<%#(Eval("商品简介字...
2017-03-22 15:03:00
97
转载 .net 发邮件
//图片将以附件方式发送ContentType ct = new ContentType(); ct.MediaType = MediaTypeNames.Image.Jpeg; Attachment data = new Attachment(filePath + "Images/email.png", ct); data.Conten...
2017-03-09 10:00:00
158
转载 .net 发送Calendar
/// <summary> /// 发送邮件 /// </summary> /// <param name="from">发送人邮件地址</param> /// <param name="fromname">发送人显示名称</p...
2017-03-09 09:55:00
254
转载 Paint练习
Paint paint=new Paint(); paint.setStyle(Paint.Style.STROKE); paint.setStrokeWidth(10); paint.setColor(Color.BLUE); paint.setTextSize(100); canvas...
2017-02-02 17:30:00
147
转载 Android-Paint设置
setAntiAlias:设置画笔的锯齿效果setColor:设置画笔颜色setARGB:设置画笔的a,r,g,b值setAlpha:设置Alpha(透明度)setTextSize:设置字体尺寸setStyle:设置画笔风格setStrokeWidth:设置空心的边框宽带getColor:得到画笔颜色getAlpha:得到画笔的Alpha值转载于:ht...
2017-02-01 10:00:00
253
转载 LINQ笔记
1、使用 group、by 以及 into 关键字选择要分组的对象,确定如何分组并决定引用每个分组时要使用的假名:var matches = from employee in employees group employee by employee.TitleOfCourtesy into g ... // 在 ...
2017-01-05 15:21:00
91
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人