473,385 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem with validating user using ajax with asp.net(sqlserver-2005)

56
Hello Every one,

i m trying to creat page like login page but the input is 10 digites phone number
of customer .here i want that users are access thier accounts if they enter currect phone number.

here phone number is enered like 123 - 456 - 7890. ----- thirdtextbox
| |
first textbox |
|
second textbox


if any digite in enetered phone number is wrong than it display wrong number without page submiting.
if phone number is currect than customer automatically redirect their account
without any button click. i am want it in asp.net with sqlserver 2005

if anyone has solution than please help me.
thanks in advance
Feb 28 '08 #1
5 1153
acoder
16,027 Expert Mod 8TB
Should this be triggered on pressing keys or on blur or when the text box value changes?
Feb 28 '08 #2
sejal17
56
Should this be triggered on pressing keys or on blur or when the text box value changes?
thanks for reply

i want it on textbox value change.

here i am entering the phone number on mouse click using javascript.

here 0,1,2,3...9 buttons using those i am entering the phone number.

there is no keyboard to enter the phone number because it's a touch screen application.
Feb 29 '08 #3
acoder
16,027 Expert Mod 8TB
Trigger the Ajax function onchange which takes the inputs and passes them onto the server-side script to validate. That script only needs to return true/false. Depending on the response, you can redirect or stay on the same page.
Feb 29 '08 #4
sejal17
56
thanx
but i have never used ajax.so please if you have code of this,then please send me the code of it..
Mar 1 '08 #5
acoder
16,027 Expert Mod 8TB
See an example. You could also try some tutorials in the Offsite Links thread. Make an attempt. If you get stuck, post your code.
Mar 1 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: chuck | last post by:
I need some help with validating user input. I am writing a C computer program for an intro to C course. Here is the situation. I am creating an application that will do currency conversions. ...
5
by: Martin | last post by:
Hello NG, I've been doing some AJAX for a few weeks now. The basics worked fine so far, but now I've got the following problem which I can't solve: With AJAX you typically update/replace only...
3
by: noballack | last post by:
I've got a problem, I'm working with Ajax in a web with a form with a list of checkbox added to the form via an Ajax.Updater method. These added checkboxs are not been sended by the form if I use...
5
by: lucyh3h | last post by:
Hi, I am trying to use XMLHttpRequest to do server side validation. I have several fields on a form and a submit button. The submit button has an event assocated with it when clicked. The...
3
by: William Gill | last post by:
I have decided that Since I have to update the processing on many of my forms, I'm going to start them all over from scratch. Before I begin I thought I'd solicit comments on using the PHP regex...
3
rizwan6feb
by: rizwan6feb | last post by:
Hi experts! Recently i was working on "Form Validation Using Ajax". My form validation was creating problem, when a user changes focus too quickly. I had a post related to this, but was unable to...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
5
anfetienne
by: anfetienne | last post by:
hi, I am using ajax to load external pages into a div layer... my reason for this is when in a certain section of the site the transition is smooth with no white flash. my problem is that when...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.