0

I am developing a project in ASP.Net. How to retrieve data using C# from certain table (SQL database) based on user_id after user log in. And how to display the data into text box and label after user click Show button?

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by __avd
0

>How to retrieve data using C# from certain table (SQL database) based on user_id after user log in.

SQL text,

SELECT * FROM tablename WHERE userid=@userid

and classes from System.Data.SqlClient namespace.

>And how to display the data into text box and label after user click Show button?

Write your code in the button's click handler.

0


>how to display the data into text box and label after user click Show button?

Write your code in the button's click handler.

Can you give me the code?

0

>Can you give me the code?

Nope. That's not help. That would be doing your homework for you.
Read the forum rules. You need to show effort, and what better way than posting the code that you have tried so far?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.