Posts
Showing posts from 2018
How to fill DataTable using C#.Net
- Get link
- X
- Other Apps
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
- Get link
- X
- Other Apps

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 { ...
CS201: C++ if/else example
- Get link
- X
- Other Apps

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) { ...