-
- AJAX stands for Asynchronous Java script and XML
- AJAX enable a page asynchronously post back a page.
- Only required part load from server instead of entire page so its increase web performance.
-
Some control which are design for post back like file browser which can’t load a file if its not post back so you can’t upload a file when it’s in AJAX section.<asp:UpdatePanel ID="U1" runat="server"><ContentTemplate>........................................................................</ContentTemplate><Triggers><asp:PostBackTrigger ControlID="saveButton"></Triggers></asp:UpdatePanel>Here is your html code i leave ...... for your content Savebutton is a which post back entire pageSo i registered this button in trigger section post backTrigger register control which have to post back.....Save Button Codeif (FileUpload1.HasFile){string s = "~/Photo/Student/" + FileUpload1.FileName;FileUpload1.SaveAs(MapPath(s));}
Friday, 8 June 2012
How to save a file from HTML File Control in AJAX Section Using ASP.Net with C#
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment