Community discussion forum

C# Windows Application Problem in Dynamically generated control

  • 4 months ago

    Hi,

    My Project is Question and answer. where i have to bind the question and answer dynamically, i have bind the queston in webbrowser control and answer in radiobutton.

    where i have generated the controls dynamically and the first record is displaying correctlly.

    when i click next button i am not getting the second record in webbrowser and in radiobutton. it just showing the first record. i have debugged it and the values are assigning correctly.

    Can anybody hepl me in this Plz..

    Post was edited on 24/06/2009 10:04:03 Report abuse
  • 4 months ago

    there may be many problems check these: 1)you are not creatring controls for more than one time. 2)the events in radio buttons and buttons are correct. 3)answer test conditions are correct.

    but there is other way for your problem (C#) struct Question { public string title; public string question; public string Answer1; public string Answer2; public string Answer3; public string Answer4; } you can use a System.Collections.Objectmodel.Collection to do that if you want to save and load your data declare Question as a class and apply Serializable Attribute to it

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback