Hello Dave,
As for the Button control you mentioned, I think you may have two possible
options:
1. Use existing built-in server control and add some additional
customization on it. According to your requirments, I think the LinkButton
or HyperLink control will be prefered one.
2. Create a custom button control and add those functionality in it.
regardless of which approach you use, here are the suggestion on how you
can implement those requirements in the control:
** Has 3 bitmaps for button, OnHover, and OnClick.
=====================
for display different images for different status, you can consider use
java script to change the html element's background image property or
change different css class which has configured the image background.
Those script event like "onhover" is the correct one.
** Is placed in a grid and has a url that includes a {0} in the url that is
set with a property from the data for that row of the grid.
=============================
this could be done through databinding on the hyperlink's Url property
**Preferably has a text (for when the cursor is over it) that has a {0}
that is another property for that row's data.
===============================
This can be done through databinding on Hyperlink control' "ToolTip"
property.
#WebControl.ToolTip Property
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontro
l.tooltip.aspx
**And in some cases I need an OnClick that calls confirm to ask the user if
they are sure they want to perform that action.
==================================
This is also a javascript based solution, there are many web article
describing this detailedly:
#ASP.NET Popup Dialog - Confirm Delete - Javascript
http://davidhayden.com/blog/dave/archive/2004/03/16/178.aspx
#How to Confirm a Delete in an ASP.NET Datagrid...
http://www.dotnetjohn.com/articles.aspx?articleid=68
Please feel free to let me know if you have anything unclear.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.