Posts

Showing posts from 2018

Android Studio: My Career Assistant test phase 1

Image

Android Studio :My Career Asistant Test Phase Part 2

Image

How to fill DataTable using C#.Net

How to fill DataTable using C#.Net Solution:   // declare myTable             DataTable myTable = new DataTable();             //define columns along with their properties             myTable.Columns.Add("ID", typeof(int));             myTable.Columns.Add("Name", typeof(string));             myTable.Columns.Add("Father name", typeof(string));             myTable.Columns.Add("Gender", typeof(string));             myTable.Columns.Add("Date of Registration", typeof(DateTime));             //Add data into rows             myTable.Rows.Add(1, "Hafiz Imtenan Elahi", "Haji Faqir Muhammad ", "Male", DateTime.Now);             myTable.Rows.Add(2, "Hafiz Muhamad Umar...

Save Image Into Database and Show in grid view

Image
Save Image Into Database and Show in Grid View About Me Create Table : PloiticalParty Make Interface: TestSaveAndShowGridview.aspx <% @ Page Language ="C#" AutoEventWireup ="true" CodeBehind ="TestSaveAndShowGridview.aspx.cs" Inherits ="EVSByAli.TestSaveAndShowGridview" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml"> < head runat ="server">     < title ></ title >     < style type ="text/css">         .style1         {             font-size : xx-large ;         }         .style2         {    ...

C++: Switch Statement example

Image
About Me C++: Switch Statement example  Solution: #include<iostream.h> main(){           char grade;           cout<<"Please enter your grade :";       cin>>grade;       switch(grade){                            case 'A':          case 'a':          cout<<"Excellent";          cout<<endl;          break;            case 'B':          case 'b':          cout<<"Very Good";          cout<<endl;          break;          case 'C':          case 'c':          cout<...

CS201: C++ if/else example

Image
C++ : if /else example Solution: #include<iostream.h> main(){        int a=0;        int b=0;              cout<<"Please enter the  value of a: ";        cin>>a;        cout<<"Please enter the  value of b: ";        cin>>b;                 if(a<b)        {        cout<<"a is less than b ";        cout<<endl;              }        else if(a>b)        {       cout<<"b is less than a ";        cout<<endl;        }        else if(a==b)        {              ...