Click here to Skip to main content
16,004,806 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Default1 Page as follows


Student Id Textbox1
Student Name Textbox2
Course Name Textbox2


Submit(Button) Go(Button)



Default2 page as follows


Student id Label1
Certificate no Textbox1
Course start dt Calendar
Course End dt Calendar


When i run the Default1 page i enter the Student Id, Student Name, Course Name and click the submit in database values are stored.

Then When i click the Go(Button) it will redirect to Default2 page

in that Default2 page, in the student id Label1 i want to display the student id from the Default1 page using Session.

for that how can i do using csharp.

Regards,
Narasiman P.
Posted

create session on your 1st default page
at c#page on submit button click event
like ds
session["Student Id "] = textbox1.text

on another page at default 2 page
:
label1.text=session["Student Id "].tostring();

sure it will run for u enjoy this code and rate it if u like my help
 
Share this answer
 
v4

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