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
describe the dataset object in ado.net.
Explain the two fundamental objects in ado.net?
Define data access layer?
What are the pre-requisites for connection pooling?
What is basic use of data view?
What provider ado.net use by default? Explain the role of data provider in ado.net?
What is ole2 format?
What is disconnected architecture in ado.net?
What is a serialized object?
What are the disadvantages of using datalist?
What is the difference between oledb sql server and oledbdotnet provider?
What is difference between executequery and executeupdate?
What is difference between connected and disconnected architecture in ado.net?
How to pass values into a datatable?
How to generate a single aggregate?