How to Retieve the data from SqlServer Database Table when value entered in Textbox.
======================================================
Dear Friends,
am working on Asp.net , C# , SqlServer 2005.
so, In my Sqlserver Database table(UserPasswordsTable) I have fields with UserName,Password and Status.
This Database Table is Filled with UserName and Password and the Status column is Empty.
on my Asp.net webpage I have 4 Textboxes and a button.
This is my Design.
=================
TxtCode TxtTrainNo SubmitBUTTON - TxtUserName, TxtPassword
so my requirement is when the user enters TxtCode , TxtTrainNo and Clicks on Submit button The Other Two Textboxes TxtUserName , Txt Password Must be Filled only when Submit button clicks.
These userName and Password Must be filled from UsersPasswordsTable into TxtUserName and TxtPassword TEXTBOXES.
Please help,
Thanks in ADVANCE.