Is smaller than the actual size (displayed in Netscape). So, before is enlarged displays a very big photo, and when you enlarge it is resized to its real size (which is smaller).
When this code is executed in Netscape:
<asp:imagebutton ID="product_image” Width="80" Height="60" OnClick=" view_real_size” runat="server" />
Instead of display a very small photo (like Internet Explorer does) it shows a very big photo (even bigger than the real size of the photo)
Hi,
Which is the best ASP.NET control to display an image (product photo) that is only a small sample to be enlarged when the user clicks on it and/or in an hyperlink below?
I ask it because now I use this control, and in this way:
<asp:imagebutton ID="product_image” Width="80" Height="60"...
Yes! Finally works :-), it was that header..
This is the code I implemented:
Sub add_js(Sender As Object, e As RepeaterItemEventArgs)
If e.Item.ItemType = ListItemType.AlternatingItem OrElse e.Item.ItemType = ListItemType.Item Then
Ctype(e.Item.FindControl("of_detail")...
I tried:
Sub add_js(Sender As Object, e As RepeaterItemEventArgs)
Dim myLinkButton As New LinkButton
myLinkButton = e.Item.FindControl("of_detail")
If myLinkButton Is Nothing Then
Response.Write(“I am not an object”)
Else
Response.Write(“I am an object”)
End If
End Sub...
If you really know how to do what you suggested, please, post a code sample. For example:
Sub Page_Load(Sender As Object, E As EventArgs)
Dim myLinkButton As New LinkButton
myLinkButton = e.Item.FindControl("of_detail")
If myLinkButton = Object Then
Response.Write(“Hello! I am an object...
I saw an article that explains (among many other things) how to achieve exactly what I want:
Complete article:
http://msdn.microsoft.com/msdnmag/issues/03/10/Blogging/#S7
But I don’ t understand why my code it doesn’ t work..:
Sub add_js(Sender As Object, e As RepeaterItemEventArgs)...
If I try this, the error is the same but pointing to this line:
Object reference not set to an instance of an object.
Line 323: myLinkButton.Attributes.Add("onclick", "return function2();")
So, the problem seems to be when trying to add the attribute...
Hi ca8msm,
I added the OnItemDataBound event handler to repeater control as you said, and it does the same:
Sub add_js(Sender As Object, e As RepeaterItemEventArgs)
CType(e.Item.FindControl("of_detail"), LinkButton).Attributes.Add("onclick","return function2();")
End Sub
<asp:repeater...
Hi,
I am trying to add some javascript functionality (an onclick event) to a LinkButton column generated by a repeater control, but I receive this error:
Object reference not set to an instance of an object.
Line 76: CType(offers_list.FindControl("of_detail")...
Perhaps you are right. I am trying to add the onclick event to a link so that to do so (trigger a script to save the scroll position when clicked), the problem is that link also has an onclick 'server' envent handler, and I don' t know how to add another onclick event to it. When I get it, which...
Imagine you are in page ‘A’, and you scroll that page until the bottom, then you save that scroll position in a hidden field and pass that value through querystring to next page ‘B’. Then, when you return to page ‘A’ from page ‘B’, you take (pass) again that value from querystring now to page...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.