Exemplo n.º 1
0
    public void bindata()
    {
        DataSet ds   = new DataSet();
        string  sql1 = "SELECT [Vid] ,[VidhanDate],[Vidhanmandal],[VidhanDescr],[LastModifieddate] FROM [Come2myCityDB].[dbo].[VidhanMandalDetails] order by Vid Desc";

        ds = cc.ExecuteDataset(sql1);

        if (ds.Tables[0].Rows.Count > 0)
        {
            GvVMshow.DataSource = ds.Tables[0];
            GvVMshow.DataBind();
        }
        else
        {
        }
    }
Exemplo n.º 2
0
    public void bindata()
    {
        DataSet ds   = new DataSet();
        string  sql1 = "SELECT [Progid] ,[ProgName],[ProgDescription],[LastModifieddate] FROM [Come2myCityDB].[dbo].[ProgrameDetails] order by Progid Desc";

        ds = cc.ExecuteDataset(sql1);

        if (ds.Tables[0].Rows.Count > 0)
        {
            GvVMshow.DataSource = ds.Tables[0];
            GvVMshow.DataBind();
        }
        else
        {
        }
    }