Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Dynamically Bind Input Values from TextBox

$
0
0

I'm trying to figure out the best approach for dynamically binding values to inputs based on the value entered into another input. Scenario is I have a view with three textbox inputs (Email, First Name, Last Name). When the user enters the email address I want to check the database to determine if the email already exists and if it does return the First and Last Name values and bind them to the appropriate input. 

I've seen code for doing cascading drop downs and I can go down this route if necessary,  but I hoping there are some more elegant (easier) solutions. I utilize the "Remote" validation logic to determine if the email address already exists in the database, so I'm hoping there is something like it or a way to extend it to populate the other input controls.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>