Click here to Skip to main content
16,016,192 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem with file upload using Pure ASP Pin
M LN Rao10-Jul-08 1:28
M LN Rao10-Jul-08 1:28 
AnswerRe: Problem with file upload using Pure ASP Pin
Sutheesh chandran10-Jul-08 1:38
Sutheesh chandran10-Jul-08 1:38 
GeneralRe: Problem with file upload using Pure ASP Pin
M LN Rao10-Jul-08 2:12
M LN Rao10-Jul-08 2:12 
GeneralRe: Problem with file upload using Pure ASP Pin
Sherin Iranimose10-Jul-08 2:15
Sherin Iranimose10-Jul-08 2:15 
Questionupdating dropdownlist value in row Pin
eyeseetee10-Jul-08 0:59
eyeseetee10-Jul-08 0:59 
QuestionRe: updating dropdownlist value in row Pin
Imran Khan Pathan10-Jul-08 1:11
Imran Khan Pathan10-Jul-08 1:11 
AnswerRe: updating dropdownlist value in row Pin
eyeseetee10-Jul-08 1:20
eyeseetee10-Jul-08 1:20 
GeneralRe: updating dropdownlist value in row Pin
Imran Khan Pathan10-Jul-08 1:50
Imran Khan Pathan10-Jul-08 1:50 
.netman wrote:
I want to update just the value I have chosen from the dropdownlist but I need to match it to the correct ID for that row.


If you want to update single row on dopdown selected index change event then first find out dropdownlist on rowCreatedEvent of gridview and create event handler of selected index changed.


.netman wrote:
DropDownList dd = ((DropDownList)row2.FindControl("ddorder"));


Look at here
On rowCreatedEvent of Gridview

if(e.Row.Rowtype==DataControlRowType.DataRow)
{
   DropDownList ddl=(DropDownList)e.Row.FindControl("DropDownListID")
   ddl.ToolTip=CurrentID; 
   //Get CurrentID of currentROw and set DropDownList ToolTip
   //Now create event Handler of DropDownList
}


On SelectedIndexChangeEvent,You have two argument e as eventArgs and Sender as an object
cast object to dropdownlist and get selectedValue and update data

for Example

DropDownList ddl=(DropDownList)sender;
string selectedValue=ddl.SelectedValue; //or ddl.SelectedText
string ID=ddl.ToolTip; //get ID and you can update your database value using this ID


regard
kHan

please don't forget to vote on the post that helped you.

GeneralRe: updating dropdownlist value in row Pin
eyeseetee10-Jul-08 2:23
eyeseetee10-Jul-08 2:23 
GeneralRe: updating dropdownlist value in row Pin
Imran Khan Pathan10-Jul-08 2:26
Imran Khan Pathan10-Jul-08 2:26 
GeneralRe: updating dropdownlist value in row Pin
eyeseetee10-Jul-08 2:35
eyeseetee10-Jul-08 2:35 
GeneralRe: updating dropdownlist value in row Pin
eyeseetee10-Jul-08 2:41
eyeseetee10-Jul-08 2:41 
GeneralRe: updating dropdownlist value in row Pin
Herman<T>.Instance10-Jul-08 6:31
Herman<T>.Instance10-Jul-08 6:31 
Question2+ year experince question and answer Pin
cse.vidhya10-Jul-08 0:25
cse.vidhya10-Jul-08 0:25 
AnswerRe: 2+ year experince question and answer Pin
sumit703410-Jul-08 0:29
sumit703410-Jul-08 0:29 
AnswerRe: 2+ year experince question and answer Pin
eyeseetee10-Jul-08 0:29
eyeseetee10-Jul-08 0:29 
GeneralRe: 2+ year experince question and answer Pin
cse.vidhya10-Jul-08 0:32
cse.vidhya10-Jul-08 0:32 
GeneralRe: 2+ year experince question and answer Pin
eyeseetee10-Jul-08 0:38
eyeseetee10-Jul-08 0:38 
GeneralRe: 2+ year experince question and answer Pin
sumit703410-Jul-08 0:42
sumit703410-Jul-08 0:42 
GeneralRe: Voting Pin
eyeseetee10-Jul-08 0:48
eyeseetee10-Jul-08 0:48 
GeneralRe: 2+ year experince question and answer Pin
N a v a n e e t h10-Jul-08 1:49
N a v a n e e t h10-Jul-08 1:49 
QuestionProblem with Delete Confirmation Pin
needhi_p10-Jul-08 0:08
needhi_p10-Jul-08 0:08 
AnswerRe: Problem with Delete Confirmation Pin
eyeseetee10-Jul-08 0:24
eyeseetee10-Jul-08 0:24 
AnswerRe: Problem with Delete Confirmation Pin
meeram39510-Jul-08 1:29
meeram39510-Jul-08 1:29 
QuestionHow To scheduling by using threads in asp.net 2.0 Pin
Naik A2Ze9-Jul-08 23:29
Naik A2Ze9-Jul-08 23:29 

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.