Hello everyone.
I am using Microsoft Visual Studio 2005's Visual Web Developer to create a web application. On one page of this application I am using a Datalist. For each record that is returned in the datalist, it contains a label for the RecordID and labels for personal information(name, Birthdy, stateID, etc.) for each persons record. I don't want the SSN of each person to be listed for the world to see whenever someone is searching the database.
What I am trying to do is, each records listitem also has a textbox and a button. If the user has it available, I want them to be able to enter the SSN that they have, into the textbox and click the button to compare the SSN they entered with the SSN on that record, in cases where they may need to verify the social when searching for someone.
I have created the datalist and have all the fields and buttons where I want them, but I do not know how to reference the datalist items(labels, textbox, etc). When I click the button, I would like it to get the text from the label that contains the RecordID of that record, then have it search the database for that record and check if the SSN field for that record matches my textbox. Can someone please show me how to retrieve information from the datalist items? If you need any additional information, please let me know. Thanks.
I am using Microsoft Visual Studio 2005's Visual Web Developer to create a web application. On one page of this application I am using a Datalist. For each record that is returned in the datalist, it contains a label for the RecordID and labels for personal information(name, Birthdy, stateID, etc.) for each persons record. I don't want the SSN of each person to be listed for the world to see whenever someone is searching the database.
What I am trying to do is, each records listitem also has a textbox and a button. If the user has it available, I want them to be able to enter the SSN that they have, into the textbox and click the button to compare the SSN they entered with the SSN on that record, in cases where they may need to verify the social when searching for someone.
I have created the datalist and have all the fields and buttons where I want them, but I do not know how to reference the datalist items(labels, textbox, etc). When I click the button, I would like it to get the text from the label that contains the RecordID of that record, then have it search the database for that record and check if the SSN field for that record matches my textbox. Can someone please show me how to retrieve information from the datalist items? If you need any additional information, please let me know. Thanks.