Asp.Net MVC -3

continue >>

asp.net MVC - 2 first ajax request

Page Code 

$("#btnSend").click(function () {
                $.ajax({
                    type: "POST",
                    url: "../yourcontroller/youraction",
                    data: "name=bill&surname=gates",
                    dataType: "json",
                    success: function (result) {
                     // result is json
                    }
               });// ajax end

Controller Code

public ActionResult addNameSurname(string name,string surname)
{ /* your insert */
  return Json(false);
}

continue >>

Best javascript extension for Visual Studio 2010

We are javascript developing for a long time on the visual studio 2010, javascript not as successful as the IDE for other languages, but this extension is now going to be more easily understood

Javascript extension for Visual Studio 2010

  • Word highlihting
  • brace highlighting
  • region

other detail and download Javascript extension for Visual Studio 2010

continue >>

WPF Thread STA problem

When do use Wpf application  is thread  having  "The calling thread must be STA, because many UI components require this"

Sample Code:

Thread thrTest= new Thread(new ThreadStart(YourFunctionName));
           thrTest.Start();

build this code not error but runtime "The calling thread must be STA, because many UI components require this"

This Code:

Thread thrTest= new Thread(new ThreadStart(YourFunctionName));
           thrTest.SetApartmentState(ApartmentState.STA);
           thrTest.Start();

build and no error :)

continue >>

DataContractJsonSerializer - Tips / Trick

If you development windows or wpf application and need json serializer class is "DataContractJsonSerializer" performance is good

which namespace ?

System.Runtime.Serialization

System.ServiceModel.Web

continue >>
Page 1 of 13   1 2 3 4 5   >>