Common/ImageUpload.cs
public class ImageUpload:System.Web.UI.Page
{
public string UploadImgName(HtmlInputFile fils)
{
string FileClient=fils.PostedFile.FileName;
string FileName=string.Empty;
if(FileClient!="")
{
FileName =Path.GetFileName( FileClient );
string Serverurl =Server.MapPath("../Upload/"+FileName);
fils.PostedFile.SaveAs(Serverurl);
}
return FileName;
}
}
链接iFrame子框架页与普通页间:
[例]A.aspx------>B.aspx;即A页面中iframe框架中显示B.aspx页面的内容
A.aspx中:
<a target="_Parent">
其它的页面标签部分
<a href="B.aspx" target="main">goto B.aspx</a>
<iframe name="main" width="100%" height="100%"></iframe>
</a>
[效果如下所述]