Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ImageButton instantiated need to access imageUrl from the frontend code

Reply
Thread Tools

ImageButton instantiated need to access imageUrl from the frontend code

 
 
dphizler@gmail.com
Guest
Posts: n/a
 
      11-01-2012
Hello,

I'm not every knowledgeable about ASP.Net so if I'm at the wrong place, let me know.

I need to find out how to do the following:

I have this in my behind code in a dll:
ImageButton hlImageLink = e.Item.FindControl("hlImageLink") as ImageButton;

So I can't modify that.

But I need to access that hlImageLink.imageUrl in the frontend code.

A bit like this:
<asp:Image ID="hlImageLink" CssClass="scale-up" runat="server" />

All I want is to display the image but I can't modify the object type in the behind code

Any ideas?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Imagebutton.ImageUrl won't let read doll ASP .Net 0 09-15-2008 09:12 PM
why can't an instance instantiated within a class method access aprotected instance method? Greg Hauptmann Ruby 9 06-16-2008 10:16 AM
Strange issue with ImageButton with no ImageUrl Gary K ASP .Net 2 01-08-2008 05:20 PM
1.1: Setting ImageUrl of ImageButton does not work DC ASP .Net 2 07-30-2007 01:56 PM
ImageButton ImageURL question Pradeep ASP .Net Web Controls 0 01-27-2005 10:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57