Can I use the same textbox in for searching of name and inserting it if it's new in webform?
if yes how?
Note: I already have the write procedure for searching and also stored procedure for adding the name for DB.
thanks in advanced
Can I use the same textbox in for searching of name and inserting it if it's new in webform?
if yes how?
Note: I already have the write procedure for searching and also stored procedure for adding the name for DB.
thanks in advanced
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Mar 3, 2023, 3:52 PM
Hello Name,
One way to achieve this is by implementing a search functionality that checks whether the entered name already exists in the database. If it does, the search results can be displayed to the user. If it doesn't exist, the textbox can be used to insert the new name into the database
Second way you can add a dropdown list which is having option to search or insert. Based on selection you can perform the optration.
Thanks
Naimish Makwana
Arvind YadavPosted Mar 5, 2023, 10:40 AM
for searching and inserting keep both text boxes separate.
Sam HobbsPosted Mar 4, 2023, 4:45 PM
Naimish MakwanaPosted Mar 3, 2023, 4:10 PM
you can implement the search and add functionality using a single button.
then add btnSubmit_Click event
Name MamePosted Mar 3, 2023, 4:03 PM
@Naimish Makwana
thanks
can you help in in the code ? for implement the first way?