Last post Jan 14, 2013 01:21 AM by Decker Dong - MSFT
Jan 12, 2013 08:13 AM|Mac14|LINK
Hello everyone! ^^
Hello my friends. I am creating a webiste and I have "My account" page. On this page, users can see their information like username, their mail, their security question etc. . I am using VS's create user wizard and its database called ASPNETDB.mdf. But
when I try to connect to the database and retrieve data it gives an error. What I want is sqlserverconnection1 will retrieve the data where user'name(sessionID) = the name on "UserName" columns in the DB. Can I just simply make it by using sqlserverconnection
control Or I have to maake the connection on code-behind screen?
Iam waiting for your help
Thanks! have a great day
Jan 14, 2013 01:21 AM|Decker Dong - MSFT|LINK
What I want is sqlserverconnection1 will retrieve the data where user'name(sessionID) = the name on "UserName" columns in the DB.
You can use ControlParameter, the PropertyText should be "Text" of your TextBox, and your parameter token should be that of TextBox.