473,378 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

File picker in ASP

I have a browse button on an ASP page(not dotnet). The function specified on onclick is Browse_for_file().
When I click that button,I want to browse through my folders, click on a file and select its fully qulailied
name on to a variable strFileName.

Please give the code for that.
Jun 6 '07 #1
3 1624
jhardman
3,406 Expert 2GB
It sounds like you are just asking for instructions to make an input type=file
[html]<input type="file" name="strFileName">
[/html]
Or are you saying you want to browse thru the server's files?

Jared
Jun 6 '07 #2
Thanks for the response.
But Jared in my case the 'input' won't do. I need to stick on to the screen shot given by the client. If I use the 'input' field, the Browse button will always be at right and the textbox will be left. They want in the reverse way.

Please tell how to handle if I use, input. I am not even able to pass on the variable to a function. Suggest how that can be done.

And also suggest any means of avoiding the input field
Jun 7 '07 #3
jhardman
3,406 Expert 2GB
Thanks for the response.
But Jared in my case the 'input' won't do. I need to stick on to the screen shot given by the client. If I use the 'input' field, the Browse button will always be at right and the textbox will be left. They want in the reverse way.
When you use <input type="file"> the browser actually determines how it will look, and the different browsers interpret it very differently. Are you sure that the browser your customer is using will display it the same way your browser displays it? The display might be affected by css (ask in the HTML forum).
Please tell how to handle if I use, input. I am not even able to pass on the variable to a function. Suggest how that can be done.
look up "request.binaryread()". I don't remember all the details, but this is how you access files passed to scripts.
And also suggest any means of avoiding the input field
The best idea in my mind would be to try a java applet (which might not be allowed depending on the user's security settings). Regardless, this is a client-side issue and therefore out of my area of expertise (ASP is strictly a server-side technology).

Good luck.

Jared
Jun 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Adrian Parker | last post by:
Hi. I have a date time picker in my program which uses ADO to read from an Access database. It works perfectly, unless the database is empty (no records) when opened. When you try to open an...
4
by: Rethish | last post by:
Hi All, I am developing an application in VB.net. I am using .Net Datetime picker control to manage the date. But I am not able to assign null/Empty value to the control. I found the property...
0
by: Li-fan Chen | last post by:
Hi guys, I don't know how Hotmail and Gmail pulls it off, but when you need to attach a file to your email, you just click a linkbutton and a file picker pops up. And when it closes it...
4
by: Michel Posseth [MCP] | last post by:
I have a problem with the date time picker validate event wich i believe is a bug How to reproduce : throw on a form a date time picker control and a textbox control select the validating...
5
by: Michel Posseth [MCP] | last post by:
Hello we have encountered the following problems with the date time picker control A : datetime picker control gives focus to last entered field when moving back and forward with focus how do...
0
by: fredloh | last post by:
i have a tab control on my form. i then have several microsoft date and time picker control on the tab control. when i select a date on any of the date and time picker control, the result of the...
3
tdw
by: tdw | last post by:
I have a working hyperlink field in a table, and it's form. I also have a working File Picker Dialog: FileDialog(msoFileDialogFilePicker), being used to create the hyperlink. What I need to do, and...
1
by: vp.softverm | last post by:
hi all . Am facing problem with the date picker. when i click on date picker in a popup window. the date table is opened in the middle of the pop up window. and it is unable to scroll with...
1
by: Bobby | last post by:
Hi, I'm using Office 2007. I have a text field called txtDate which is formatted to medium date. This gives me the date picker when the control has the focus. I have several other text controls...
0
by: =?Utf-8?B?a3BpenpsZQ==?= | last post by:
Hi all. using vs.net 9, C# I've got a trivial dilemma right now with my datetimepicker. It is bound to a datetime field in a database. This field is also set to not allow nulls. The default...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.