protected void Button1_Click(object sender, EventArgs e)
{ int num = 0; if (num < 9)
{ PictureCommand picup = new PictureCommand();
if (picup.UpLoadIMG(this.FileUpload1))
{
Response.Write(picup.OFullName.ToString() + PictureCommand.MSG.ToString()); if (Session["imgurl"] == null ) //判断url地址集合是否有
{
Session["imgurl"] = picup.OFullName.ToString();
}
else
{
Session["imgurl"] = picup.OFullName.ToString() + ";" + Session["imgurl"];
} this.Panel1.Controls.Clear();
this.img((Session["imgurl"]).ToString()); num=num+1;
//Response.Redirect("00.aspx");
}
else
{ Response.Write(picup.OFullName.ToString() + PictureCommand.MSG.ToString());
} }
else
{
Response.Write("最多上传9张图片");
}
}
{ int num = 0; if (num < 9)
{ PictureCommand picup = new PictureCommand();
if (picup.UpLoadIMG(this.FileUpload1))
{
Response.Write(picup.OFullName.ToString() + PictureCommand.MSG.ToString()); if (Session["imgurl"] == null ) //判断url地址集合是否有
{
Session["imgurl"] = picup.OFullName.ToString();
}
else
{
Session["imgurl"] = picup.OFullName.ToString() + ";" + Session["imgurl"];
} this.Panel1.Controls.Clear();
this.img((Session["imgurl"]).ToString()); num=num+1;
//Response.Redirect("00.aspx");
}
else
{ Response.Write(picup.OFullName.ToString() + PictureCommand.MSG.ToString());
} }
else
{
Response.Write("最多上传9张图片");
}
}
解决方案 »
- msiexec.exe作为卸载程序,卸载不完全,有残留文件,求解决方案
- WPF 的一些问题
- tableTableAdapter.Fill(this.database1DataSet.table)
- dataset 打印(或者datatable)-160在线
- WPF程序:图像的ARGB数字矩阵输出。发现某些像素点结果不正确。谁帮忙看看哪里出了问题?
- 这样的函数怎么dllimport
- 在.net中,反复使用动态生成的含有非托管资源的对象,是否会产生内存泄露?
- 自己做了一个简单的windows服务程序,安装的过程中出现设置服务登陆的对话框!要求输入用户和密码以及验证密码!
- C#继承的简单问题:
- 在vs.net里怎么样把一个不同应用文件放到不同的文件夹里
- WPF中控件显示问题,Z轴显示不对,控件被遮住
- 如何设置DataGridView只能在选中行弹出右键菜单?
=>
while (num < 9)
定义全局变量,不然num一直都会是0