-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: SwapnilDeshmukh
Message 2 in Discussion

hi,
Max Length Property is only for Textbox mode single it is not for  mode 
MultiLine. If you want that error to put you can do this think which will 
give an error to the user that the length is greater than the specified 
length.

//***** Addded  function for issue id =5199
function CheckLength(src,args)
        {
          if(document.activeElement.id == "btnInsert" || document.activeElement.id 
== "btnUpdate" )
                {
                var getElement = document.getElementById("txtComments").value;

                if(getElement.length > 255)
                {

                    args.IsValid=false;
                }
                }
                return args.IsValid;
        }


<asp:CustomValidator ID="custCheckLength" 
ClientValidationFunction="CheckLength" Runat="server" Display="None"  
ErrorMessage="Comment field cannot be greater than 255 
characters"></asp:CustomValidator>

Hope this will help you

Thanks

Swapnil Deshmukh

_________________________________________________________________
Pay Cash on delivery on lakhs of products. 
http://go.msnserver.com/IN/50757.asp Only on Baazee.com



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to