本文整理汇总了C#中JsonResponse.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# JsonResponse.ToString方法的具体用法?C# JsonResponse.ToString怎么用?C# JsonResponse.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JsonResponse
的用法示例。
在下文中一共展示了JsonResponse.ToString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: loginpage
public string loginpage()
{
var jp = new JsonResponse();
jp.result = true;
jp.addData(this, "loginpage");
return jp.ToString();
}
示例2: logout
public string logout()
{
var jp = new JsonResponse();
if (isLogdin)
FormsAuthentication.SignOut();
else
jp.ex = "not Authenticated";
jp.result = isLogdin;
return jp.ToString();
}
示例3: accountcreationpage
public string accountcreationpage()
{
var jp = new JsonResponse();
if (isLogdin)
{
//jp.addData(this, "accountcreationpage", new Models.AccountCreationModel());
// jp.addData(this, "SerchResultsPage", new Models.SerchResultsModel(searchText, searchAntal, searchSida, searchPrisSort, searchNameSort));
}
else
jp.ex = "not Authenticated";
jp.result = isLogdin;
return jp.ToString();
}
示例4: login
public string login(string name, string pw)
{
long id = 0; // avnänds ej en nu
bool loginR = false;
using (var con = hemSida.Models.ModelBass.getCon())
{
loginR = UserLoginHelper.Login(con, name, pw, ref id);
}
if (loginR)
FormsAuthentication.SetAuthCookie(name, false);
var jp = new JsonResponse();
jp.result = loginR;
return jp.ToString();
}
示例5: serchresultspage
public string serchresultspage(string searchText, int searchAntal, int searchSida, bool searchPrisSort)
{
var jp = new JsonResponse();
if (isLogdin)
jp.addData(this, "SerchResultsPage", new Models.SerchResultsModel(searchText, searchAntal, searchSida, searchPrisSort));
else
jp.ex = "not Authenticated";
jp.result = isLogdin;
return jp.ToString();
}
示例6: productpage
public string productpage(string name)
{
var jp = new JsonResponse();
if (isLogdin)
{
jp.addData(this, "ProductPage", new Models.ProductModel(name));
}
else
jp.ex = "not Authenticated";
jp.result = isLogdin;
return jp.ToString();
}
示例7: startpage
public string startpage()
{
var jp = new JsonResponse();
if (isLogdin)
jp.addData(this, "startpage", new Models.StartModel());
else
jp.ex = "not Authenticated";
jp.result = isLogdin;
return jp.ToString();
}