Microstation V8i Crack 64 Bit Utorrent Bevelli
Microstation V8i Crack For Windows 7 64 Bit Torrent 18.
DIGITAL LEARNING. 6 item. DIGITAL LEARNING. Related Collections. Microstation is the best tool for infrastructure design and control.Q:
How can I send an AJAX request from a C# webmethod using the ASP.NET MVC Framework?
I have been searching for the last few days and have not been able to find a solution to this problem. So I have a C# web method that takes in a complex type (a structure), and returns a simple string. It's kind of a horrible hack, but it does work. So the C# code is
public string GetData()
{
MyData myData = new MyData();
myData.GetMyData();
return "Returning the data";
}
There is a way to use this C# method with an AJAX call, but no one has been able to get this to work. Here is my C# code
[WebMethod]
public void GetData(MyData myData)
{
// Make sure the data structure can be serialized.
JavaScriptSerializer serializer = new JavaScriptSerializer();
serializer.RegisterConverters(new[] { new DataToDataConverter() });
string json = serializer.Serialize(myData);
Request.Headers["Content-Type"] = "application/json; charset=utf-8";
HttpContext.Current.Response.ContentType = "application/json";
HttpContext.Current.Response.StatusCode = 200;
HttpContext.Current.Response.Output.Write(json);
}
I've tried this in so many ways I can't even remember. Please help.
A:
There is already a great answer to this in this thread here:
Basically, your C# code is fine.
Your jQuery will be something like:
$.ajax({
url: '/Home/GetData',
type: 'POST',
data: { myData: myData }
});
(where ac619d1d87
Related links:
Recent Posts
See AllHow to Download YouTube TV: A Guide for Cord-Cutters If you're looking for a way to watch live TV without paying for cable, you might...
Video Game Download for PC: How to Find and Play the Best Games for Free Are you a fan of video games and want to enjoy them on your PC...
Real Manual Truck Simulator 3D APK Download: A Review If you are a fan of truck driving games, you might want to check out Real Manual...
Comments