Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Upload file using custom button

Reply
Thread Tools

Upload file using custom button

 
 
tshad
Guest
Posts: n/a
 
      06-14-2005
Is there a way to use a custom button with the:

<Input ID="MyFile" Type="File" RunAt="Server">?

This gives you a generic button, but I would like to use my own button that
has the same style as the other buttons I've created.

Is there an easy way to do this?

Thanks,

Tom


 
Reply With Quote
 
 
 
 
Craig Deelsnyder
Guest
Posts: n/a
 
      06-14-2005
tshad wrote:
> Is there a way to use a custom button with the:
>
> <Input ID="MyFile" Type="File" RunAt="Server">?
>
> This gives you a generic button, but I would like to use my own button that
> has the same style as the other buttons I've created.
>
> Is there an easy way to do this?
>
> Thanks,
>
> Tom
>
>


A rather good in-depth discussion here. Check it out:

http://www.cs.tut.fi/~jkorpela/forms/file.html

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UHJha2FzaC5ORVQ=?=
Guest
Posts: n/a
 
      06-14-2005
Hi,

The textbox and button control will come as a single component and you
cannot change that. Even you cannot change the button's caption property from
"Browse" to any other string. Because that is the standard File control.
However you can apply styles to it and change the color, look, etc., In my
opinion, if you really want to change, I suggest positioning a div element
over the browse button by calculating the positions and hiding the browse
button, and then you have to figure out, how to raise the click event for the
browse button!

"tshad" wrote:

> Is there a way to use a custom button with the:
>
> <Input ID="MyFile" Type="File" RunAt="Server">?
>
> This gives you a generic button, but I would like to use my own button that
> has the same style as the other buttons I've created.
>
> Is there an easy way to do this?
>
> Thanks,
>
> Tom
>
>
>

 
Reply With Quote
 
tshad
Guest
Posts: n/a
 
      06-15-2005
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:...
> tshad wrote:
>> Is there a way to use a custom button with the:
>>
>> <Input ID="MyFile" Type="File" RunAt="Server">?
>>
>> This gives you a generic button, but I would like to use my own button
>> that has the same style as the other buttons I've created.
>>
>> Is there an easy way to do this?
>>
>> Thanks,
>>
>> Tom

>
> A rather good in-depth discussion here. Check it out:
>
> http://www.cs.tut.fi/~jkorpela/forms/file.html


Good article.

I think I will just use the button as done by the Browser and use a custom
button to actually download the file.

Thanks,

Tom
>
> --
> Craig Deelsnyder
> Microsoft MVP - ASP/ASP.NET



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
want to upload file using Browse button. Bibhu Behera Ruby 1 03-13-2009 01:10 PM
File upload from client application (non-form based upload) stuart@microsoft.com Python 1 11-25-2006 12:14 AM
Upload a file without file Upload control - ASP.Net =?Utf-8?B?U2FyYXY=?= ASP .Net 3 08-03-2005 01:09 AM
How to detect sizeof upload in order to show status of browser file upload? Heather Fraser Java 0 07-05-2004 12:35 AM
Upload Excel with Macros using HTML File Upload Prakash ASP General 3 11-12-2003 04:26 AM



Advertisments