Hello,
Could anyone help me to handle <asp:Image> click in behind code?
I have:
<asp:Image ID="DotNETImage " ImageUrl="Image s/DotNET_360x280. jpeg"
AlternateText=" Microsoft .NET version 2.0" Width="360" Height="280"
runat="server" />
which I need to handle when clicked. I tried:
protected void Page_Load(objec t sender, EventArgs e)
{
DotNETImage.Cli ck += new EventHandler(Do tNETImage_Click );
}
private void DotNETImage_Cli ck(object sender, EventArgs e)
{
....
}
but it doesn't work of course because there's no Click event for
asp:Image.
Could you help me plase? I cannot find a solution in Internet.
Thank you very much!
/RAM/ 4 1744
Why not use an ImageButton control instead?
"R.A.M." <r_********@poc zta.onet.pl> wrote in message
news:bc******** *************** *********@4ax.c om... Hello, Could anyone help me to handle <asp:Image> click in behind code? I have:
<asp:Image ID="DotNETImage " ImageUrl="Image s/DotNET_360x280. jpeg" AlternateText=" Microsoft .NET version 2.0" Width="360" Height="280" runat="server" />
which I need to handle when clicked. I tried:
protected void Page_Load(objec t sender, EventArgs e) { DotNETImage.Cli ck += new EventHandler(Do tNETImage_Click ); } private void DotNETImage_Cli ck(object sender, EventArgs e) { ... }
but it doesn't work of course because there's no Click event for asp:Image. Could you help me plase? I cannot find a solution in Internet. Thank you very much!
/RAM/
On Sat, 18 Mar 2006 14:54:45 -0800, "Ken Cox - Microsoft MVP"
<BA**********@h otmail.com> wrote: Why not use an ImageButton control instead?
Thank you.
You are right (I am beginner).
I believe ImageButton does not allow Transparency of the image?
INPUT TYPE of Image draws opaque. What a mess.
what do you want to do?
Patrick
<br***********@ gmail.com> wrote in message
news:11******** **************@ i39g2000cwa.goo glegroups.com.. . I believe ImageButton does not allow Transparency of the image? INPUT TYPE of Image draws opaque. What a mess. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris Fink |
last post by:
Hello,
Does anyone know of a way to handle broken href image tags either by using
the html img tag or the asp:image server control? For example, if my src
attribute is broken, I would like to display an alternate image, ie one that
blends in with the background instead of the standard eye sore x.
I would imagine I could use the <asp:image> server controls events to check
the src and then change it if it is broken, i am just not clear...
|
by: tperri |
last post by:
I have an HTML table with several fields like this:
<A href="Savings.aspx?category=Food"><asp:imagebutton id="imgFood"
ImageUrl="images\buttons\btn-food-i.gif" runat="server"></asp:imagebutton></A>
When the user sees these buttons, they will currently be on the
savings.aspx?category=whatever page, and when they click another button to
look at other categories, all the links I have around these buttons direct to
their various categories.
|
by: DavidS |
last post by:
I have HTML web page with <asp:Image id=img_L runat=server ImageAlign=Top
Visible=True Width=y Height=x></asp:Image>. For some images, less than 128K
I can view image. Other image files > 128K, image is not viewable - comes up
with X in picture box. Is there size restriction. How can I remove this -
or how can I show images > 128K in web page.
NOTE: x & y in asp:Image spec are distinct values - say 128 x 128 or 64 x 64
image sizes
|
by: Satya |
last post by:
Hi all,
The following code is throwing a run time error "The server tag is not well
formed.
"
<ItemTemplate>
<asp:HyperLink Runat="server" ID="lnkFile"
NavigateUrl="javascript:OpenImage('<%#
DataBinder.Eval(Container.DataItem,"FileName") %>');"><%#
|
by: Joe |
last post by:
Hello All,
I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton
(SearchButton) server controls. The user can type search text in
SearchTextBox and click SearchButton and the web server performs a database
query and displays the results. All of this works fine.
I want the user to be able to press the Enter key while the cursor is still
in SearchTextBox and have the SearchButton.Click event fire (thus performing...
| |
by: jackiepatti |
last post by:
QUESTION:
I have a web page containing a form that contains an image instead of a
submit button, e.g.
<form name='myform' action='get' method='otherpage.asp'>
<input type='image' src='picture.gif' name='myimage' id='myimage'>
</form>
When forms with image types are submitted, the value is not returned;
instead, when the form is submitted, the XY coordinates of the where
the user clicked on the image are sent. For example, if the user
|
by: MRW |
last post by:
Hello!
I'm taking a file name from a database and using the <asp:imagetag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:
<asp:Image runat=server ImageUrl=<%#
HttpUtility.HtmlDecode((Eval("WallpaperLink"))) %/>
It still displays the file as: bobs%20image. %20 keeps popping up.
|
by: MRW |
last post by:
Hello!
I'm taking a file name from a database and using the <asp:imagetag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:
<asp:Image runat=server ImageUrl=<%#
HttpUtility.HtmlDecode((Eval("WallpaperLink"))) %/>
It still displays the file as: bobs%20image. %20 keeps popping up.
|
by: Steve Kiss |
last post by:
Is there a way to add javascript functionality, onmouseover to be specific, to an image defined with <asp:Image />?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |