473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

the user login and view thier course profile - parameter issue

2
Hi I am very need an advice for this.

I am new to ASP.NET C# / VS2003
here is my sql command

SELECT tblStudentCourse.CourseID, tblStudents.StudentID, tblStudents.FirstName, tblStudents.SurName, tblUsers.UserID, tblUsers.Username
FROM (tblStudents INNER JOIN (tblCourses INNER JOIN tblStudentCourse ON tblCourses.CourseID = tblStudentCourse.CourseID) ON tblStudents.StudentID = tblStudentCourse.StudentID) INNER JOIN tblUsers ON tblStudents.StudentID = tblUsers.StudentID
where tblUsers.Username = @username;

so after login with the username how can I get the result of student's course information

now I try this but it still not work.

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here


String @username;
@username = User.Identity.Name.ToString();
Response.Write(@username);
@username.Equals(this.oleDbDataAdapter1.SelectComm and.Parameters["@username"].Value.ToString());

this.DataGrid1.DataBind();
}

Please anyone know about this advice me it very urgent for my final study project.

Thank you
Nov 16 '06 #1
0 851

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: givlerj | last post by:
I need some help. Here is a little background, I support a MS Access 2k DB (SQL Server 2k backend) that has courses and students. The problem form lets the user pick a course from a drop down and...
5
by: Shimon Sim | last post by:
I am working with LogIn control and need to set some property for profile after user is authenticated. I thought that LoggedIn event is the right place but system tells me that the property can't...
3
by: Ryan | last post by:
I am going to create an asp site that allows the users to fill out application information. Their personal information will be stored server side in a SQL 2005 database and they can come back to...
9
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.