Up vote 0 down vote favorite share g+ share fb share tw.
Work on asp.net vs05. I have a grid '> Using The button Click I want to save value on database. But I can not read value from the dropdownlist protected void GridView3_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow selectRow = GridView3.
SelectedRow; String ID = selectRow. Cells0. Text; String Name = selectRow.
Cells1. Text; //String Dis = selectRow. Cells2.
Text; String Dis = ((DropDownList)sender). FindControl("DropDownList1").ToString(); //**want to get this value** } How can I get ddl selected value? I want to put the object of a class on ddl .
Bellow code work on desktop ,Want same thing on web. DropDownList1. DisplayMember = "CommercialRegionName"; foreach (class oItem in _collection) { DropDownList1.Items.
Add(oItem); //**want to save object,Not any object item like:oItem.Name. ** } asp.net link|improve this question edited Oct 1 '09 at 9:20TheVillageIdiot13.6k12353 asked Oct 1 '09 at 8:57Shamim56415 0% accept rate.
1 Seems you have a problem accepting answers on your question... – Kamarey Oct 1 '09 at 9:01 ...and voting up (one +1 was probably accidental) – grega g Oct 1 '09 at 9:19 1 Wow 40 questions and not one accepted answer... – Kelsey Nov 16 '09 at 21:12.
Protected void GridView3_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow selectRow = GridView3. SelectedRow; String ID = selectRow. Cells0.
Text; String Name = selectRow. Cells1. Text; //String Dis = selectRow.
Cells2. Text; //PROBABLY YOU WANT TO GET ITEM FROM SELECTED ROW'S DROPDOWN var ddl = (selectRow). FindControl("DropDownList1") as DropdownList; if(dis!
=null){ var s=ddl.SelectedItem. Text; } }.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.