2012年11月21日

UpdatePanel上使用FileUpload上传文件

摘要: 首先我很遗憾的告诉大家,因为微软的偷懒,目前UpdatePanel还不支持文件上传。我查了下,有两个办法,我已测试过了,真得很好用。方案一的解决办法就是UpdatePanel中设置PostBackTrigger:<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:FileUpload ID="FileUpload1" runat="server" /><asp:Button ID=& 阅读全文

posted @ 2012-11-21 17:39 843408615 阅读(159) 评论(0) 推荐(0) 编辑

2012年11月20日

前台调用后台方法

摘要: <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="ID" EnableModelValidation="True" Width="589px" PageSize="5" onpageindexchanging="GridView1_PageIndexChangin 阅读全文

posted @ 2012-11-20 15:44 843408615 阅读(110) 评论(0) 推荐(0) 编辑

2012年11月9日

图片上传

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;namespace DeleteAllFiles{ public partial class Form2 : Form { public Form2() { InitializeComponent(); } priv 阅读全文

posted @ 2012-11-09 15:21 843408615 阅读(85) 评论(0) 推荐(0) 编辑

2012年11月2日

dataGridview显示行时多显示一行??如何去除

摘要: AllowUserToAddRows=false; 阅读全文

posted @ 2012-11-02 11:09 843408615 阅读(384) 评论(0) 推荐(0) 编辑

2012年11月1日

计时器

摘要: [DllImport("kernel32", EntryPoint = "Beep")] public extern static int Beep(int dwfreq,int dwduration);//系统声音 private void Form1_Load(object sender, EventArgs e) { string strHour = DateTime.Now.TimeOfDay.Hours.ToString(); string strMouit = DateTime.Now.TimeOfDay.Minutes.ToString() 阅读全文

posted @ 2012-11-01 09:22 843408615 阅读(146) 评论(0) 推荐(0) 编辑

导航