Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
ffttt
Home
>>
Forum
>>
ASP.Net
>>
Post New Question
Subscribe to Forum
Fileupload control event....
Posted By:
nikhil
Posted Date:
April 20, 2010
Points:
2
Category :
ASP.Net
I want to know how to raise an event for fileupload control....
In my project, as soon as I select a file(Image) it should show FILENAME,EXTENSION & SIZE in the labels given below.
Pls reply me....
Thanks in advance.
Responses
Author:
Amit Mehra
Posted Date: April 20, 2010 Points: 5
HI,
you can use regular expression validator control and give you validation expression
ValidationExpression="[a-zA-Z0_9].*\b(.doc|.DOC|.vsd|.VSD|.xls|.XLS|.pdf|.PDF|.jpeg|.JPEG|.jpg|.JPG|.jpe|.JPE|.png|.PNG|.gif|.GIF)\b"
you can modify the above expression regarding what all file type you want
Thanks,
Amit
Please "
Mark As Answer
" if this post help you.
Post Reply
You must
Sign In
To post reply
Related Questions Related Questions
Control Timer event
Reg fileupload control
Is there any free Ajax FileUpload Control for ASP.Net 2.0 ?
ProgressBar with the FileUpload Control for ASP.Net 2.0 ?
Datagrid with FileUpload Control
How to handle the event(Checkbox checked event)in custom control or user control?
Add dynamic FileUpload Control at runtime in asp.net
populate data from visual webpart fileupload control into custom list column.
how to upload default image into database when no image file is selected from fileupload control in
How to create a control in windows application also how could add in the Tool box itself
Latest Forum Questions From The Same Category
Certification
how to learn and Where can i Learn about ASP .Net
Slash(/) in Combobox
attaching the report in the web page
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
upload image
How to make a nested datalist control?
What class does Icon derive from?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Here
Quick Links For Forum Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
OOPs
Silverlight
IIS
JQuery
JavaScript/VBScript
Biztalk
WPF
Patten/Practices
WCF
Others
www.DotNetSpark.com
UnAnswered
All
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend