Skip to main content

Posts

Showing posts from May, 2012

How to read mail from gmail in asp.net

In this post,I will show you how to read mail from gmail in asp.net



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %><!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title></title></head><body><formid="form1"runat="server"><div> UserName : <asp:TextBoxID="txtUserName"runat="server"></asp:TextBox><br/> Password: <asp:TextBoxID="txtPassword"runat="server"TextMode="Password"></asp:TextBox><br/><asp:ButtonID="btnLogin"runat="server"Text="Login"OnClick="btnLogin_Click"/><br/><asp:GridViewID="…