файл aspx
Код: Выделить всё
function btnclick()
{
; //calling the c# method
};
$(document).ready(function ()
{
$(".username").focus(function () {
$(".user-icon").css("left", "-48px");
});
//contains other elements like username and password text boxes
Следующий метод C# необходимо вызвать из JavaScript
Код: Выделить всё
protected void Login()
{
//contains method for authentication
}
Подробнее здесь: https://stackoverflow.com/questions/240 ... t-function
Мобильная версия