tags:

views:

45

answers:

1
var ajaxURL = "ajax/Login.aspx?txtEmail=" + $('#txtInitialEmail').val()+ "&txtPassword=" + $('#txtPassword').val()
A: 

Check

$('#txtInitialEmail').length > 0

and

$('#txtPassword').length > 0

If not greater than 0 then there exists no such element. If you are placing these elements inside a naming container and then giving them the attribute runat="server" then you will have to take their id using Control.ClientID, like

$("#<%= txtInitialEmail.ClientID%>")

and

$("#<%= txtPassword.ClientID%>")
rahul