subsonic-csharp/SubsonicMono/SubsonicWeb/Default.aspx.cs
2011-02-01 14:59:57 -05:00

30 lines
535 B
C#

using System;
using System.Web;
using System.Web.UI;
using SubsonicAPI;
namespace SubsonicWeb
{
public partial class Default : System.Web.UI.Page
{
protected void btnLogIn_Click (object sender, System.EventArgs e)
{
string server = "thefij.kicks-ass.net:4040";
string username = tbUsername.Text;
string password = tbPassword.Text;
Subsonic.appName = "IansWebApp";
string results = Subsonic.LogIn(server, username, password);
if (results != "")
Response.Redirect("Library.aspx");
}
}
}