473,322 Members | 1,307 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,322 software developers and data experts.

Weird Behavior

asp.net 2/C#/VS2005

Using master pages

On one of my pages (content, not master) I added several image buttons
(to the aspx page) by typing in...

<asp:ImageButton id="ibtMyButton" runat="server" />

The image buttons are using CSS and skins to show a regular looking
button at first but switch to a different look as the use hovers a
mouse over them. I programmed this (to the code behind page) by typing
in...

this.ibtMyButton.Attributes.Add("onmouseover","thi s.src='myImage'");
So when I run my app and hover the mouse over the buttons, they change
as expected. But if I look in the status bar I can see that at the
moment I hover the mouse over any of the buttons, it places the name
of the webpage into the status bar! For this example I always see
"Register.aspx" each time I hove over one of the buttons. This is VERY
ANNOYING. These are not hyperlinks, they are link buttons (HTML input
type=image as emitted to the clients).

As a workaround I tried modifying the onmouseover event to also
include window.status='Test', but that didn't quite work. The
"Register.aspx" still shows when I touch the buttons, and "Test" shows
when I move off of them.

What is going on here? Can anyone tell me how to stop "Register.aspx"
from displaying in the status bar each time I hover over my image
buttons?

JP

May 23 '07 #1
1 1260
you can't with current browsers. the tend with browsers is to show the
postback url for any control (including submit/image buttons). they also
will prevent javascript from updating the status bar.

-- bruce (sqlwork.com)

Joey wrote:
asp.net 2/C#/VS2005

Using master pages

On one of my pages (content, not master) I added several image buttons
(to the aspx page) by typing in...

<asp:ImageButton id="ibtMyButton" runat="server" />

The image buttons are using CSS and skins to show a regular looking
button at first but switch to a different look as the use hovers a
mouse over them. I programmed this (to the code behind page) by typing
in...

this.ibtMyButton.Attributes.Add("onmouseover","thi s.src='myImage'");
So when I run my app and hover the mouse over the buttons, they change
as expected. But if I look in the status bar I can see that at the
moment I hover the mouse over any of the buttons, it places the name
of the webpage into the status bar! For this example I always see
"Register.aspx" each time I hove over one of the buttons. This is VERY
ANNOYING. These are not hyperlinks, they are link buttons (HTML input
type=image as emitted to the clients).

As a workaround I tried modifying the onmouseover event to also
include window.status='Test', but that didn't quite work. The
"Register.aspx" still shows when I touch the buttons, and "Test" shows
when I move off of them.

What is going on here? Can anyone tell me how to stop "Register.aspx"
from displaying in the status bar each time I hover over my image
buttons?

JP
May 23 '07 #2

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

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
4
by: Stephan & Saori | last post by:
I found a "weird" problem running windows 2003 Server. Maybe it's a know problem but I just wanted to make sure everyone knows. When running explorer to find the directories on my hard disk. It's...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
1
by: Jonathan Yong | last post by:
I observe a very weird behavior when dynamically create web control and bind events to it. Create a C# ASP.NET application, Put a PlaceHolder and Textbox onto the Web form, and try with the 4...
3
by: aling | last post by:
Execute following T-SQL within Queary Analyzer of SQL Server 2000: ======================================= DECLARE @dTest DATETIME SET @dTest='2001-1-1 1:1:1:991' SELECT @dTest SET...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.