473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

htmlinputimagecontrol

I have <input type=image runat=server > control in dataRepeater.

Then I have

Private Sub inputImage_ServerClick(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles inputImage.ServerClick

end sub

method on code behind.

When user click on my image, I would like that selected line id is passed
somewhere else.
How can I pass the argument to the inputImage_ServerClick sub?

I tried with name attribute.

But I can't read e.name in server function.

Any example?

Thanks, Simon

(I don't use asp:imageButton control because of other reasons)
Nov 19 '05 #1
3 1021
If you were using a <asp:ImageButton> then you could handle the Reperater's
ItemCommand event. The parameter to that event is the row in the repeater,
which makes it convenient to find out what row was clicked. Why are you having
problems with the <asp:ImageButton>?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have <input type=image runat=server > control in dataRepeater.

Then I have

Private Sub inputImage_ServerClick(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles inputImage.ServerClick

end sub

method on code behind.

When user click on my image, I would like that selected line id is
passed
somewhere else.
How can I pass the argument to the inputImage_ServerClick sub?
I tried with name attribute.

But I can't read e.name in server function.

Any example?

Thanks, Simon

(I don't use asp:imageButton control because of other reasons)


Nov 19 '05 #2
Hi, Allen,

I'm using onmouseover and onmouseout client events. <asp:ImageButton>
doesn't has those events.
Do you have any solution with <input type=image runat=server > control ?

Regards,
Simon

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:83**********************@msnews.microsoft.com ...
If you were using a <asp:ImageButton> then you could handle the
Reperater's ItemCommand event. The parameter to that event is the row in
the repeater, which makes it convenient to find out what row was clicked.
Why are you having problems with the <asp:ImageButton>?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have <input type=image runat=server > control in dataRepeater.

Then I have

Private Sub inputImage_ServerClick(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles inputImage.ServerClick

end sub

method on code behind.

When user click on my image, I would like that selected line id is
passed
somewhere else.
How can I pass the argument to the inputImage_ServerClick sub?
I tried with name attribute.

But I can't read e.name in server function.

Any example?

Thanks, Simon

(I don't use asp:imageButton control because of other reasons)


Nov 19 '05 #3


simon wrote:
Hi, Allen,

I'm using onmouseover and onmouseout client events. <asp:ImageButton>
doesn't has those events.
Do you have any solution with <input type=image runat=server > control ?

Regards,
Simon

It may not have those events, but have you tried

Me.ImageButton1.Attributes.Add("onmouseover",
"javascript:alert('hi');")

(With appropriate name of your imagebutton control)?

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.