have an image (acting like a button) currently that has onMouseOver
and onMouseOut events. want to make this accessible to the codebehind
with a click event.
was able to right click at and choose "run as server control", when i
double click it then to put code in the codebehind, there is no
function there for me to fill in. i made up one called goButton_Click
and handles gobutton.click
that didn't work, didn't recognize the name i gave it or click event
(don't remember which).
if i was to change it to a vb.net imagebutton, then i'd loose the
onMouseOver and onMouseOut events.
is there a way to have an image have the onMouse events and upon
clicking be handled by a codebehind function? i'm sure there is,
seems like a pretty standard process, just haven't put the pieces
together yet. ugh
(this is in a user control, ascx, by the way)
thanks for any help and an example would be great! 4 1943
Simon,
It is easier to use Image Buttons for this kind of things.
You only have to know it.
I hope this helps,
Cor
thanks, i think i tried that, not sure been trying so many new things
lately. but one of the issues with using something like that was that
i was not sure how to give the onMouse commands within the tag. lots
of squigglies come up if i'm not mistaken, which makes me a little
nervous to see them in the code Simon,
It is easier to use Image Buttons for this kind of things.
You only have to know it.
I hope this helps,
Cor
Hi,
Not sure if this the best method but you can use ajax to call a
function in the code behind with javascript. http://www.vb-tips.com/default.aspx?...d-73214b27750c
Ken
--------------------------------
"simon" wrote: thanks, i think i tried that, not sure been trying so many new things lately. but one of the issues with using something like that was that i was not sure how to give the onMouse commands within the tag. lots of squigglies come up if i'm not mistaken, which makes me a little nervous to see them in the code
Simon,
It is easier to use Image Buttons for this kind of things.
You only have to know it.
I hope this helps,
Cor
Simon,
You can add to every control attributes using VBNet. http://msdn2.microsoft.com/en-us/lib...ttributes.aspx
I hope this helps,
Cor
"simon" <me@here.com> schreef in bericht
news:l2******** *************** *********@4ax.c om... thanks, i think i tried that, not sure been trying so many new things lately. but one of the issues with using something like that was that i was not sure how to give the onMouse commands within the tag. lots of squigglies come up if i'm not mistaken, which makes me a little nervous to see them in the code
Simon,
It is easier to use Image Buttons for this kind of things.
You only have to know it.
I hope this helps,
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Csaba2000 |
last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE
5.5+). This should work regardless of whether IE has focus. Normally you would do myDomElement.click and the mouse
doesn't matter, but in the case of an input image element, what happens is the submitted url has something like
"?x=12&y=7" appended to it (the numbers vary per mouse position on the clicked element). If you hit...
|
by: Greg Christie |
last post by:
I think I have a somewhat unique situation here, so I thought I should
post it for the few poor souls who run across it and try to google it
like I did.
First of all, I was getting the following error when trying to hit one
of my pages...
---------------------------------------------------------------------
Invalid URI: There is an invalid sequence in the string.
---------------------------------------------------------------------
|
by: Fred R |
last post by:
I'm designing an app in Access 97 that will facilitate the uploading
of records and images to a website. The user selects the image
thumbnails from the file system and drags them into the app. There
appears to be just two types of controls that support this action: OLE
controls and Hyperlink text boxes. I am using the hyperlink. Dragging
the images into the hyperlink works just fine, but I'm quite dismayed
about the lack of control over...
|
by: Epetruk |
last post by:
Hi,
I'm trying to design a simple web form, but I cannot get the code in the
btnSubmit_ServerClick event to fire. What am I doing wrong?
Here's the codebehind:
using System;
using System.Collections;
using System.ComponentModel;
|
by: H Branyan |
last post by:
Scenario:
When a user submits the form by clicking one button (ButtonA), I want to
fire the click event for another button (ButtonB).
I created a javascript function first to the webform:
function SaveForm(btnName) {
alert('Save Form click ' + btnName);
var btn = document.forms;
btn.click();
| |
by: Simon Harris |
last post by:
Hi All,
I have a data grid which displays country names. I now wish to display the
country flag images above the names.
Can someone please advise how I display an image in a datagrid? I have a
folder of flag images, named in relations to the countries database ID.
Current data grid code is...
|
by: moondaddy |
last post by:
I need to get the size on an image client side before the client uploads it,
and if its too large, I need to alert the client rather than doing a
postback. The code below successfully writes the file size to the
text-input element on the second click (attempt), but writes -1 on the first
click. It must return the file size on the first click to be useable. Can
anyone explain why it returns -1 on the first click and then the actual file...
|
by: jens.buchta |
last post by:
Hi!
I'm using a DataGrid with a template column to display an Image inside
of it. I'm hooking into its OnPrerender-Event to set the
ImageURL-Property dynamically.
Everything works just fine here, until I thought "It would be cool, if
the user could click on that image..". So I replaced the Image-Control
with an ImageButton.
My Problem is, that the ImageButton doesn't fire any events. Any other
|
by: Vili |
last post by:
Hi all
I am having a problem here
Is it possible to fire a server side function from client side?
ie. I have a function on codebehind
Sub DoSomething(o as object)
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |