i have two textboxes one for user name and another for
password . i have a table name compare(which contains
name,passwod etc.,)my doubt is how compare username
textbox with name column and how compare password textbox
with passwod column. i want the code
Answer Posted / vijay
sqldatasource s=new sqldatasource();
s.connectionstring=configurationmanager.connectionstring
["compareconnectionstring"].connectionstring;
s.selectcommand="select count(*) from compare where uid='"
+ textbox1.text + "'and pwd='" + textbox2.text + "'";
Dataview dv=new dataview();
dv=(dataview)s.select(datasourceselectarguments.empty)
if(dv[0][0]>0){} //found
else{}//not found
Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Define bubbled event?
what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?
Which is better ole db or odbc?
Give an example of a .net application which connects to microsoft access database using ado.net classes.
What is isolation?
Is it possible to edit data in Repeater control?
Explain how to create dynamic gridview?
What is ado.net in vb net?
Explain the different row versions available in table?
Explain the difference in an abstract class and an interface?
Why do we need ado.net?
How to pass multiple tables in datasets simultaneously?
How to bind the controls(best practice) comboboxes to the data in the dataset?
What is ado.net object model?
What does sqldatareader return?