Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / April 2005

Tip: Looking for answers? Try searching our database.

Finding Mouse Coordinates on ASP.NET Web Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TB - 28 Apr 2005 18:52 GMT
Howdy...

I have an asp.net web form with an ImageButton control on the form. When
clicked, the ImageButton's click event handler is supposed to pass X and Y
coordinates of the mouse click's location on the PAGE. I know that I can see
the X, Y coords for the click event relative to the ImageButton control, but
this does no good for my particular application.

What I am trying to do is display a calendar user control at the exact
location where the user clicked the little calendar placeholder ImageButton.
The calendar user control is encapsulated in an Asp:Panel. When the click
event fires, I change the Visible attribute of the panel and set its Left and
Top styles. The control needs to be "Absolutely" positioned to appear as
though it is hovering...

Any ideas would be greatly appreciated!

TIA - TB
W1ld0ne74 - 29 Apr 2005 14:16 GMT
Why not use javascript to do this?

Since it is all going to happen on client side anyway. This would allow you
to use standard html controls rather than serverside controls, if you want,
but would be very easy to place in the correct location on the client.

Check out http://webfx.eae.net for really cool code using javascript. There
is more than enough source code to help you with almost any javascript
related opperation you could think of.

Hope that heps though
David

> Howdy...
>
[quoted text clipped - 14 lines]
>
> TIA - TB

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.