[WebMethod]
public static void SetTheme(string theme)
{
Guid studentIdentifier = SessionData.LoggedInUser.Identifier;
Student student = (Student)ItemFactory.GetItem(studentIdentifier);
student.Theme = theme;
}
Run Code Online (Sandbox Code Playgroud)
我想在这个WebMethod的末尾更改名为"theme"的cookie.我怎么能做到这一点?必须在此处设置cookie,而不是通过JavaScript.这是一项要求.谢谢
我已经安装了适用于Windows的Python 2.7,并下载了Django-1.2.3.现在,我想用他们建立我的第一个网站.如何在浏览器中访问第一个hello world页面?我可以使用Apache/XAMPP转到http:// localhost吗?让网站运作的基本原则是什么?谢谢