Question : C#.net--Ajax-- how do i get the value of a bound filed which is inside an update panel ---from a javscript fuction call.

i am having an AJax update panel control in which a gridview is placed.when the form loaded the gridview is binded with values from database.

the first column of the grid view is a
other columns are  
when user click on 'delete' link a java script popup should come for delete confirmation.

i have added a 'OnClientClick="confirmSubmit()"  in the !

now the problem is i need to get the EMailId from the form  inside the JavaScript function so that i can say

"are sure you want to delete this" + EmailId

but i don't know how can i get the value of the EId from form .
pls give me some leads.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:

                                                            
                                                                
 
                                                                            
                                                                                
                                                                                    
                                                                                
                                                                            
 
                                                                                
                                                                                    
                                                                                
                                                                            
                                                                       
 
                                                                            
                                                       
 
 

Open in New Window Select All

Answer : C#.net--Ajax-- how do i get the value of a bound filed which is inside an update panel ---from a javscript fuction call.

you would need to get the email address from the row:
replace PUT_EMAILID_HERE with e.Row.Cells[emailColumnIndex].Text
or if you have a named template column for the email field: ((ITextControl)e.Row.FindControl("lblEmail")).Text
Random Solutions  
 
programming4us programming4us