473,405 Members | 2,310 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,405 software developers and data experts.

get changed value only

I have a text box were I can enter in a list of users. I then have a button
that I verify each user. I'm running into an issue, were if I have 3 users
entered in the textbox and user #3 is invalid, I then have to re-enter the
correct ID, when I hit my
validate user button, it validates all the users in the textbox again. Is
there a way not to validate the valid users and only get the changed value
and validate that?

so for example:

textbox:
domain\user1;domain\user2;de*******@gmail.com;doma in\12344 - this is the
invalid user

so when domain\1234 is invalid I then need to re-enter a new id for that
person and validate only that person but my textbox will still look like:
domain\user1;domain\user2;de*******@gmail.com;doma in\12345

is there a way to grab the changed username and validate that one only so
all the username are validated again?
I'm asking because if domain\user1 is valid, I'm then showing his full name
and I can't validate the user off of their full name.
or do I have to add logic in my code to check if the name exist in the
textbox and if so don't validate it.
Jul 17 '07 #1
2 1387
You can store the valid values as you go back to the server and ignore them
when you parse out the textbox the second time.

A better design would be to dynamically add textboxes with values so you
could have an easy visual indicator which one was not valid. You could then
only grab the invalid ones, as you would have "marked" which were invalid
(in ViewState perhaps).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Mike" <Mi**@community.nospam.comwrote in message
news:uE**************@TK2MSFTNGP02.phx.gbl...
>I have a text box were I can enter in a list of users. I then have a button
that I verify each user. I'm running into an issue, were if I have 3 users
entered in the textbox and user #3 is invalid, I then have to re-enter the
correct ID, when I hit my
validate user button, it validates all the users in the textbox again. Is
there a way not to validate the valid users and only get the changed value
and validate that?

so for example:

textbox:
domain\user1;domain\user2;de*******@gmail.com;doma in\12344 - this is the
invalid user

so when domain\1234 is invalid I then need to re-enter a new id for that
person and validate only that person but my textbox will still look like:
domain\user1;domain\user2;de*******@gmail.com;doma in\12345

is there a way to grab the changed username and validate that one only so
all the username are validated again?
I'm asking because if domain\user1 is valid, I'm then showing his full
name and I can't validate the user off of their full name.
or do I have to add logic in my code to check if the name exist in the
textbox and if so don't validate it.


Jul 17 '07 #2
I'm trying that now in a ViewState variable ,Though its keeping only the
valid users its bombing when I try to add them to my db due to its showing
the valid users several times

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OE**************@TK2MSFTNGP02.phx.gbl...
You can store the valid values as you go back to the server and ignore
them when you parse out the textbox the second time.

A better design would be to dynamically add textboxes with values so you
could have an easy visual indicator which one was not valid. You could
then only grab the invalid ones, as you would have "marked" which were
invalid (in ViewState perhaps).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Mike" <Mi**@community.nospam.comwrote in message
news:uE**************@TK2MSFTNGP02.phx.gbl...
>>I have a text box were I can enter in a list of users. I then have a
button that I verify each user. I'm running into an issue, were if I have
3 users entered in the textbox and user #3 is invalid, I then have to
re-enter the correct ID, when I hit my
validate user button, it validates all the users in the textbox again. Is
there a way not to validate the valid users and only get the changed
value and validate that?

so for example:

textbox:
domain\user1;domain\user2;de*******@gmail.com;dom ain\12344 - this is the
invalid user

so when domain\1234 is invalid I then need to re-enter a new id for that
person and validate only that person but my textbox will still look like:
domain\user1;domain\user2;de*******@gmail.com;dom ain\12345

is there a way to grab the changed username and validate that one only so
all the username are validated again?
I'm asking because if domain\user1 is valid, I'm then showing his full
name and I can't validate the user off of their full name.
or do I have to add logic in my code to check if the name exist in the
textbox and if so don't validate it.



Jul 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
2
by: Brennon Arnold | last post by:
I have a problem that I figured would be relatively common, but have been unable to find any information on it as of yet. I have a page that contains two DropDownList controls, with the second...
64
by: Morgan Cheng | last post by:
Hi All, I was taught that argument valuse is not supposed to be changed in function body. Say, below code is not good. void foo1(int x) { x ++; printf("x+1 = %d\n", x); } It should be...
6
by: Neil | last post by:
Hi, I have an aspx page with a number of web controls on it and one of these is a cancel button. I want to check the page to see if the user has changed any of the controls, i..e typed some text...
1
by: Earl Teigrob | last post by:
I would like to add a test in my button event handler to see if one of the controls has changed state. In this case, every time a dropdown list item has been changed to 'Complete' status, I want...
9
by: MR | last post by:
Why does the string value assigned to the RequestElementName in the SoapDocumentMethodAttribute get changed? The value below with a colon is changed to the hex value surrounded by underscores....
19
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: ...
5
by: Mark | last post by:
Hello, I have a form where I want to only enable a save button when something has changed in the dataset. Currently I'm checking current values against original values everytime a value is...
7
by: william | last post by:
My question is: Specific memory block where my pointer pointing to changed strangely, seemingly that no statement changed it. Here are two examples I got: ***********1***************** I was...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.