-
- 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));}
Pages
▼
No comments:
Post a Comment