No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
i cant fully understand ur question as for as concerned i tried select *from tablename where id='selectedid'
i am also new for it feild i tried to answer .for administrator u know the user name and password. so u can use like this [code=asp]if(username=="adminusername" && password=="adminpassword") { response.redirect("adminhomepage.aspx"); } else { response.redirect("userhomepage.aspx"); }[/code]
u hould create table eiyh two columns and enter username and password in table using insert command. then come to asp page in page load 1. initialize the connection using the code [icode]sqlconnection con=new sqlconnection();[/icode] 2.open the connection [icode]con.open()[/icode] 3.[icode]sqlcommand cmd=new sqlcommand("select *from tablename",con);[/icode] 4.[icode]sqldatareader dr=cmd.executereader()[/icode] 5.[icode]while(dr.read())[/icode] 6. [code=ASP]if ((TxtUsername.Text) …
The End.
vmadhu_ece