Click here to Skip to main content
15,917,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
Red_Wizard_Shot_The_Food1-Feb-07 1:18
Red_Wizard_Shot_The_Food1-Feb-07 1:18 
AnswerRe: How do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
minhpc_bk1-Feb-07 5:35
minhpc_bk1-Feb-07 5:35 
Because you want to get the value from the dropdownlist then the ControlID should point to this control, not the GridView. However, the dropdownlist is contained inside the GridView, therefore the value of the ControlID will be the uniqueID of the dropdownlist including the id of the containers. So it should be something like gvOutgoing$ctl02$ddlRecorded (or you can replace the $ with the :). There's one more important thing is that the uniqueId of the dropdownlist varies from row to row, so you'll have to update the ControlID dynamically according to which row is being edited.



GeneralRe: How do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
Red_Wizard_Shot_The_Food1-Feb-07 6:14
Red_Wizard_Shot_The_Food1-Feb-07 6:14 
GeneralRe: How do i pass the SelectedValue/Index of a DropDownList in a GridViews EditItem Template to a Control Parameter? Pin
minhpc_bk1-Feb-07 18:44
minhpc_bk1-Feb-07 18:44 
QuestionReporting Problem Pin
Sarfaraj Ahmed1-Feb-07 1:15
Sarfaraj Ahmed1-Feb-07 1:15 
AnswerRe: Reporting Problem Pin
Sandeep Akhare1-Feb-07 2:58
Sandeep Akhare1-Feb-07 2:58 
GeneralRe: Reporting Problem Pin
Sarfaraj Ahmed2-Feb-07 1:40
Sarfaraj Ahmed2-Feb-07 1:40 
GeneralRe: Reporting Problem Pin
Sandeep Akhare2-Feb-07 2:03
Sandeep Akhare2-Feb-07 2:03 
GeneralRe: Reporting Problem Pin
Sarfaraj Ahmed2-Feb-07 4:03
Sarfaraj Ahmed2-Feb-07 4:03 
Questionhow to import data from an excel to a datagrid Pin
gauthee1-Feb-07 1:06
gauthee1-Feb-07 1:06 
AnswerRe: how to import data from an excel to a datagrid Pin
Parwej Ahamad1-Feb-07 1:18
professionalParwej Ahamad1-Feb-07 1:18 
AnswerRe: how to import data from an excel to a datagrid Pin
Sandeep Akhare1-Feb-07 3:09
Sandeep Akhare1-Feb-07 3:09 
GeneralRe: how to import data from an excel to a datagrid Pin
gauthee1-Feb-07 23:08
gauthee1-Feb-07 23:08 
GeneralRe: how to import data from an excel to a datagrid Pin
Sandeep Akhare2-Feb-07 2:06
Sandeep Akhare2-Feb-07 2:06 
GeneralRe: how to import data from an excel to a datagrid Pin
Sandeep Akhare2-Feb-07 2:15
Sandeep Akhare2-Feb-07 2:15 
QuestionWhy OleDbCommand call oracle9i user function success,but OleDbCommand call failed. Pin
Old Gun1-Feb-07 0:56
Old Gun1-Feb-07 0:56 
QuestionUser Control Pin
aaraaayen1-Feb-07 0:11
aaraaayen1-Feb-07 0:11 
AnswerRe: User Control Pin
blue_arc1-Feb-07 1:48
blue_arc1-Feb-07 1:48 
AnswerRe: User Control Pin
Sandeep Akhare1-Feb-07 3:01
Sandeep Akhare1-Feb-07 3:01 
AnswerRe: User Control Pin
DavidNohejl1-Feb-07 11:35
DavidNohejl1-Feb-07 11:35 
QuestionInterview Material Pin
rrcc31-Jan-07 23:08
rrcc31-Jan-07 23:08 
AnswerRe: Interview Material Pin
rrcc31-Jan-07 23:35
rrcc31-Jan-07 23:35 
AnswerRe: Interview Material Pin
_AK_31-Jan-07 23:44
_AK_31-Jan-07 23:44 
Questioninfo abt whiteboard Pin
Sebastian T Xavier31-Jan-07 22:55
Sebastian T Xavier31-Jan-07 22:55 
Questionproblem with datagrid-paging Pin
sanaziuse31-Jan-07 22:53
sanaziuse31-Jan-07 22:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.