Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 16th, 2003, 06:12 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default htmlInput control doesn't work with Access file?

In my asp.net app, I used an htmlInput control to upload either Excel, Access or text files. Both Excel and text file

types work, but not Access file type. I got error message saying Can't find server or DNS error.

If I don't click on the Browse button of the control, the app works fine. It doesn't work if I click on it. I guess that

means it's not a permission issue.

Code:
Try
                txtUpload.PostedFile.SaveAs(sFullPath)
                lblErrorMessage.Text = "Upload of File " & sFile & " to " & sFullPath & " succeeded"
                uploadSuccessed = True
            Catch Ex As Exception
                lblErrorMessage.Text = "Upload of File " & sFile & " to " & sFullPath & " failed for the following reason:

" & Ex.Message
                uploadSuccessed = False
            Finally
                lblErrorMessage.Font.Bold = True
                lblErrorMessage.Visible = True
            End Try

Thanks for your help!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Control button to print 20 reports - doesn't work chacquard Access VBA 5 December 14th, 2006 01:11 PM
User Control won't work! papaparsons ASP.NET 2.0 Basics 2 April 9th, 2006 11:44 PM
User Control: Tab key does not work alhad VB.NET 2002/2003 Basics 0 November 3rd, 2005 03:20 AM
cant get tab control to work tmc Access 1 August 4th, 2004 10:17 AM
HTMLInput Control / Something weird ViagraFalls ASP.NET 1.0 and 1.1 Basics 2 September 4th, 2003 10:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.