- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
public ActionResult RenderDesigner()
{
// Get the received text
var received = string.Empty;
using(var reader = new StreamReader(Request.InputStream))
{
received = reader.ReadToEnd();
}
// Possible texts received
var xml = "";
var id = "";
var moveId = "";
int distance = 0;
// Get all string from received
var keys = received.Split('&');
for (var i = 0; i < keys.Length; i++)
{
// XML
if(keys[i].StartsWith("xml="))
{
xml = Server.UrlDecode(keys[i].Split('=')[1]);
}
// ID
else if (keys[i].StartsWith("id="))
{
id = keys[i].Split('=')[1];
}
// Position
else if (keys[i].StartsWith("distance="))
{
distance = int.Parse(keys[i].Split('=')[1]);
}
// Move ID
else if (keys[i].StartsWith("moveId="))
{
moveId = keys[i].Split('=')[1];
}
}
}
Eugene 15.12.2011 12:03 # 0
guest8 09.04.2019 12:22 # −999