How does this work?
protected void btnLogin_Click(object sender, EventArgs e)
{
//$.blockUI();
//select from DB;
//$.unblockUI();
}
Thanks From Allllll
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simple, it doesn’t work. JavaScript code (hence, jQuery code) executes in the browser on the client-side. .NET (ASP) code executes on the server-side. They can interact in varying ways, but not in this way. You can’t write JavaScript code in a C# method as in your example.
What, specifically, are you trying to accomplish? I see that you’re trying to run JavaScript code in your C# method, sure, but for what purpose? Usually one attempts this as a result of not fully understanding the page life cycle and how/when different things get executed. What’s the end goal here?