Input control in .Net?

Hi
Is there a better control to use than the html 'input' in .Net?
I have a Wizard in my ASP.NET 2.0 Visual Basic website and I have an Input control (to allow users browse for a file).
Thsi works fine but when I go back and forward through the wizard pages the value selected disappears.
Thanks
AM
<Input ID="inpSupportingDocumentation" Type="File" RunAt="Server" size="35">

Open in new window

amoranAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kerwinsiyCommented:
this is a control for asp.net.

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

- the issue is that html input lost it state after postback
- asp.net textbox retain its state after the postback

0
CodeCruiserCommented:
As the type of the input control you mentioned is set to file, i think you are looking for control for uploading. In that case, its the asp:FileUpload control. This is a complete control with a textbox and a browse button which automatically allows user to select a file for upload and puts the path in the textbox. It even automatically uploads the file for you.
0
Obadiah ChristopherCommented:
Well the file Upload control should be used..

@kerwinsiy... I think u missed the entire question, it says file upload not text input


<asp:FileUpload id="FileUpload1" runat="server"> </asp:FileUpload>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

amoranAuthor Commented:
Thanks guys

Yes informaniac you're right that's what I'm after.
I notice that the FileUpload control doesn't maintain it's values across pages in a Wizard too!
A TextBox Control does though.

Strange eh?
0
CodeCruiserCommented:
That's deliberate by the way for security reasons. Viewstate travels on the wire back and forth between server and client and microsoft did not want users file system paths to travel that way.
0
CodeCruiserCommented:
I think i mentioned the FileUpload control before Informaniac did!!!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.