469,900 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,900 developers. It's quick & easy.

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 1265
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Jason | last post: by
2 posts views Thread by Brennon Arnold | last post: by
64 posts views Thread by Morgan Cheng | last post: by
1 post views Thread by Earl Teigrob | last post: by
19 posts views Thread by Taras_96 | last post: by
5 posts views Thread by Mark | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.