3 Replies - 5020 Views - Last Post: 04 July 2009 - 01:52 PM Rate Topic: -----

#1 ptamzz   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 04-March 09

How to carry information from one page to another page

Posted 04 July 2009 - 12:07 PM

I'm creating an online exam system. In that, i've to give 10 marks for each correct answer (Radio Button). Now the problem is that, i've assigned a int32 variable the marks; the user must check the 1st question, and then when the button is clicked, the 2nd question will appear, and there the user has to check the radio button and according to the answer chosen, when the button is clicked next, the mark for the 2nd question shall be added to the marks obtained in the first question and so on untill all the questions are over.

So how do i carry the marks information???

Is This A Good Question/Topic? 0
  • +

Replies To: How to carry information from one page to another page

#2 b.ihde   User is offline

  • D.I.C for life
  • member icon

Reputation: 45
  • View blog
  • Posts: 1,070
  • Joined: 29-September 08

Re: How to carry information from one page to another page

Posted 04 July 2009 - 12:56 PM

Hi!

Please show us what you have tried so far..

[rules][/rules]

Ben
Was This Post Helpful? 0
  • +
  • -

#3 ptamzz   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 04-March 09

Re: How to carry information from one page to another page

Posted 04 July 2009 - 01:28 PM

This is the First page (Default.aspx one) with Question No. 1

<form id="form1" runat="server" action="Default1.aspx" >
	<div>
	
		Q1: What question no is this question?<br />
		<asp:RadioButton ID="RadioButton1" runat="server" Text="1" />
		<br />
		<asp:RadioButton ID="RadioButton2" runat="server" Text="2" />
		<br />
		<asp:RadioButton ID="RadioButton3" runat="server" Text="3" />
		<br />
		<asp:RadioButton ID="RadioButton4" runat="server" Text="4" />
		<br />
		<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
	
	</div>
	</form>



when the button is is clicked, the second page will be shown, here "Default1.aspx". In that page, i've the same code but a different question.

In that page, I want to retrieve which radio button the user checked and according to that, assign a variable for the mark. That variable will be added to more marks for each question as the user keeps answering the next and the next question and so on.

Im a complete beginner. Kindly elaborate me if anything is missing.
Was This Post Helpful? 0
  • +
  • -

#4 eclipsed4utoo   User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1536
  • View blog
  • Posts: 5,972
  • Joined: 21-March 08

Re: How to carry information from one page to another page

Posted 04 July 2009 - 01:52 PM

to persist data over postbacks and across pages, most people just Session variables.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1