Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to upload a file using file upload control inside the
Update Panel???

Answers were Sorted based on User's Feedback



How to upload a file using file upload control inside the Update Panel???..

Answer / manikanta

In source aspx page
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<cc1:AsyncFileUpload ID="AsyncFileUpload1"
runat="server" UploaderStyle="Modern" ThrobberID="img1" />
<br />
<asp:Button ID="btnUpload" runat="server" Text="Upload"
onclick="btnUpload_Click" />
in Aspx.cs
{

AsyncFileUpload1.SaveAs(Server.MapPath((AsyncFileUpload1.FileName)));
Label1.Text = "You uploaded " +
AsyncFileUpload1.FileName;
}


Try running this and you will find that the whole operation
happens asynchronously without a full page reload. Note
that, you would need to still put the AsyncFileUpload
control inside UpdatPanel for this behaviour. Otherwise, it
would behave like a regular postback control.

Is This Answer Correct ?    2 Yes 0 No

How to upload a file using file upload control inside the Update Panel???..

Answer / vivek

using Triggers

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

What are PDBs? Where must they be located for debugging to work?

4 Answers  


WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID

1 Answers   Seion Infotech,


What is validation in asp.net?

0 Answers  


How long do session variables last?

0 Answers  


Do you know using sql cache invalidation?

0 Answers  


What are the intrinsic objects present in ASP.NET

1 Answers   IBM,


What is the best Macanism to clear the Cache in asp.net

0 Answers   MCN Solutions,


What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?

2 Answers  


What does setting a control's EnableViewState property to false accomplish?

1 Answers  


Whats the difference between abstract factory pattern and factory pattern?

0 Answers  


Where is asp.net session stored?

0 Answers  


What are the various ways of securing a web site that could prevent from hacking etc ?

1 Answers  


Categories