Click here to Skip to main content
13,457,433 members
Rate this:
Please Sign up or sign in to vote.
i want create a login button for my site with google to retrive the gmail data to my site.if user will login with gmail account to my site. if you know to retrive the data from gmail to my site.

we can develop the that application in .net2.0 or not

if you know the information please share for me.

thanks in advance.
Posted 8-Dec-11 17:46pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Yes you can refer google API, you can either do it with C# libraries or Javascript.

penigandlakoti 9-Dec-11 0:18am
i downloaded some files files from google api. it didnot support to the .net2.0 version.if you any code for google login .please share for me
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can try this code in your WebSite :
<![CDATA[<%@ Page Language="VB" %>]]> 
<html xmlns=""> 
<head runat="server"> 
    <script type="text/javascript"> 
        function openForm() 
    <form id="form1" runat="server"> 
        <asp:button id="Button1" runat="server" text="Google Login" onclientclick="openForm();" xmlns:asp="#unknown" /> 

I hope it will help you. :) --MKB
penigandlakoti 9-Dec-11 4:57am
hi manoj,
i want user login with user email and his password, after one popup will be disply to the user that is allow or nothanks.user login with his email, he will user my site. that i asking for google login button.
any how thanks to you for your answer.
Member 9550455 22-Nov-12 1:40am
its good answer. in this ahead,i want that after login to gmail account,logger should redirect to aspx page..
Rate this: bad
Please Sign up or sign in to vote.

Solution 3


you can use dotnetopenauth.dll to login with google. i have found one example here.

Hope it will help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180322.1 | Last Updated 18 Nov 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100