473,385 Members | 1,341 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,385 software developers and data experts.

Use my own button in input=file ??

Hi there, I have read posts that say you can change certain style attributes
of this html control but we actually have defined buttons for our site, and
the browse button in this control just doesnt conform to this. I would really
like to create a bespoke button to use with the control. Can I do this (dont
think so)? If not, I'll probably have to produce my own text box with a
button which opens a file browser window, then places the path in this text
box. Does anyone have any examples on how to do this? I am using c# .net and
javascript. thanks.
Nov 19 '05 #1
3 1698
On Tue, 22 Feb 2005 02:43:01 -0800, louise raisbeck
<lo************@discussions.microsoft.com> wrote:
Hi there, I have read posts that say you can change certain style attributes
of this html control but we actually have defined buttons for our site, and
the browse button in this control just doesnt conform to this. I would really
like to create a bespoke button to use with the control. Can I do this (dont
think so)? If not, I'll probably have to produce my own text box with a
button which opens a file browser window, then places the path in this text
box. Does anyone have any examples on how to do this? I am using c# .net and
javascript. thanks.


You won't be able to write to the path property of a file/browse input
control for security reasons.

--
Iain Norman | http://www.eliteforum.org
Nov 19 '05 #2
I've had the same problem and just wound up using the standard html control.
So now I have this one ugly gray button that doesn't conform to the design
spec.

I know that somehow the html file input control resolves the local file to
something that the server can understand because we have this HTTPPostedFile
object which is readonly. If I can find out how this resolution happens,
I'll let you know.
"louise raisbeck" <lo************@discussions.microsoft.com> wrote in
message news:43**********************************@microsof t.com...
Hi there, I have read posts that say you can change certain style attributes of this html control but we actually have defined buttons for our site, and the browse button in this control just doesnt conform to this. I would really like to create a bespoke button to use with the control. Can I do this (dont think so)? If not, I'll probably have to produce my own text box with a
button which opens a file browser window, then places the path in this text box. Does anyone have any examples on how to do this? I am using c# .net and javascript. thanks.

Nov 19 '05 #3
http://www.quirksmode.org/dom/inputfile.html

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"louise raisbeck" <lo************@discussions.microsoft.com> wrote in
message news:43**********************************@microsof t.com...
Hi there, I have read posts that say you can change certain style attributes of this html control but we actually have defined buttons for our site, and the browse button in this control just doesnt conform to this. I would really like to create a bespoke button to use with the control. Can I do this (dont think so)? If not, I'll probably have to produce my own text box with a
button which opens a file browser window, then places the path in this text box. Does anyone have any examples on how to do this? I am using c# .net and javascript. thanks.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Yong Wang | last post by:
Hi, All: I need to read a input file as soucre to process data. Ideally if I can read a line from input file as a list (coloumn separate by white space), reorganize field in a line. Does python...
1
by: SL_McManus | last post by:
Hi; What I am trying to do is to read the input file and and pull a 10 byte section of lines 4 - 6 to a variable. I would take these in order and drop the numbers into $x, $y, & $z. I'm not sure...
6
by: Eric Lavigne | last post by:
Here is a shell command (MS-DOS): debug\curve-fit <input.txt >output.txt And here is a Python script that *should* do the same thing (and almost does): import os inputfilename =...
2
by: Malcolm | last post by:
I volunteered to write a program for someone to calculate Wagner trees. (A Wagner tree is a phylogenetic tree made by comparing lists of traits, which are coded as integers, and for which the basal...
5
by: google | last post by:
first, a little background... i have a C program which preprocesses some data, and then outputs the results into a text file. that text file, in turn, is used as input to a FORTRAN...
0
by: darren | last post by:
When using the html input file (input type=file), is there anyway to NOT have the file loaded on the server? I am only interested in using this control to browse to a file and then get the filename,...
9
by: paczkow | last post by:
Dear Python Community, I am an engineering and I am experiencing some trouble. Having output data from other software I want to use it. To achieve this I decided to use Python since this...
5
by: jwright | last post by:
I have decided to use a struct to collect my data. The input file is comma dilineated between almost all of the fields. Here is the code I have so far and a sample input and output file. ...
0
by: srikar | last post by:
Hi all, I am having a problem, when I am compiling the code in 32 bit option on a 64 bit machine using the macro CPPFLAGS= -m32 I am getting the following warnings from the linker . ...
1
by: suhdominic | last post by:
#include <iostream> #include <fstream> using namespace std; int main() { cout << fixed << showpoint; float a0,a1,a2,a3,a4,a5,a6,a7,a8; // Nine constant values in the polynomial
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.