Hi! I have tried you code, but there is error... do u mind helping me? Thanks :D
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1525: Invalid expression term ')' Source Error:
Line 8: <script type = "text/javascript"> Line 9: function ShowAvailability() { Line 10: PageMethods.CheckUserName(document.getElementById("<%=txtUserName.LoginID%%>").value, OnSuccess); Line 11: } Line 12: function OnSuccess(response) {
The error Attribute 'onkeyup' in not a valid attribute of element in textbox. you can ignore as it is a warning.
Secondly for Error Occured message you ned to check and debug code
Hello!
I have tried your code.. but there is error..
Microsoft JScript runtime error: Unable to get value of the property 'value': object is null or undefined
however, i already type a username name inside the textbox.
I would suggest download the sample code from the site and try it
I have tried it but there is no output..
when i debug it..
there is no error, no warnings but 1 message saying that 'onkeyup' is not a valid attribute of element
is it because i use Visual Studio 2010 and ASP.NET 4.0 ??
I already told long back that you can ignore the warning "'onkeyup' is not a valid attribute of element"
Is the web method even being called? Have you placed breakpoint in code?
Or finally i would say download sample code. You don't even do that
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.