hello,
In my website admin can add more question in question area
Now that all question i want to show on webpage with textbox for give answer by reader .
and my idea is i show all question with textbox for answer but problem is after submit user then how i get all textbox and question (i mean 1.question with answer) whatever user give answer so how i get all question and answer
IF anyone has good idea so pls give how to show this list and get all question and answer in webage submit
thanks
Loading

Dharmesh SharmaPosted Jan 25, 2012, 7:41 AM
but problem is how to read all lables and textbox
problem is not how to set listview
i need code to how read listview and save database
thanks
Jignesh TrivediPosted Jan 25, 2012, 7:37 AM
that is fine Ans. is not come from DB, but when u retrived from data base set is null and then bind.
like...
select que,null as ans from queans
hope this help..
Dharmesh SharmaPosted Jan 25, 2012, 6:52 AM
but answer not come from database user enter the answer for question then i save to database
thanks
Jignesh TrivediPosted Jan 25, 2012, 6:40 AM
little bit change your code.
please refer.
http://www.dbtutorials.com/display/listview-editing.aspx
Dharmesh SharmaPosted Jan 25, 2012, 6:26 AM
thanks
Jignesh TrivediPosted Jan 25, 2012, 6:21 AM
that is fine, your using List view.
in list view you add asp textbox right? and asp text box are also get @ server side.
so we thing there is no problem to get the value @ server side.
Srinivas KPosted Jan 25, 2012, 6:20 AM
Dharmesh SharmaPosted Jan 25, 2012, 6:10 AM
Guys you not get my problem
i am using listview and i show all question and for there answer i add textbox
now simple thing is i want to get after submit all question with their answer
i mean all pair (question +answer)
i hope you get my things
thanks
Jignesh TrivediPosted Jan 25, 2012, 5:43 AM
alok has good idea.
inseted of grid you can use LISTVIEW(only for frame work 3.5) or form view.
hope this help.
Alok UniyalPosted Jan 25, 2012, 2:38 AM
I use a gridview which contain label and textbox for attribute name and attribute value respectively. By code below you can find text box in a particular row of GridView.
int rowcount = GridView1.Rows.Count;
May be above code will help you.