Click here to Skip to main content
15,886,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have an application for maintaining the student details.
In this I have one web form 'StudentList.aspx' which list all the student ids in a Gridview(id,name,address) and I have one more web form like 'AssignStudent.aspx'
Now I want to assign each student to a Lecturer using another asp.net web form containing(lecturer name(drop downlist),subject(drop downlist),location....)

My question is If I click on student Id 100 then it should open the another web form to assign that particular student to a lecturer.

Can anyone give me the idea how to achieve this.
Please Let me know if my question is not clear to understand.

Thank you,
Posted

1 solution

When you click on Id 100, in the code behind open the link in another form using Response.Redirect("~/AssignStudent.aspx?Id="+ value)

In the AssignStudent.aspx, use

Request.QueryString to get the data and process
 
Share this answer
 
Comments
palcordis 22-Jun-12 10:29am    
Thank you,
Here in code behind of StudentList.aspx,I am written like this
(I used Datalist control to see the student List in StudnetList.aspx)

protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
{
string url = "'AssignStudnet.aspx?key=" + e.CommandArgument.ToString() + "'";
string cmd = "popup(" + url + ")";
ScriptManager.RegisterStartupScript(this, this.GetType(), "newWindow", cmd, true);
}


After running If I click on 100,The another web form AssignStudent.aspx page is opening fine,
Here what I need is I want to assign that student to a lecturer,If I click on 100 the 100 value has to be shown in one textbox of AssignStudent.aspx.so that I can assign to that particular student.
Could you please help me.
palcordis 25-Jun-12 4:06am    
Hello,
Can anyone help me to solve my issue?

Thank you,

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