Hi guys,
I am trying to implement the exact same code that Imar implemented in the book. Besides the point where he implemented it in a user control, I am implementing it directly in the Contact Us page.
Here is my code.
Code:
$(function ()
{
$.watermark.options = {
className: 'fontSize',
useNative: false
}
$('#<%= fullNameTextBox.ClientID%>').watermark('Enter your full name...');
$('#<%= emailTextBox.ClientID%>').watermark('Enter your email address...');
$('#<%= contactNoTextBox.ClientID%>').watermark('Contact No...Eg: 610-931-1281');
$('#<%= commentTextBox.ClientID%>').watermark('Enter your comment...');
$('form').bind('click', function ()
{
if (Page_IsValid)
{
$('#ContactFormDiv').slideUp('3000');
}
});
});
I am using a different watermark plugin. This one can be found at . It is extremely easy to use.
The problem I am having is that the Page_IsValid doesn't seem to be recognized. When I comment it out, the code works. In case you are wondering, I have the ScriptManager in the master page.
Can anyone tell me what I'm doing wrong?
Thank you.