![]() |
Desktop Development »
Button Controls »
General
Beginner
License: The Code Project Open License (CPOL)
Zeta Web Control LibraryBy Uwe KeimA small set of enhanced ASP.NET controls (e.g. an AJAX-enabled ClickOnceButton) |
C#, .NET, ASP.NET, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
Zeta Web Control Library is a .NET 2.0 class library that provides you with some enhanced ASP.NET 2.0 web controls.
The library contains the following controls:
The enhanced ClickOnceButton has additional features for working well in an ASP.NET AJAX environment as well as for disabling other buttons on a page, either all or selectively:
<zeta:ClickOnceButton
DisableAfterClick="true"
Mode="ThisAndRelatedButtons"
runat="server"
ID="CmdSave"
Text="Save"
OnClick="CmdSave_Click">
<zeta:RelatedButton ButtonControlID="CmdCancel" />
<zeta:RelatedButton ButtonControlID="CmdDeactivate" />
<zeta:RelatedButton ButtonControlID="CmdActivate" />
<zeta:RelatedButton ButtonControlID="CmdReleaseImmediately" />
</zeta:ClickOnceButton>
To include the code in your own ASP.NET web project, add a reference to the "ZetaWebControlLib.dll" to your project.
Next, add a control reference to the controls in the library. This can be done either on each ASPX page where you want to use a control, or centrally in the "web.config" file.
In the "web.config" file, the syntax is:
<add tagPrefix="zeta" namespace="ZetaWebControlLib.Button" assembly="ZetaWebControlLib"/>
To reference the control on a single ASPX page (or in an ASCX control), add the following reference at the top of the file:
<%@ Register Namespace="ZetaWebControlLib.Button" TagPrefix="zeta" %>
To finally create an instance of a control on your ASPX page (or in your ASCX control), use the following syntax:
<zeta:ClickOnceButton
runat="server"
DisableAfterClick="true"
ID="CmdOK"
Text="Submit the form"
OnClick="CmdOK_Click" />
While this article is mostly a very brief overview and does not go into implementation details, I still hope that you like it and that I've shown enough to enable you to decide whether a control in here is usable for your scenario.
For questions, comments and feedback (which I love to hear!) please use the comments section below at the bottom of this article.
| You must Sign In to use this message board. | |||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 26 Jan 2010 Editor: Deeksha Shenoy |
Copyright 2009 by Uwe Keim Everything else Copyright © CodeProject, 1999-2010 Web18 | Advertise on the Code Project |