Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Problem while File Uploading Using AJAX

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ram - 30 Aug 2007 17:32 GMT
hi, i'm trying to upload files.

     i used <input type=file id=Uploadfile runat=server">.
i have placed the control in Updatepanel(AJAX)

when i'm trying to upload it.. it is showing Object reference is not
set to an instance of an Object.

any suggestions.
bruce barker - 30 Aug 2007 23:41 GMT
the updatepanel does not support <input type="file"> except under
certain conditions. if a file is selected, you must do a postback, not
an ajax call. this means the submit button is not a trigger for the
panel. if the trigger is selected, then the filename will be lost and
must be reselected when the panel repaints.

this is because ajax cannot upload a file, only a browser submit can.

-- bruce (sqlwork.com)

> hi, i'm trying to upload files.
>
[quoted text clipped - 5 lines]
>
> any suggestions.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.