Hi
I have created a method in asp.net and i want return response from that method but i am getting error please check where i am wrong and suggest me.Please find my sample code.
----------lua script-------------
local http = require(“socket.http”)
local json = require(“json”)
local URL = “http://localhost:3107/default.aspx?playername=” … mime.b64(“mkk”) … “&password=” … mime.b64(“abcc”);
local response = http.request(URL)
if response == nil then
print(“No Dice”)
else
print(response)
local data = json.decode(response)
print (data)
print(data.result);
end
//----------------------------asp.net method—
public string login( string aa,string bbb )
{
JavaScriptSerializer js = new JavaScriptSerializer();
string result = js.Serialize(“Hello”);
} [import]uid: 209400 topic_id: 34450 reply_id: 334450[/import]