I have a jQuery function to show a validation message in an asp.net login page. I put the script in a separate file named login.js (I've called the js file from the html) The name of the function is loginMessage();
I need to know how to call it from aspx.cs in a button click event. I've tried to call the function directly in a button click event, eg :
protected void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
...........
The login validation process goes here
...........
if (ds.Tables.Count == 0)
{
loginMessage();
}
}
but I got this following error message when i tried to debug the page :
The name 'loginMessage' does not exist in the class or namespace 'School.Login'
Kindly help me about this query. Regards, Andha