J
Jørn A
I just learned how to add client-side javascript funtionality to a Button
Web control by using the Attributes.Add method at run-time.
myButton.Attributes.Add("onClick", "return confirm('Are you sure about
this?');")
But the problem arises when I want to add similar conditional funtionality
to buttons i a datagrid:
I have a datagrid in one of my pages where I want one column with buttons. I
want these buttons to open a new page in a new browser window, passing
different querystring parameters based on values from the record for the
specific datagrid-row.
The client-side attribute for the button in a specific datagrid row should
be something like:
onClick="window.open('theotherpage.asp?id=thisrecordsid&customer=thisrecords
customer
Can anyone show an example of how to accomplish this (preferably in VB.Net)?
Web control by using the Attributes.Add method at run-time.
myButton.Attributes.Add("onClick", "return confirm('Are you sure about
this?');")
But the problem arises when I want to add similar conditional funtionality
to buttons i a datagrid:
I have a datagrid in one of my pages where I want one column with buttons. I
want these buttons to open a new page in a new browser window, passing
different querystring parameters based on values from the record for the
specific datagrid-row.
The client-side attribute for the button in a specific datagrid row should
be something like:
onClick="window.open('theotherpage.asp?id=thisrecordsid&customer=thisrecords
customer
Can anyone show an example of how to accomplish this (preferably in VB.Net)?