我有一个网站,其成员登录编写在MVC4 .NET中,它使用标准的WebSecurity登录。每个成员都有产品。基本上我想创建一个应用程序,允许用户登录,然后以新的视图下载他们的产品。简单的单声道登录
我找不到任何单声道机器人样本上的这个功能的例子,任何人都可以提供帮助或指导?我甚至不能直接指向新的布局,每个布局是否需要一个活动?如果是这样,你如何定义这一个布局:
我有下面这样:
[Activity(Label = "Products" , MainLauncher = true , Icon = "@drawable/icon")]
public class Activity1 : Activity
{
int count = 1;
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Login);
// Get our button from the layout resource,
// and attach an event to it
Button button = FindViewById<Button>(Resource.Id.MyButton);
button.Click += this.Login;
}
private void Login(object sender , EventArgs e)
{
// LOGIN TO WEB SITE, IF SUCCESSFULL
// go to main
SetContentView(Resource.Layout.Main);
//else toast incorrect password
}
任何帮助,将不胜感激,我认为LINQ到SQL不能用于连接到Web服务器数据库?