Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have bind a Student_table into gridview and it has columns like StudentId,Name,LastName,Department,Mark1,Mark2,Mark3,Mark4. For this i web application i have create login for to view student details in gridview. If login suceessful all the department student info will be displayed. here i need only specific depeartment for the user.

For Example,
if Username=mca then in gridview MCA department only has to be bind.

Kindly help me to done this.........
Posted

1 solution

First you have to get department and pass that to select query for where condition and you got exact result
eg. select * from Student_table where Department ='MCA'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900