Thanx for u r rpy,
I tried this but my problem is that i m placing the FileUpload control
inside ModelpopExtender ,
i can able to upload the file when i click to upload button but my
ModelpopExtender vanishes ....
so that i can show the progress of file upload ...


Thanks & Regards,
Shrinivas Mada,



On Sat, Apr 25, 2009 at 8:23 PM, Jinesh John <[email protected]>wrote:

>
>  protected void  Button1_Click(object sender, EventArgs e)
>     {
>  if (FileUpload1.HasFile)
>             try
>             {
>               string filePath1 = Server.MapPath("~/Pictures");
>          TextBox2.Text =
> Path.GetFileNameWithoutExtension(FileUpload1.PostedFile.FileName) +
> Path.GetExtension(FileUpload1.PostedFile.FileName);
>                 FileUpload1.SaveAs(filePath1 + "\\" + TextBox2.Text);
>
>             }
>             catch (Exception ex)
>             {
>                 Label13.Text = "ERROR: " + ex.Message.ToString();
>             }
>         else
>         {
>             Label13.Text = "You have not specified a file.";
>         }
> }
>

Reply via email to