Skip to main content

Posts

Showing posts from January, 2014

Insert, Edit, Update, Delete in Asp.Net Gridview

I ntroduction : In this article I will explain how to Insert, Edit, Update, Delete in Gridview in Asp.Net using C#. Description: First I will write code to Insert data into Gridview then I will perform Edit, Update and Delete operations on it. For achieving all these functionalities I have used following Gridview commands, they are: onrowediting onrowupdating onrowcancelingedit onPageIndexChanging Below is the code for aspx page: < html   xmlns ="http://www.w3.org/1999/xhtml"   > < head   id ="Head1"   runat ="server">      < title > Untitled Page </ title >      < style   type ="text/css"> .Gridview { font-family:Verdana; font-size:10pt; font-weight:normal; color:black; } </ style > < script   type ="text/javascript"> function  ConfirmationBox(username) { var  result = confirm( 'Are you sure you want to delete ' +user...

Retrieve Gmail Inbox into Asp.Net using Pop3.

I ntroduction : In this article I will explain how to integrate gmail mail into asp.net using pop3 server. Pop3 Commands: The commands used to retrieve mail from a Pop3 server by an email client are a series of text commands with single line responses from the mail server. The commands and examples used here are defined by   RFC 1939- Post Office Protocol- Version 3. user: User is the first command after the connection is established. To connect, all you have to do is supply your e-mail user id. Example Usage: USER  john.smith PASS: After having supplied your user name, the next command is to supply your e-mail password. Example Usage: PASS  **** STAT: Returns the number of emails in the mailbox and the number of bytes all the emails are taking on the server. Example Usage: STAT Sample Response:  +OK 3 345910   TOP : Takes  two arguments i.e., the sort number of the email on the server and the number of lines of text to...