Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends!
I'm new to ASP.net so I need your help. I'm developing an online exam website which is running welll. I have done coding on next button so when the user clicks on said button the next question will appear on the page.
Now to my problem: when the page loads for the first time there are blank controls on the page and when the user clicks the next button the controls get filled by content from the database. I want it when the page loads for the first time that all controls should be filled with content from the database so there should be no blank controls. I've tried to change the button's event to page load event, but the controls start to get values from last row of database.

Help me please!
Posted
Updated 28-Apr-11 9:12am
v2
Comments
Monjurul Habib 28-Apr-11 18:16pm    
please share your code to help you.

1 solution

Could you please share your code ? I guess you have fill the controls in wrong places. You have to do like below

On_PageLoad()
{
LoadContentFromDB();
FillControls();
} 


And On button_Click, you should move to the next question.
 
Share this answer
 
Comments
Ashishmau 29-Apr-11 1:37am    
I also thinks so

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