Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid button

Status
Not open for further replies.

LeoLionHeart

Programmer
Apr 4, 2006
45
GB
Hi there I have a datagrid with 5 columns the 5th column currently holds a image button. This image button is a image of a date control and I want it to open a popup window using javascript, which leads on to my problem.

Firstly I cannot add attributes to this button such as on page load

Code:
Me.btnDate.Attributes.Add("onclick", "Popup();")

Also, how do I attach the javascript/link to my template column?
 
Hi I have resolved that problem I have simply placed a html Image of the form and used the onclick event to display the calendar control.

However, my problem now is I have a hidden control on my parent form and I need that control to display the cell that I've just clicked, so that the date can then be posted back onto the parent form.

Any ideas??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top