Re: Use my own button in input=file ??

From: Michael (xxx.xxx.xxx)
Date: 02/22/05


Date: Tue, 22 Feb 2005 09:34:20 -0800

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" <louiseraisbeck@discussions.microsoft.com> wrote in
message news:43C43B41-92CB-49D6-814F-007A165495EF@microsoft.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.