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 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 224 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 15 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 22 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

9 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 30 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

how to send mail with attachement in asp.net

Dec 2, 2010 56 comments
Introduction:

In this article I will explain how to send email with attachment using asp.net.

Description:

In previous post I explained how to send mail in asp.net now I will explain how to implement mail sending concept with attachment in asp.net.

To implement this concept first we need to following reference to our application System.Web.Mail namespace 

What is System.Web.Mail

The System.Web.Mail namespace contains classes that enable you to construct and send messages using the CDOSYS (Collaboration Data Objects for Windows 2000) message component. The mail message is delivered either through the SMTP mail service built into Microsoft Windows 2000 or through an arbitrary SMTP server.
© 2015 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.