Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
153
rated 0 times [  156] [ 3]  / answers: 1 / hits: 18836  / 16 Years ago, thu, february 26, 2009, 12:00:00

I have a GridView that lists a bunch of items and one of the columns has a link that displays a modal (AjaxToolkit ModalPopupExtender). Let's call that link Show. In that modal, I have a asp:button for saving the data entered in that modal. Let's call that button Save



So when the user clicks on a Show link in a certain row, I'd like write some javascript that sets something in the Save button, so that in my code-behind, I can handle Save.Command and use the CommandEventArgs parameter to get the value.



Is this possible, or do I just need to use a hidden input tag and set its value?


More From » asp.net

 Answers
9

Well, after continuing the research, it looks like it cannot be done. The CommandArgument property might reside in the ViewState, but for this case, it is completely server side and cannot be changed using javascript.


[#99918] Friday, February 20, 2009, 16 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kaceyr

Total Points: 510
Total Questions: 97
Total Answers: 116

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
kaceyr questions
;