.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

How to upload a large file using file upload option in asp.net.

Posted By :Ashutosh Jha     Posted Date :December 06, 2013    Points :40   Category :.NET Framework 
By default the maximum size that Asp.net allow is just 4 MB. So file having size bigger than 4 MB will not be allowed and after hitting submit button you will get page not found.
So to solve this issue increase the size in web config file using httpruntime as below for 60 MB-

<httpRuntime maxRequestLength="61440" executionTimeout="3600" />


You can also find related Interview Question to How to upload a large file using file upload option in asp.net.  below: 

what is used to execute a .net file from the command prompt ?

csc is C# compiler abbreviation is C Sharp Compiler (More...)

Disadvantage in File Processing System?

1.Data redundancy & inconsistency.
2.Difficult in accessing data.
3.Data isolation.
4.Data integrity.
5.Concurrent access is not possible.
6.Security Problems. (More...)

How u can create XML file?

To write Dataset Contents out to disk as an XML file use:
MyDataset.WriteXML(server.MapPath("MyXMLFile.xml")) (More...)

What types of files can I upload / post to the SharePoint site?

The only files restricted in Sharepoint are those ending with the following extensions: .asa, .asp, .ida, .idc, .idq.Microsoft reserves the right to add additional file types to this listing at any time. Also, no content that violates the terms of service may be uploaded or posted to the site. (More...)

what is the use of using web.config file

By using this web.config file we can store sqlconnection string.This SqlConnection String can be accessed any where in your application.for security purpose of connection string also we can use web.config. (More...)

Can we have more than one web.config file in our application?

Yes,we can create or use more than one web.config file in our application. (More...)

What is contained in the AppManifest.xaml file in silverlight?

The AppManifest.xaml file contains the deployment details needed to run the silverlight application.

Basic example:


What are the files contained in the .xap file in Silverlight?

A basic xap file in silverlight will have an assembly related to specific code for the application, an application manifest file and any additional assemblies need to run the application. At a minimum, two files are needed, the application manifest file and the application assembly.

For example:


MyPianoV2.dll (More...)

How do I use a .xap file in silverlight?

A .xap file is used to contain and transfer the assemblies and resources of a managed code application. This managed code application must be run within the Silverlight 2 browser plug-in. (More...)

if we remove a web.config file from the application , is this application will work?

It Depends on coding if we used something that is required to pioc values from configuration file then its required otherwise we can run our application without web.config. (More...)

How to send XML file on server using HTTP protocol?

Using SOAP we can send XML file on Serevr (More...)

What is a PHP File?

1. PHP files can contain text, HTML tags and scripts.
2. PHP files are returned to the browser as plain HTML.
3. PHP files have a file extension of ".php", ".php3", or ".phtml". (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend