Posts

Showing posts from April, 2018

Retrieving session values from webservices using c#

In this session I'm going to teach about webservices in Asp.net .Webservices are used for retrieving values from database with the help of List,array and so on. Here we are gonna see how to retrieve session values. [WebMethod(Enable Session=true)] Public void Showme() { string a =string.Empty; if(HttpContext.Current.Session["name"].ToString() !=null) { a=HttpContext.Current.Session["name"].ToString() ; } } Now the variable "a" holds the session value "name".

English Course (Day4)

We have been learning English for a while.Till the last session we saw about simple tenses.In our next 3 sessions we are going to learn about continuous tenses. We can use these tenses to express the continuous actions . So I have dedicated this lesson to Present continuous tense. As per our way of learning we have classified it as 3 categories.So here we go 1.Positive Sentence 2.Negative Sentence 3.Question Sentence 1.Positive Sentences     Syntax     Subject+auxiliary verb+main verb+ing i)I+am+verb+ing ii)we/you/they+are+verb+ing iii)he/she/it+is+verb+ing (e.g) I am watching TV. We are going to school. He is writing the letter. 2.) Negative sentences               With the above sentence we have to add the word "not" to make negative sentences. i)I+am+not+verb+ing ii)we/you/they+are+not+verb+ing iii)he/she/it+is+not+verb+ing (e.g) I am not watching TV. We aren't going to school. He isn't writing the letter. ...

Swap Two Numbers Without using Temporary Variable in C#

namespace Swap { Class Test { public static void Main(string[] args) { int a,b; a=1; b=2; a=a+b; b=a-b; a=a-b; Console.Writeline(a.Tostring()); Console.Writeline(b.Tostring()); Console.ReadLine(); } } }

English Course (Day 3)

I hope we have successfully completed 2 sessions .In this session we are going to learn about "simple future tense".This is also one of the basic block for English. So as per our convenient,we have to classify it to 3 parts.Then only we can get the clear idea about this.So here we go 1.Positive Sentence 2.Negative Sentence 3.Question Sentence 1.positive sentence                 We have to add the word " will " with the Present form of the verb.This is very simple form compare to the existing two forms.We don't have any confusions for make this type of sentences. (e.g) I will play badminton He will come tomorrow They will work 2.Negative Sentence                             We will have to add the word " not " with the above form for make negative sentence. (e.g) They...