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
What is maximum pool size in ado.net connection string?
Which is better ole db or odbc?
What is XML serialization
how Sequence to connect and retrieve data from database using dataset?
Which database is the ado.net?
Is it possible to edit data in Repeater control?
What is microsoft ole db provider for sql server?
How to read data with the sqldatareader ?
What is ole word?
What is a dataview?
What is ole access?
What is the role of the dataset object in ado.net?
How to add an aggregate column?
What is a sqldataadapter?
How to add a javaScript function in a datagrid?