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

File Upload control in VS 2005

Language C#. ASp.Net 2.0


In VS 2005 A file upload control is there.., In this contrl Text box and browse buttons are in corporated.
Que- when we browse a file then , in text box path of the file is shown. but after clicking on upload button , path is not visible.
which property should be used to make path visible and in disabled mode after upload click.

This is the code snippet of aspx page:

Expand|Select|Wrap|Line Numbers
  1. <td class="TdText"  colspan="3" >
  2.             <asp:FileUpload ID="FileUpload1" runat="server" />  
  3.             <asp:Button ID="btnUpload" runat="server"  Text="Upload File"  cssClass = "Button1" OnClick="btnUpload_Click"/>
  4.    <asp:Label ID="lblNote" runat="server" CssClass="Note1" Text ="Note:Allowed file extension:.png,.gif,.jpeg,jpg,.txt,.doc,.xls" ></asp:Label>
  5.       </td>

Please tell me the solution
Aug 19 '08 #1
4 1729
Language C#. ASp.Net 2.0
Web application Development


In VS 2005 A file upload control is there.., In this control Text box and browse buttons are in corporated.
Que- when we browse a file then , in text box path of the file is shown. but after clicking on upload button , path is not visible.
which property should be used to make path visible and in disabled mode after upload click.

This is the code snippet of aspx page:
Expand|Select|Wrap|Line Numbers
  1. <td class="TdText" colspan="3" >
  2. <asp:FileUpload ID="FileUpload1" runat="server" /> 
  3. <asp:Button ID="btnUpload" runat="server" Text="Upload File" cssClass = "Button1" OnClick="btnUpload_Click"/>
  4. <asp:Label ID="lblNote" runat="server" CssClass="Note1" Text ="Note:Allowed file extension:.png,.gif,.jpeg,jpg,.txt,.doc,.xls" ></asp:Label>
  5. </td>
Please tell me the solution
khushbu
Aug 19 '08 #2
DrBunchman
979 Expert 512MB
Hi khushbu shah,

You've posted your question in the ASP Forum which is for Classic ASP only - I've moved it for you but in future please post all ASP.NET questions in the .NET Forum.

Please don't forget to wrap your code in CODE tags - it makes your posts much easier to read. Please read the Posting Guidelines for more info.

Thanks,

Dr B

EDIT: Please don't double post your questions - I have merged the two threads you have started on the same topic. If you are not sure which Forum to post in then it's best just to post in one and a Mod will move it for you if required.
Aug 19 '08 #3
hi
check out these links
<Links removed by moderator>
Aug 19 '08 #4
Thanks for repIy
I will try to implement it.and will tell you
Aug 20 '08 #5

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

Similar topics

7
by: Doug Helm | last post by:
Hey, Folks: I'm trying to write a very simple file upload CGI. I'm on a Windows server. I *am* using the -u switch to start Python for CGIs, as follows: c:\python\python.exe -u %s %s I...
20
by: Steve | last post by:
I have a web app that needs to parse through a file that is located on the client machine. I get the file string from a query string & then parse it. It is working fine on my development box but...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
5
by: George Durzi | last post by:
Anyone know of a good file upload control? I don't like using the built in one because it's unable to maintain state on a refresh. Thanks!
3
by: Bijoy Naick | last post by:
I've written a simple file upload user control in VB .NET. It comprises of an InputFile HTML Server Control, an Upload button and a message label. User clicks on the Browse button of the...
3
by: No one | last post by:
I need to upload two files, one at a time. The only file control I can find uses the <input type="file" />, so the handling code has to go in the HTML side and not the code behind. I would much...
6
by: Paul | last post by:
Hi there, When adding a "File Field" HTML control to an aspx page to facilitate file uploading, the following occurs: 1. You select a file that is larger than the allowed size limit. 2. Once...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
3
by: Mike Kelly | last post by:
Hi. I've built a page using standard ASP.NET 2.0 features and when I upload a large file (>20MB) to our intranet server, I get a paltry 100KB/s on our 100Mb/s LAN. Simply copying the file, I get...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.