Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why does pointer change over validation controls/summeries?

Status
Not open for further replies.

skitty123

Technical User
May 4, 2004
56
US
I notice the pointer changes to a thin line when I hover the mouse over the validation controls on my ASP web page.

Its doesnt bother me, except now, after I added some code to change the pointer to an hourglass .When a user cliks some button pointer chanegs to hourglass and after post back, the pointer chanegs back to an arrow but if i hover it over the validation controls it still shows up as an hourglass.
whats going on? Seems like the pointer is inherently coded to behave differently from the page default when hovering over the validation controls?

Here is the code I added:
// in the code behind
override protected void OnInit(EventArgs e)
{
....//
btnSubmit.Attributes.Add
("onclick", "javascript:hourglass();");

}
// the aspx page
<SCRIPT language="javascript">
function hourglass()
{
document.body.style.cursor = "wait";
}
 
....actuly append that to read: " shows as an hourglass over anything that is not a command button
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top