Posts

Showing posts from July, 2011

How to Use Bing API c#

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)     {         BingService service = new BingService();         //foreach (ImageResult  result in response.Image.Results)         //{         if (!RadioButton1.Checked)         {             if (RadioButtonList1.SelectedItem != null)             {                 if (RadioButtonList1.SelectedItem.Value == "Videos")                 {                     SearchRequest request2 = new SearchRequest();                     request2.AppId = "83DFCBA3482E132EF9837E3B505DFD015773E909";                     request2.Query = TextBox1.Text;                     request2.Sources = new SourceType[]                 {                     SourceType.Video                 };                     SearchResponse response2 = service.Search(request2);                 }                 else                 {                     SearchRequest request = new SearchRequest();                     requ

Two Entrey Points (Main() methods in single file)

hey Guys !                      Today we will discuss name of the topic of "Two entry point in a single file of c#". first of all you have to make a file in your console application. Then just made Two class along with his own Main() method. so here we go........ your file name is krishan.cs.. suppose you have a student class class student {             Public  static void Main() {               Console.WriteLine("This is first method"); } } and now we are making a another class name is Teacher class Teacher { // In this Teacher class we are making a another Main() method... // c# concept don't take a permission of this doing like ....Two entry point    Public static void Main() {         Console.WriteLine("This is Second Method"); } } Now if your compile this code then you got the error message that you have a Two entry point in your class. Now for solve this problem...go to command prompt of your Visual Studio. now goto

Two Entrey Points (Main() methods in single file)

hey Guys !                      Today we will discuss name of the topic of "Two entry point in a single file of c#". first of all you have to make a file in your console application 

Two Entrey Points (Main() methods in single file)

hey Guys !                      Today we will discuss ncam

Two Entrey Points (Main() methods in single file)

hey Guys !                      Today we will discuss ncam