I have to convert this code in Asp.Net C# codebehind
js function in the Silverlight code-behind MainPage.xaml.cs file, using the click event of a button.
private void btn_Click(object sender, RoutedEventArgs e)
{
string DatabaseId = "99999999999999999999";
string UserName = "user";
string Password = "pass";
HtmlPage.Window.Invoke("login", DatabaseId, UserName, Password);
}