harpreet89's Profile
Reputation: 3
Apprentice
- Group:
- Members
- Active Posts:
- 18 (0.02 per day)
- Joined:
- 10-June 10
- Profile Views:
- 2,607
- Last Active:
Nov 17 2011 11:38 PM- Currently:
- Offline
Previous Fields
- Country:
- IN
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Hyundai
- Dream Kudos:
- 0
Latest Visitors
-
Dormilich 
14 Jul 2010 - 01:54
Posts I've Made
-
In Topic: Problem in retrieving the selected radiobuttons in asp.net
Posted 13 Nov 2011
No one here to reply to my query.
But i somehow figured that main problem is in this part of code in Marksheet.aspx.cs.
DataTable dt = new DataTable("Review"); dt.Columns.Add("Q. No.", typeof(Int32)); dt.Columns.Add("Question", typeof(string)); dt.Columns.Add("Selected", typeof(string)); dt.Columns.Add("Correct", typeof(string)); dt.Columns.Add("Verdict", typeof(string)); foreach (DataRow r in dtable.Rows) { DataRow dr = dt.NewRow(); dr["Q. No."] = r["serial"]; dr["Question"] = r["question"]; if ((int)r[6] != -1) { dr["Selected"] = r[(int)r[6] + 2]; Label5.Text = dt.Rows.Count.ToString(); // Added later on to check the no. of rows in DataTable /* At this point, the page show that the table has only 9 rows. */ } else { dr["Selected"] = "NA"; } dr["Correct"] = r[(int)r[5] + 1]; if (dr["Selected"] == dr["Correct"]) { dr["Verdict"] = "1 Mark"; marks++; } else dr["Verdict"] = "0 Marks"; dt.Rows.Add(dr); }
Please guys..help me out.
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- India
Contact Information
- E-mail:
- Private
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
harpreet89 has no profile comments yet. Why not say hello?