Posts

Showing posts from September, 2012

Upload control with Ajax.

We can achieve this by using iframe. (Its not AJAX but works with AJAX) We need to create two pages uploadAttachment.aspx and default.aspx. default.aspx is main page and uploadAttachment.aspx is supporting page.   UploadAttachment.aspx <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="UploadAttachment.aspx.vb"     Inherits="RNDWeb.UploadAttachment" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <body>     <form method="POST" target="_self" enctype="multipart/form-data" action="UploadAttachment.aspx"     runat="server">     <div>         <asp:FileUpload ID="fuAttachment" runat="server" />         <asp:Button ID="btnUpload" runat="server" Text="UPLOAD" Style="visibility: hidden;" />  ...