|
|
 |
| ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

November 6th, 2003, 10:57 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Make a control Clickable
I have a control that draws a progress bar. (from www.surano.com/aspnet).
It is very basic- but meets my needs. Except in one place- I need to make it clickable so it can "drill down" (I am using it as a reporting tool to show completion). The control doesn't seem to support any way to do that and when I went into the HTML view of the page and surrounded it with a's it didn't seem to do anything...
So, My question is, is there a way to make it clickable?
Hal Levy
Web Developer, PDI Inc.
NOT a Wiley/Wrox Employee
__________________
Hal Levy
Software Development Manager
McRoberts Security Technology
|

November 7th, 2003, 01:36 AM
|
|
Authorized User
|
|
Join Date: Jun 2003
Location: Lexington, KY, USA.
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
|
|
(Actually, I think this question belongs in the HTML forum...)
Anyway, I'm not sure, but you could try surrounding it with a <DIV> or <SPAN> tag with onclick=myclick() and the myclick function might then respond to the click event.
-Van
(Old dog learning new tricks...)
|

November 7th, 2003, 12:58 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
It's an ASP.NET issue.. not a HTML issue.. as it's making an ASP.NET control clickable..
Since absolute positioning is used-- the <DIV> and <SPAN> tags loose their effectiveness- as they don't layout "around" the ASP.NET control.... I don't think what I am trying to do is possible....
Hal Levy
Web Developer, PDI Inc.
NOT a Wiley/Wrox Employee
|

November 7th, 2003, 01:24 PM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Hal,
I never work with absolute positioning, so I don't know how pages are drawn out with it, but I thought of something...
I looked at the example at the site you linked to and they had their bars in a table. If you put your bar in a table you should be able to use the onclick event of the table cell.
Just did a quick test in VS, dropped a HTML table on the page and put in a asp image control. Looks like items in the table cells are actually in the cell so you can use the cell's onClick event. (Come to think of it, even if the object isn't in the cell in code, but "in" it visually, you could still use the cell's click handler. You'd just be using the cell as a mouse hit area.)
Shut off everything on the table to make it hidden if you need to (no borders, etc), then also add this into the cell's style attribute: "cursor:hand;" so you get the right mouse icon for a clickable area.
Let us know if that works.
Peter
------------------------------------------------------
Work smarter, not harder.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |