473,769 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help manipulating MousePointers over server controls

Hi

I need to change my mousepointer when the mouse moves over certain populated
controls on my aspx page.

I've tried the following but without success (after visiting a site
recommended from this forum, ie css cursors tutorial)

I have, in the HTML defined this
<Head>
<style type="text/css">
..xlink { CURSOR: crosshair }
</style>
....
...
</HEAD>
and in the aspx.vb page
(where lbx is a listbox class variable (for a findcontrol in a grid))

lbx.Attributes( "onmouseove r") = "this.style.cla ss=""xlink"" "

which renders a syntax error (I have tried single quotes etc)

Note: changing colours in the control with the following works
'lbx.Attributes ("onmouseove r") = "this.style.col or='red'"

any ideas / help
TIA
--
Neal Rogers
University of Cape Town
Nov 19 '05 #1
5 1145
lbx.Attributes( "onmouseove r") = "this.className ='xlink'"

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:6E******** *************** ***********@mic rosoft.com...
Hi

I need to change my mousepointer when the mouse moves over certain populated controls on my aspx page.

I've tried the following but without success (after visiting a site
recommended from this forum, ie css cursors tutorial)

I have, in the HTML defined this
<Head>
<style type="text/css">
.xlink { CURSOR: crosshair }
</style>
...
..
</HEAD>
and in the aspx.vb page
(where lbx is a listbox class variable (for a findcontrol in a grid))

lbx.Attributes( "onmouseove r") = "this.style.cla ss=""xlink"" "
which renders a syntax error (I have tried single quotes etc)

Note: changing colours in the control with the following works
'lbx.Attributes ("onmouseove r") = "this.style.col or='red'"

any ideas / help
TIA
--
Neal Rogers
University of Cape Town

Nov 19 '05 #2
Thanks,
That takes care of the syntax error,
but the mousepointer does not change on mouseover the lbox as anticipated.

I tried these ,.. all to no avail
1.. 'lbx.Attributes ("onmouseove r") = "this.className ='xlink'"

2.. 'lbx.Attributes .Add("onmouseov er", "clientfunction ();")
'lbx.Attributes ("onmouseove r") = "this.className ='xlink'"

3..' lbx.Attributes. Add("onmouseove r",
"this.classname ='xlink'")

All escape the syntax check, but none work.

anything I am missing here ?
Neal
"Eliyahu Goldin" wrote:
lbx.Attributes( "onmouseove r") = "this.className ='xlink'"

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:6E******** *************** ***********@mic rosoft.com...
Hi

I need to change my mousepointer when the mouse moves over certain

populated
controls on my aspx page.

I've tried the following but without success (after visiting a site
recommended from this forum, ie css cursors tutorial)

I have, in the HTML defined this
<Head>
<style type="text/css">
.xlink { CURSOR: crosshair }
</style>
...
..
</HEAD>
and in the aspx.vb page
(where lbx is a listbox class variable (for a findcontrol in a grid))

lbx.Attributes( "onmouseove r") =

"this.style.cla ss=""xlink"" "

which renders a syntax error (I have tried single quotes etc)

Note: changing colours in the control with the following works
'lbx.Attributes ("onmouseove r") = "this.style.col or='red'"

any ideas / help
TIA
--
Neal Rogers
University of Cape Town


Nov 19 '05 #3
Try it on unpopulated listbox or on a control that doesn't contain any other
controls. It should work. Could be you have different setting for the inner
controls interfering with the one for the listbox.

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:01******** *************** ***********@mic rosoft.com...
Thanks,
That takes care of the syntax error,
but the mousepointer does not change on mouseover the lbox as anticipated.

I tried these ,.. all to no avail
1.. 'lbx.Attributes ("onmouseove r") = "this.className ='xlink'"
2.. 'lbx.Attributes .Add("onmouseov er", "clientfunction ();")
'lbx.Attributes ("onmouseove r") = "this.className ='xlink'"
3..' lbx.Attributes. Add("onmouseove r",
"this.classname ='xlink'")

All escape the syntax check, but none work.

anything I am missing here ?
Neal
"Eliyahu Goldin" wrote:
lbx.Attributes( "onmouseove r") = "this.className ='xlink'"

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:6E******** *************** ***********@mic rosoft.com...
Hi

I need to change my mousepointer when the mouse moves over certain

populated
controls on my aspx page.

I've tried the following but without success (after visiting a site
recommended from this forum, ie css cursors tutorial)

I have, in the HTML defined this
<Head>
<style type="text/css">
.xlink { CURSOR: crosshair }
</style>
...
..
</HEAD>
and in the aspx.vb page
(where lbx is a listbox class variable (for a findcontrol in a grid))

lbx.Attributes( "onmouseove r") =

"this.style.cla ss=""xlink"" "

which renders a syntax error (I have tried single quotes etc)

Note: changing colours in the control with the following works
'lbx.Attributes ("onmouseove r") = "this.style.col or='red'"
any ideas / help
TIA
--
Neal Rogers
University of Cape Town


Nov 19 '05 #4
I hear you, but

I need it on populated listboxes in the dgrids cells,(actually I need the
cursor to be "hand") to indicate to users that there is more data (like a
hyperlink cursor), which when they click it, displays a modal dialog with
more indepth "drilldown" data.

It may be that the listbox being the inner control is not seeing the style
class added in the HTML (in the Head section)... in fact that is probably the
case.

I have creatd scripts dynamically for each listbox only when they are
populated, identifying them and their data and these respond correctly to a
click event and show the modal dialog with each's respective data,
should i maybe perpetuate this methodology instead,.. maybe add some jscript
to handle the cursor type ?? or try moving the style class out somewhere
else??

Neal

"Eliyahu Goldin" wrote:
Try it on unpopulated listbox or on a control that doesn't contain any other
controls. It should work. Could be you have different setting for the inner
controls interfering with the one for the listbox.

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:01******** *************** ***********@mic rosoft.com...
Thanks,
That takes care of the syntax error,
but the mousepointer does not change on mouseover the lbox as anticipated.

I tried these ,.. all to no avail
1.. 'lbx.Attributes ("onmouseove r") =

"this.className ='xlink'"

2.. 'lbx.Attributes .Add("onmouseov er", "clientfunction ();")
'lbx.Attributes ("onmouseove r") =

"this.className ='xlink'"

3..' lbx.Attributes. Add("onmouseove r",
"this.classname ='xlink'")

All escape the syntax check, but none work.

anything I am missing here ?
Neal
"Eliyahu Goldin" wrote:
lbx.Attributes( "onmouseove r") = "this.className ='xlink'"

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:6E******** *************** ***********@mic rosoft.com...
> Hi
>
> I need to change my mousepointer when the mouse moves over certain
populated
> controls on my aspx page.
>
> I've tried the following but without success (after visiting a site
> recommended from this forum, ie css cursors tutorial)
>
> I have, in the HTML defined this
> <Head>
> <style type="text/css">
> .xlink { CURSOR: crosshair }
> </style>
> ...
> ..
> </HEAD>
>
>
> and in the aspx.vb page
> (where lbx is a listbox class variable (for a findcontrol in a grid))
>
> lbx.Attributes( "onmouseove r") =
"this.style.cla ss=""xlink"" "
>
> which renders a syntax error (I have tried single quotes etc)
>
> Note: changing colours in the control with the following works
> 'lbx.Attributes ("onmouseove r") = "this.style.col or='red'" >
> any ideas / help
> TIA
>
>
> --
> Neal Rogers
> University of Cape Town


Nov 19 '05 #5
See inline

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:6A******** *************** ***********@mic rosoft.com...
I hear you, but

I need it on populated listboxes in the dgrids cells,(actually I need the
cursor to be "hand") to indicate to users that there is more data (like a
hyperlink cursor), which when they click it, displays a modal dialog with
more indepth "drilldown" data. You can set "onmouseove r" for the cells rather than for the listboxes.

It may be that the listbox being the inner control is not seeing the style
class added in the HTML (in the Head section)... in fact that is probably the case. No, this is not the case. There is no difference between inner and outer
controls in this respect.

I have creatd scripts dynamically for each listbox only when they are
populated, identifying them and their data and these respond correctly to a click event and show the modal dialog with each's respective data,
should i maybe perpetuate this methodology instead,.. maybe add some jscript to handle the cursor type ??

You can try. BTW you don't have to use css. this.style.curs or='hand' should
also do.

or try moving the style class out somewhere

else??

Neal

"Eliyahu Goldin" wrote:
Try it on unpopulated listbox or on a control that doesn't contain any other controls. It should work. Could be you have different setting for the inner controls interfering with the one for the listbox.

Eliyahu

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:01******** *************** ***********@mic rosoft.com...
Thanks,
That takes care of the syntax error,
but the mousepointer does not change on mouseover the lbox as anticipated.
I tried these ,.. all to no avail
1.. 'lbx.Attributes ("onmouseove r") =

"this.className ='xlink'"

2.. 'lbx.Attributes .Add("onmouseov er", "clientfunction ();") 'lbx.Attributes ("onmouseove r") =

"this.className ='xlink'"

3..' lbx.Attributes. Add("onmouseove r",
"this.classname ='xlink'")

All escape the syntax check, but none work.

anything I am missing here ?
Neal
"Eliyahu Goldin" wrote:

> lbx.Attributes( "onmouseove r") = "this.className ='xlink'"
>
> Eliyahu
>
> "Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
> news:6E******** *************** ***********@mic rosoft.com...
> > Hi
> >
> > I need to change my mousepointer when the mouse moves over certain
> populated
> > controls on my aspx page.
> >
> > I've tried the following but without success (after visiting a site > > recommended from this forum, ie css cursors tutorial)
> >
> > I have, in the HTML defined this
> > <Head>
> > <style type="text/css">
> > .xlink { CURSOR: crosshair }
> > </style>
> > ...
> > ..
> > </HEAD>
> >
> >
> > and in the aspx.vb page
> > (where lbx is a listbox class variable (for a findcontrol in a grid)) > >
> > lbx.Attributes( "onmouseove r") =
> "this.style.cla ss=""xlink"" "
> >
> > which renders a syntax error (I have tried single quotes etc)
> >
> > Note: changing colours in the control with the following works
> > 'lbx.Attributes ("onmouseove r") =

"this.style.col or='red'"
> >
> > any ideas / help
> > TIA
> >
> >
> > --
> > Neal Rogers
> > University of Cape Town
>
>
>


Nov 19 '05 #6

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

Similar topics

1
1749
by: Barb Alderton | last post by:
I am working with SharePoint 2003. I am using an existing webpart as a child control (server control). I need to access/manipulate the HTML that the control outputs prior to rendering it to the the page. The control outputs a list in a one-column table format. I need to access the contents of the rows and output them with restrictions in my own table format. Do you have any examples of manipulating the HTML of a server control prior to...
6
6672
by: Tom Rowton | last post by:
This one has me a bit confused and I'm not finding what I need in the MSDN or by searching these forums, so here goes... I have a rather large, complex code-in-page WebForm (don't ask) and a section of that Form is 4 or 5 ASP:Panels pretending to be a set of Tabs, each with its own section of the form.
10
2856
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I have to add a datalist control. Using this datalist control I should be able to add edit, modify and cancel the items listed in this control. Here is how I designed. I used placeholder to add the controls dynamically to the page on the click...
2
2910
by: Chad | last post by:
I have a problem that I am desperate to understand. It involves dynamically adding controls to a Table control that is built as a result of performing a database query. I am not looking to avoid the problem by avoiding the table control or resorting to databound controls that better manage state for me. I hope to understand how to solve the problem by using the Table web control and sticking to the approach of building the table at run...
5
3595
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
53
4757
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
3
2646
by: Ken Fine | last post by:
I'm interested in programmatically manipulating groups of ASP.NET controls by type. Can someone suggest code for the following? Loop through, say, all label controls on a page, and assigning a CssClass to them, or programmatically making the Visible/not Visible. If applied to a containing page, such a function would traverse all user controls statically and dynamically placed on the page, correct? Thanks,
8
1379
by: MLH | last post by:
Dim Found, MyObject, MyCollection Found = False ' Initialize variable. For Each MyObject In MyCollection ' Iterate through each element. If MyObject.Text = "Hello" Then ' If Text equals "Hello". Found = True ' Set Found to True. Exit For ' Exit loop. End If Next Is it possible for MyCollecion to be the set of records in
5
1667
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hello, I am in serious need of help. I have an ASP.NET application written in C#. I have a page that processes a file on the web server. The page uses a class I created and stored in the AppCode directory. In the class method I am trying to run a program on my web server that will convert the file for me. Here is a snipit of code: System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = sDir +...
0
9590
marktang
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...
0
9424
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,...
0
10223
Oralloy
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...
0
10051
jinu1996
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...
0
9866
tracyyun
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...
1
7413
isladogs
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...
0
5310
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...
1
3968
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
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.