Skip to main content

Posts

vowels

Recent posts

suggestion

 server--- using System.Web.Services; public string suggestion(string key)         {             if (String.Equals(key.ToLower(), "web services"))                 return "Web services are XML-based information exchange systems that use the Internet for direct application-to-application interactionWeb services are XML-based information exchange systems that use the Internet for direct application-to-application interaction";             else if (String.Equals(key.ToLower(), "big data"))                 return "Big data is a term that describes large, hard-to-manage volumes of data – both structured and unstructured – that inundate businesses on a day-to-day basis";     ...

Rupees

 server--- return Convert.ToString(rup * 75.95) + " is amount of dollar and " + Convert.ToString(rup * 84.95) + " is amount of euros and " + Convert.ToString(rup * 100.25) + " is amount of pound"; client---         double r1 = Convert.ToDouble(TextBox1.Text);             ServiceReference1.WebService1SoapClient obj = new ServiceReference1.WebService1SoapClient();             string res = obj.convert(r1);             Label2.Text = res;

mobile

 server--- using System.Web.Services; using System.Text.RegularExpressions; public string NumberValidator(string number)         {             Regex regex = new Regex(@"^[789]\d{9}$");             Match match = regex.Match(number);             if (match.Success)                 return number + " is Valid Mobile Number";             else                 return number + " is Invalid Mobile Number";         } client---           String mobile = TextBox1.Text;           ...

idpass

 Server using System.Data.OleDb; public string check_login(string username,string pwd)         {             string sql;int row;             OleDbConnection con = new OleDbConnection();             con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\ASUS\\Documents\\Database5.accdb";             con.Open();             sql = "select count(*) from login where username='" + username +"' and pwd='" + pwd +"'";             OleDbCommand cmd = new OleDbCommand(sql, con);             row = (int)cmd.ExecuteScalar();      ...

Greet

 Server------ public string Greet(string name)         {            if (DateTime.UtcNow.AddHours(5.5).Hour<12)             {                 return "Hello" + name + "Good Morning";             }            else if (DateTime.UtcNow.AddHours(5.5).Hour<17)             {                 return "Hello" + name + "Good Afternoon";             }            else             {  ...

Employees

 server--- using System.Data.OleDb; using System.Data; public DataSet emp(string ename)         {             string sql;             int row;             OleDbConnection con = new OleDbConnection();             OleDbCommand cmd = new OleDbCommand();             OleDbDataAdapter adpt = new OleDbDataAdapter();             DataSet ds = new DataSet();             con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\samar\\Documents\\emp.accdb";             con.Open();    ...