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

validating a fileupload control without a postback

can anyone tell me how to validate a fileupload control to accept the files upto 4MB and anything more than 4MB to give a message(or a popup alert) without a postback to server......i dont want the webpage to be submitted to server for validation......and should happen with client validation...please suggest me a best approach to do this...thanks in advance.........
Sep 3 '07 #1
2 1601
r035198x
13,262 8TB
can anyone tell me how to validate a fileupload control to accept the files upto 4MB and anything more than 4MB to give a message(or a popup alert) without a postback to server......i dont want the webpage to be submitted to server for validation......and should happen with client validation...please suggest me a best approach to do this...thanks in advance.........
I'm not sure I get your question correctly, but perhaps you want to use AJAX ?
Sep 3 '07 #2
i have to ensure that the file must be less than 4mb and anything above 4mb should give an alert saying 'please select a file of less then 4mb'....and this should be done without a postback......is there anyway to validate this using client side scripting....
Sep 3 '07 #3

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

Similar topics

1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
3
by: Seok Bee | last post by:
Dear Experts, May I ask, how can I remain the selected file that has been chosen through the Browse button in the Fileupload control in asp.net after a postback? Current, when the postback is...
1
by: Nathan Sokalski | last post by:
I have an ASP.NET 2.0 webform which includes both a FileUpload contol and a Calendar control. When the user selects a new data with the Calendar control, the FileUpload control is reset (there is...
0
by: gomzi | last post by:
hi, I would like to know whether it is possible to store the viewstate of a fileupload control on postback? i.e. once the postback is over, the path should be available in the file upload control....
2
by: ronc85 | last post by:
My environment is ASP.NET 2.0, C# and AJAX. Is there a way to retain the Postedfile in the FileUpload control after Postback? I have this application I've inherited were the User chooses a file...
9
by: vital | last post by:
Hi, I have a User control which has a fileupload control. With the requirements I placed the user control in a UpdatePanel of ASP.NET Ajax and the fileupload.postedfile.filename giving error. ...
5
by: =?Utf-8?B?VEQgaXMgUFNQ?= | last post by:
I have a FileUpload control within a FormView (although I tried it outside the FormView and got the same result) in the InsertTemplate. When the <Insertbutton is clicked and the Insert Command is...
2
by: miladhatam | last post by:
hi i want make a page that users can upload their picture but my problem : how can i dynamically add this control cos i want that they can upload every pic they have and like gmail if you browse...
3
by: Fresno Bob | last post by:
I know this has been addressed sortof. It's using the update panel with the fileupload control. I get how to use a postback trigger to do a full postbask. However my page has some server side...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.