A
Andy
I've created a composite control called GRIDLOOKUP that contains an
ASP:LINKBUTTON and ASP:IMAGEBUTTON. I've also added TEXT and KEY
properties to GRIDLOOKUP which store their values in GRIDLOOKUP's
viewstate.
GRIDLOOKUP copies its TEXT property to the LINKBUTTON's TEXT property,
so that the current value of GRIDLOOKUP is displayed in the
LINKBUTTON. When GRIDLOOKUP makes its round trip between the client
and server, both TEXT and KEY properties are persisted properly.
I've placed GRIDLOOKUP in a DataGrid Template on a webpage. When the
webpage runs, the datagrid renders GRIDLOOKUP correctly, and the
values for the column GRIDLOOKUP is attached to appear correctly in
the LINKBUTTON.
When the user clicks the IMAGEBUTTON, I want to change the values of
TEXT and KEY for the corresponding GRIDLOOKUP the user selected
through javascript on the clientside.. Unfortunately, GRIDLOOKUP
renders only the LINKBUTTON and IMAGEBUTTON. There is no GRIDLOOKUP
control visible in the HTML of the page. Yet, in the codebehind of
the webpage during the postback, I can access the TEXT and KEY
properties of GRIDLOOKUP.
Should I be accessing TEXT from the LINKBUTTON instead during the
postback to the webpage and transfering its value to the GRIDLOOKUP
composite control at that point?
Or is there a way to do this from the GRIDLOOKUP codebehind?
ASP:LINKBUTTON and ASP:IMAGEBUTTON. I've also added TEXT and KEY
properties to GRIDLOOKUP which store their values in GRIDLOOKUP's
viewstate.
GRIDLOOKUP copies its TEXT property to the LINKBUTTON's TEXT property,
so that the current value of GRIDLOOKUP is displayed in the
LINKBUTTON. When GRIDLOOKUP makes its round trip between the client
and server, both TEXT and KEY properties are persisted properly.
I've placed GRIDLOOKUP in a DataGrid Template on a webpage. When the
webpage runs, the datagrid renders GRIDLOOKUP correctly, and the
values for the column GRIDLOOKUP is attached to appear correctly in
the LINKBUTTON.
When the user clicks the IMAGEBUTTON, I want to change the values of
TEXT and KEY for the corresponding GRIDLOOKUP the user selected
through javascript on the clientside.. Unfortunately, GRIDLOOKUP
renders only the LINKBUTTON and IMAGEBUTTON. There is no GRIDLOOKUP
control visible in the HTML of the page. Yet, in the codebehind of
the webpage during the postback, I can access the TEXT and KEY
properties of GRIDLOOKUP.
Should I be accessing TEXT from the LINKBUTTON instead during the
postback to the webpage and transfering its value to the GRIDLOOKUP
composite control at that point?
Or is there a way to do this from the GRIDLOOKUP codebehind?