Posts

Showing posts from 2015

(nested gridview):How to Get parent gridview rowindex on a child gridview link button click

 GridViewRow Gv2Row = (GridViewRow)((LinkButton)sender).NamingContainer; GridView Childgrid = (GridView)(Gv2Row.Parent.Parent); GridViewRow Gv1Row = (GridViewRow)(Childgrid.NamingContainer); int b = Gv1Row.RowIndex;

how to get list of tables, functions and stored procedure created last month in sql server

SELECT         [name]        ,create_date        ,modify_date FROM         sys.tables where create_date >='03/01/2015'                                         SELECT * FROM sys.procedures WHERE  create_date >='03/01/2015' SELECT * FROM sys.objects WHERE type IN ('FN', 'IF', 'TF')  -- scalar, inline table-valued, table-valued

how to get files from google drive

<head runat="server">     <meta http-equiv="content-type" content="text/html; charset=utf-8" />     <title>Google drive attachment Example</title>     <script type="text/javascript" src="https://apis.google.com/js/api.js?onload=onApiLoad"></script>     <script type="text/javascript">         function onApiLoad() {             gapi.load('auth', { 'callback': onAuthApiLoad });             gapi.load('picker');         }         function onAuthApiLoad() {             window.gapi.auth.authorize({                 'client_id': '376407259412-3m7pu8htrdvf2u2tt9flm9o8pftioqj6.apps.googleusercontent.com',                 'scope': ['https://www.googleapis.com/auth/drive']             }, handleAuthResult);         }         var oauthToken;         function handleAuthResult(authResult) {             if (authResult && !