Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Showing posts with label Fileupload. Show all posts
Showing posts with label Fileupload. Show all posts

How to upload files in ASP.NET MVC 4.0

Dec 19, 2014 0 comments
Introduction:

In this post I will show you how to upload files(image, doc, mp3 etc..) in MVC 4.0 using Razor as a view engine.

Description:

In previous articles you have shown Asp.net MVC 4 Razor Tutorial with Example for Beginners, Create Image (Photo) Gallery in Asp.net MVC in jQuery using C#, How to make a form and insert data into database using MVC4.0 razor, Show data from a database table content in MVC 4.0 razor. Now in this post you will learn about file uploading in MVC 4.0. As like normal ASP we would not use any server side file up loader tool, we will use simple HTML file up loader tool to upload the file into our destination folder.

Create Image (Photo) Gallery in Asp.net MVC in jQuery using C#

Dec 17, 2014 4 comments
Introduction:

Here I will explain how to create image or photo gallery in Asp.net MVC in jQuery using c# or how to upload and display images in asp.net MVC using jQuery in c#.

Description:

In previous posts I explained mvc tutorial with Razor for beginners, create a form and insert data into database in mvc, show data from datatable in mvc and many more articles related to asp.net MVC, asp.net, jQuery, c#. Now I will explain how to create dynamic image gallery in asp.net MVC in jQuery using c#.

The user uploads multiple images at once and those images will be added to a photo gallery or album. As part of uploading image process, we need to store original images on website’s uploads folder. At the same time, we also need to create thumbnail of images. We can divide complete functionality in below 2 processes:

jQuery Preview Image before Upload using Fileupload in Asp.net

Mar 31, 2014 18 comments
Introduction

Here I will explain how to use
jQuery to preview image before upload in asp.net or show image preview before upload using jQuery in asp.net or preview image before upload using fileupload in asp.net.

Description:
  
In previous article I explained jquery crop image in asp.net using jcrop plugin,
disable right click on image using JQuery, jquery show html content in popup and many articles relating to jQuery, asp.net. Now I will explain how to use jQuery to preview image before upload in asp.net.

Multiple File Upload with Progress Bar using jQuery in Asp.net

Jan 22, 2014 9 comments
Introduction:

Here I will explain how to upload multiple files with progress bar using JQuery uploadify plugin in asp.net.

Description:

In previous article I explained
jQuery lightbox image slideshow, Generate thumbnail from images, Generate thumbnails from YouTube videos using JQuery, jQuery password strength examples and many articles relating to JQuery, asp.net, SQL Server etc. Now I will explain how to upload multiple files in asp.net using uploadify plugin in JQuery.

7 jQuery File Upload Plugin Examples or Multiple File Upload Example

4 comments
Introduction

Here I will explain best jQuery file upload Plugin examples or jQuery Multiple file upload Plugin examples. These jQuery file upload Plugins will allow us to select multiple files at a time and we can upload and by setting few properties these plugins allow us to set upload files size restriction, type of files to upload.

jQuery Check File Size before Upload or Get Image Size before Upload jQuery

Jan 21, 2014 0 comments
Introduction

Here I will explain how to check file size before upload in jQuery  or jQuery get image size before upload using jQuery uploadify plugin in asp.net.

Description:
  
In previous articles I explained
integrate Facebook login authentication, integrate twitter login authentication, jQuery randomly change color of div, jQuery upload multiple files using uploadify plugin in asp.net, jQuery upload multiple files using multiple file upload plugin in asp.net and many articles relating to jQuery, asp.net, c#, vb.net. Now I will explain how to get file or image size before upload in jQuery using jQuery uploadify plugin in asp.net.

jQuery Upload Multiple Files using Asp.net with Multiple File Upload Plugin Example

Dec 20, 2012 20 comments
Introduction:

Here I will explain how to upload multiple files in asp.net using JQuery with multiple file upload plugin.

Asp.net- How to Get Full File Path from Fileupload Control in Firefox or IE

Dec 16, 2012 10 comments
Introduction:

Here I will explain how to get full path of uploaded file from fileupload control from client machine in Firefox or IE in asp.net using C#, VB.NET.

Description:

jQuery to Validate File Upload Extension in File Upload Control

7 comments
Introduction:

Here I will explain how to validate uploaded file extension in file upload control using jQuery in asp.net.

Description:

In previous article I explained jQuery fixed header notification bar example, jQuery Convert uppercase to lowercase, jQuery disable specific dates in calendar control and many articles relating to jQuery. Now I will explain how to validate uploaded file extension in file upload control using jQuery in asp.net.

Ajax AsyncFileUpload control example in asp.net to upload files to server

Apr 28, 2012 35 comments
Introduction:

Here I will explain how to use Ajax AsyncFileUpload control to upload files to folder and show progress bar during upload files to server using asp.net

Description:

