473,591 Members | 2,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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;do main\user2;de** *****@gmail.com ;domain\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;do main\user2;de** *****@gmail.com ;domain\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 1396
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.comwrot e in message
news:uE******** ******@TK2MSFTN GP02.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;do main\user2;de** *****@gmail.com ;domain\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;do main\user2;de** *****@gmail.com ;domain\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.netNoS pamMwrote in
message news:OE******** ******@TK2MSFTN GP02.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.comwrot e in message
news:uE******** ******@TK2MSFTN GP02.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;d omain\user2;de* ******@gmail.co m;domain\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;d omain\user2;de* ******@gmail.co m;domain\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
16135
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? 1) simply UPDATING the values for all fields in the table, whether or not any particular field has actually changed 2) running a second SELECT statement and comparing the $_POST vars to the returned values, and only UPDATING those that have...
2
3407
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 being dependent on the value of the first. My DropDownList control definitions look like this: <asp:dropdownlist id="ddlLocCty" runat="server" CssClass="SmlBox" AutoPostback="True" CausesValidation="False"></asp:dropdownlist> <asp:dropdownlist...
64
3347
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 "refactor-ed" to be
6
4363
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 in a textbox, changed a dropdown etc The reason I want to do this is when the user clicks cancel I want to notify them that their changes will be lost using a popup or something. My question is what is the best way to compare the page that...
1
2771
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 save the current date to the database as the completed date. I just need to know if the control has changed from its pervious selected value or not. Thanks Earl
9
1812
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. this doesn't happen to the RequestNameSpace. How can i prevent it from being changed? thanks
19
8271
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/9ae1c9d419264380/125a82c9be127790?lnk=st&q=checking+html+form++(updated+OR+edited+OR+changed)&rnum=28&hl=en#125a82c9be127790 suggests that you attach onChange event handlers to every form element, and when the handler fires you update a global 'isChanged' variable. This technique...
5
3459
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 changed to enable/disable the save button. Is there a way of telling if a dataset has been changed (ds property?) other than using this method? Any help greatly appreciated! Thanks in advance
7
1903
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 about to read from a floppy image and build a tree for all the directories and files. My question is only about a small portion where I had debugging problem, and I marked the place below at two places using "<======================"(you can try to...
0
7870
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8236
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8362
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5400
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3850
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3891
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.