</table>
</div>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Child.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class Child : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.QueryString["fileid"] != null)
{
string fileid = Request.QueryString["fileid"];
FileUpld.Visible = false;
TextBox1.Visible = true;
TextBox1.Text = fileid;
TextBox1.CssClass = "hidden1";
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
bool Flage=false;
string FileName = FileUpld.FileName;
string strExPrentFile = Path.GetExtension(FileName).ToLower();
string[] AgreeExPrentFile = new string[] { ".jpg", ".txt" };
for(int i=0;i<AgreeExPrentFile.Length;i++)
{
if(strExPrentFile.Equals(AgreeExPrentFile[i]))
{
Flage=true;
}
}
if(Flage)
{
string fn=DateTime.Now.ToStrin |