|
-
May 15th, 2009, 09:04 AM
#1
Thread Starter
Hyperactive Member
Creating Image Button on the fly
Hi all,
I am creating an asptable programatically based on the results of a sql query. It generates the table great.
However, I want to have an image button in the first column that will populate fields based on which row of the table the user is on. I currently use this code to generate the cell content:
c.Text = "<a onmouseover=" & Chr(34) & "overlib('EDIT THIS'); return false;" & Chr(34) & " " & _
"onmouseout=" & Chr(34) & "return nd();" & Chr(34) & " href=" & Chr(34) & "javascript:void(0);" & Chr(34) & " " & _
"onClick=" & Chr(34) & "action = ' '; return false" & Chr(34) & ">" & _
"<img src =" & Chr(34) & "/Images/Window%20Edit.gif" & Chr(34) & " border=0></a>"
This creates the button with a mouse over effect no problem.
How do I get the value associated with the row? Is there a way to have the image button assigned a value? Do I need to write a javascript of somesort? Or am I barking up the wrong tree?
Thanks,
Jon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|