Click here to Skip to main content
15,921,837 members

Comments by Member 9207317 (Top 4 by date)

Member 9207317 19-Oct-14 23:47pm View    
Thanks @amit for your reply but it's not fullfil my requirement, As I wrote in my question
I need all the following requirements fulfill in one regular experssion:

1- User should not enter empty space in begining. (Working fine)
2- Textbox limit is upto 10 numbers, user will able to enter as much as number he wants, no validation if he enter less than 10 numbers. (Working fine.)
3- validation should prompt if user enter the numbers like this "111 111 ", means show validation if there is empty space between numbers. (Not working)

So my 3rd requirement is not completed in my current regular expression, I have checked the link provided by you it's not giving user option for enter numbers upto 10 digits, user can enter all 10 numbers or 3-4 numbers (Maximum limit is 10 numbers but user can enter like "2345" only 4 in starting because this field is used for telephone extension).

Please suggests how can I achieve this.

Regards,
Member 9207317 31-Jan-13 3:37am View    
Hello Sandeep

Thanks for your great help..

Yes, the Like clause solved the issue, but I am sending multiple id's in the paramter, So it's not worked correctly with Like clause.

Also I'm using a function which split the values:

Suppose In parameter @p I have '1,2,3' Id's then my function is spliting these id's by
@Split(@p,',') and worked well when I am applying this with "In ( Select * from split(@p,',')).

Please let me know how can use the Like clause also by using this function.

Thanks in Advance.

Regards,
Member 9207317 12-Dec-12 8:38am View    
I'm calling a WebMethod using Jquery.Ajax.

Jquery code:
function Testok(values) {


alert(location.protocol + "//" + location.host + "//" );
$.ajax({
type: "POST",
url: "NotificationsPage.aspx/UpdateEmailStatus",
data: "{'IDs':'" + values.toString() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
});
dgNotificatons.Refresh();
}

VB.Net code:

<webmethod()> _
Public Shared Function UpdateEmailStatus(ByVal IDs As String) As Boolean
My code
End Function

it's working fine on my machine which have VS2010 but not on Client Machine that has VS2005.
Member 9207317 12-Dec-12 0:02am View    
Hello

Thanks for your help.

Actually I'm working on client's machine using Remote Desktop connection and developing the website on his machine using VS2005.