请问C#使用upload up = new upload();上传图片,需要什么其它组件吗?如何控制上传图片的大小?
解决方案 »
- ASP.NET连接数据库的问题
- 谈谈mvc里ActionResult与ViewResult的区别
- 实例化的问题
- System.ArgumentOutOfRangeException: StartIndex 不能小于 0。
- 帮忙啊这个在ASP里面怎么格式化成短日期格式啊
- 穷人出20提问,一个数据库连接的问题,各位大侠要拔刀相助呀。
- xmlHttp中文编码问题,请赐教。(CSDN里搜了没有相关贴子)
- aspx页面 添加一个可以直接发送 邮件的edit框
- 申请辞退ASP.NET的斑竹,另外请自荐/推荐一位新斑竹。
- 周末,快帮我看看,谢谢了,是treeview
- vs2003调试过程中,命令窗口输出的数字为什么是16进制的,怎么解决
- 为什么LinkButton在IE7下面点击没有反应?IE6是可以的
protected void Button1_Click(object sender, EventArgs e)
{
string pic, res;
upload up = new upload();
res = up.Up(file1, "newpic/");
Response.Write(up.Resup[Convert.ToInt32(res)]);
TextBox_pic.Text = up.s;
} 现在只能上传10K
<httpRuntime executionTimeout="90" maxRequestLength="20480"/>
executionTimeout 超时的时间
maxRequestLength 文件的大小好像最大不能超过10兆
{
string pic, res;
upload up = new upload();
res = up.Up(file1, "newpic/");
Response.Write(up.Resup[Convert.ToInt32(res)]);
TextBox_pic.Text = up.s;
}
其是Response.Write(up.Resup[Convert.ToInt32(res)]); 是什么意思?