摘要: dropdownlist1.Items.Clear(); 全部删除 dropdownlist1.Items.Remove(要删除的选项); dropdownlist1.Items.RemoveAt(要删除的选项的索引); 阅读全文
posted @ 2017-03-23 16:51 SkyLeo 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "onekey", "alert('登陆失败')", true); 阅读全文
posted @ 2017-03-23 16:50 SkyLeo 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Bitmap bmp = new Bitmap(@"E:\TrainingPlatform\TrainingPlatform\Images\11floor.jpg"); MemoryStream ms = new MemoryStream(); bmp.Save(ms, System.Drawing.Imaging.Imag... 阅读全文
posted @ 2017-03-23 16:49 SkyLeo 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 1.可以在绑定事件里if(e.Row.Cells[0].Text.Length>50) e.Row.Cells[0].Text = e.Row.Cells[0].Text.SubString(0,50) + "..."2.也可以在前台页面中绑定写如下:<asp:Label ID="Label1" r 阅读全文
posted @ 2017-03-22 15:03 SkyLeo 阅读(134) 评论(0) 推荐(0) 编辑
摘要: AlternateView htmlBody = AlternateView.CreateAlternateViewFromString(body, null, "text/html"); string filePath = AppDomain.CurrentDomain.BaseDirectory 阅读全文
posted @ 2017-03-09 10:00 SkyLeo 阅读(137) 评论(0) 推荐(0) 编辑
摘要: /// /// 发送邮件 /// /// 发送人邮件地址 /// 发送人显示名称 /// 发送给谁(邮件地址) /// 主题 /// 内容 /// meetingInfo /// 邮件登录名 /... 阅读全文
posted @ 2017-03-09 09:55 SkyLeo 阅读(360) 评论(0) 推荐(0) 编辑
摘要: Paint paint=new Paint(); paint.setStyle(Paint.Style.STROKE); paint.setStrokeWidth(10); paint.setColor(Color.BLUE); paint.setTextSize(100); canvas.drawCircle(... 阅读全文
posted @ 2017-02-02 17:30 SkyLeo 阅读(178) 评论(0) 推荐(0) 编辑
摘要: setAntiAlias:设置画笔的锯齿效果 setColor:设置画笔颜色 setARGB:设置画笔的a,r,g,b值 setAlpha:设置Alpha(透明度) setTextSize:设置字体尺寸 setStyle:设置画笔风格 setStrokeWidth:设置空心的边框宽带 getColo 阅读全文
posted @ 2017-02-01 10:00 SkyLeo 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 1、使用 group、by 以及 into 关键字选择要分组的对象,确定如何分组并决定引用每个分组时要使用的假名: var matches = from employee in employees group employee by employee.TitleOfCourtesy into g ... // 在 LINQ 中使用 g... 阅读全文
posted @ 2017-01-05 15:21 SkyLeo 阅读(118) 评论(0) 推荐(0) 编辑