Previously I explained many articles relating to Ajax. Now I will explain how to use ajax AsyncFileUpload control to upload files to folder in asp.net. Before proceed to implement sample have you install ajaxcontroltoolkit in visual studio or not if not install it otherwise if you already done then follow the below steps to implement Ajax AsyncFileUpload control example in asp.net.

save/upload files in folder and download files from folder in asp.net

Feb 27, 2012 86 comments
Introduction:

In this article I will explain how to save/upload files in folder and download files from folder system when click on link in gridview using asp.net.


Description:
  
In many websites we will see download link whenever we click on that we will have a chance to download that files into our system.

Asp.net Create/generate thumbnails from images

May 2, 2011 27 comments
Introduction

Here I will explain how to generate thumbnails dynamically from uploaded images and how to bind thumbnails to datalist using asp.net.

Description:

In previous post I explained clearly how to bind images from folder to datalist . Now I will explain how to generate thumbnails from uploaded images and how to bind those thumbnails to datalist using asp.net. In website development sometimes we get requirement like generating thumbnails from images without losing quality of image and it’s same like original image. For that first create one new website after that right click on that website select New Folder give name as Images because here I am using same name if you want to use another name you need to change the name in code also. After completion of adding Images folder to your website Design your aspx page like this 

how to bind or display images from folder to datalist using asp.net or how to insert images into folder and display images from folder to datalist using asp.net

May 1, 2011 39 comments
Introduction

Here I will explain how insert images into folder and how to bind the images to datalist using asp.net.

Description:

In previous post I explained clearly how to bind images from folder to gridview . Now I will explain how to save images into folder and how we can bind that images to datalist using asp.net. It’s very easy to store images in folder and binding that images to datalist. For that first create one new website after that right click on that website select New Folder give name as Images because here I am using same name if you want to use another name you need to change the name in code also after completion of adding Images folder to your website Design your aspx page like this

how to save images into folder and images path in database and display images from folder in gridview based on images path in database using asp.net

Mar 3, 2011 120 comments
Introduction:

In this article I will explain how to insert images into our project folder and display the images from folder in gridview based on images path in database using asp.net.

Description:
  

In my previous article I explained clearly how to insert images into database and display images from database into gridview. Now I will explain how to insert images into our project folder and insert images path into database and display images in gridview from images folder based on Images path in database. For that first create new website after that right click on your website and add new folder and give name as Images because here I used same name for my sample if you want to change folder name you need to change the images folder name in your code behind also
first design table in your database like this to save images path in database.

how to insert images into database and how to retrieve and bind images to gridview using asp.net (or) save and retrieve images from database using asp.net

Jan 2, 2011 214 comments
Introduction

Here I will explain how insert and retrieve images from database and how to bind images to gridview using asp.net.

Description:

I have worked on one social networking site at that time we save all the images in to directory folder and we save image path into database at that time I got idea to implement concept like inserting images into database and retrieving the images from database and binding images to gridview using asp.net for that we need follow below steps

Asp.net send email with images using Gmail credentials

Dec 20, 2010 14 comments
Introduction:

 In this article I will explain how to send email by embedding images using Gmail credentials in asp.net

Description:

Generally we will send mails using SMTP server suppose if we don’t have smtp server in that situation we can send mails by using gmail smtp server in asp.net. I will explain how to implement mail sending concept using Gmail credentials using asp.net. 


To implement this concept first you need to enable POP enable in your Gmail account for this Settings-->Forwarding and POP/IMAP

Regular expressions to validate file extension before file upload in javascript using asp.net

Dec 14, 2010 18 comments
Introduction:

Here I will explain how to check or validate file type in file upload control using JavaScript and regular expression to check file extension before file upload using JavaScript in asp.net.

Description:

I have one page that contains one file upload control to accept files from user and saving it in one folder. Here I need to give permission for user to upload only .doc or .docx files for that I have written validation by using JavaScript to validate files before save it in database.

Here I have some of regular expressions to validate file upload. 

Restrict/Increase the size of file upload in asp.net

8 comments
Introduction:

Here I will explain how to increase or restrict the size of file upload in asp.net

Description:

I have one page that contains one file upload control to accept files from user and saving it in one folder. I have written code to upload file and saving it to folder it’s working fine after completion of my application my friend has tested my application like he uploaded large size file nearly 10 MB file at that time it’s shown the error page like “the page cannot displayed”. 

Again I have search in net I found that file upload control allows maximum file size is 4MB for that reason if we upload file size larger than 4MB we will get error page like “the page cannot displayed” or “Maximum request length exceeded”.

how to read or write text file using asp.net

Dec 9, 2010 22 comments

Introdcution

Here I will explain how to read or write text file using asp.net

Description

Reading and Writing text file content in asp.net it’s very simple once if we use name space called 

using System.IO;


The System.IO namespace contains types that allow reading and writing to files and data streams and types that provide basic file and directory support.

Check this link for clear information on this namespace Click Here

After that in code we will use Class File to get properties like

Other Related Posts

© 2010-2012 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.