mirror of
https://github.com/ViViDboarder/subsonic-csharp.git
synced 2024-11-24 19:46:37 +00:00
30 lines
535 B
C#
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");
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|