Posts

Showing posts from May, 2012

How to hide generated javascript file in visual studio code

In this post I am going to show you a cool trick in visual studio code. Let's suppose you are writing typescript code in visual studio code and you want to hide generated javascript code.

Create .vscode folder in your folder and then create settings.json file and paste following code

{ "files.exclude": { "node_modules":true, "**/.git": true, "**/.DS_Store": true, "**/*.js.map": true, "**/*.js": {"when": "$(basename).ts"}     } }

How to read mail from gmail in asp.net

Image
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="…