by Ilyax on 23. July 2010 in Development
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);
}
by Ilyax on 13. July 2010 in Tools
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

other detail and download Javascript extension for Visual Studio 2010
by Ilyax on 04. July 2010 in Development
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 :)
by Ilyax on 02. July 2010 in Development
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
© Copyright 2007-2010 iLyax.