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
How to create data relations?
What are the different execute methods of Ado.Net?
What is isolation?
What is difference between ado and other data object?
how Sequence to connect and retrieve data from database using dataset?
What is executequery?
What is difference between datatable and dataset?
Which method is used to sort the data in ADO.Net?
What is a column variable?
What does ado stand for?
What are all the classes that are available in System.Data Namespace?
Explain advantages of ado.net?
What are the parameters that control most of connection pooling behaviours?
What is the difference between Dataset. clone and Dataset.copy?
What is the usage of the dataset object in ado.net?