DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 19 Jul 2007 18:54:44 -0000,    posted on: microsoft.public.dotnet.framework.aspnet.webcontrols        back       

Thread Index
  1    unknown
          2    David R. Longnecker am
          3    unknown
                 4    David R. Longnecker am


Custom Date Web Control   
I am looking for a date custom web control.

The UI will have 3 drop down box. Each for day, month, year

The control will have the following Properties
Date (datetime)
Month (int)
Day (int)
Year (int)
MinDate(datetime)
MaxDate(datetime)


The control will have the following Methods
Datetime GetDate ()
Void SetDate(DateTime)

Requirements
The Date Control will accept an optional datetime variable to
initialize the control. If date is not supplied then the current day
is displayed. The Control will allow the selection of any date between
the MinDate and MaxDate. The Control will render HTML drop down boxes
for Month,Day,Year
Date:Thu, 19 Jul 2007 18:54:44 -0000   Author:  

Re: Custom Date Web Control   
Brandon-

While your post didn't have a specific question, a quick Google search will 
probably provide you with a framework to a solution:

http://www.google.com/search?hl=en&q=date+custom+control+asp.net

The first result looks similar to what you're looking for, provides source 
for examples, etc.

http://www.codeproject.com/aspnet/datecontrol.asp

Just remember to properly parse out your DateTime object with .Day, .Month. 
..Year, and use the MinDate and MaxDate as a validator.

-dl

--
David R. Longnecker
http://blog.tiredstudent.com


> I am looking for a date custom web control.
> 
> The UI will have 3 drop down box. Each for day, month, year
> 
> The control will have the following Properties
> Date (datetime)
> Month (int)
> Day (int)
> Year (int)
> MinDate(datetime)
> MaxDate(datetime)
> The control will have the following Methods
> Datetime GetDate ()
> Void SetDate(DateTime)
> Requirements
> The Date Control will accept an optional datetime variable to
> initialize the control. If date is not supplied then the current day
> is displayed. The Control will allow the selection of any date between
> the MinDate and MaxDate. The Control will render HTML drop down boxes
> for Month,Day,Year
Date:Thu, 19 Jul 2007 19:14:02 +0000 (UTC)   Author:  

Re: Custom Date Web Control   
The example you gave is a UI control. I am looking for a web server
control that extends from WebControl


This control will have 3 drop down box. One each for month,day, year

he control will expose the following Properties
Date (datetime)
Month (int)
Day (int)
Year (int)
MinDate(datetime)
MaxDate(datetime)

The control will expose the following Methods
Datetime GetDate ()
Void SetDate(DateTime)

Requirements
The Date Control will accept an optional datetime variable to
initialize the control. If date is not supplied then the current day
is displayed. The Control will allow the selection of any date between
for Month,Day,Year- Hide quoted text -
Date:Thu, 19 Jul 2007 23:49:03 -0000   Author:  

Re: Custom Date Web Control   
You are correct; but they provided methodology example. :)  I assumed, rather 
than just asked: Are you asking HOW to do it or simply wanting the result 
to be handed to you? :D

For "how":

Start with building a custom server control.  Google is the best resource, 
but MSDN's little guide isn't too bad.  It covers the basics of setup, exposing 
properties and methods, rendering the control when the user calls it, and 
some general GAC goodness.

http://msdn2.microsoft.com/en-us/library/yhzc935f(vs.80).aspx

Another good way would be to sit down, find an OSS web control out there 
that looks similar to what you're trying to do and take it apart. :)  That's 
a bit more fun than reading.  The CodeProject example I posted is a good 
place to start to at least get the logic for your methods.  If you run into 
questions, I'm very willing to share my knowledge and try to answer whatever 
questions you may have.

For "handed to you":

http://www.componentsource.com/relevance/index.html?q=date+%2Enet+2%2E0

Almost 150 prebuilt date-time controls, but they cost.

-dl

--
David R. Longnecker
http://blog.tiredstudent.com


> The example you gave is a UI control. I am looking for a web server
> control that extends from WebControl
> 
> This control will have 3 drop down box. One each for month,day, year
> 
> he control will expose the following Properties
> Date (datetime)
> Month (int)
> Day (int)
> Year (int)
> MinDate(datetime)
> MaxDate(datetime)
> The control will expose the following Methods
> Datetime GetDate ()
> Void SetDate(DateTime)
> Requirements
> The Date Control will accept an optional datetime variable to
> initialize the control. If date is not supplied then the current day
> is displayed. The Control will allow the selection of any date between
> for Month,Day,Year- Hide quoted text -
Date:Fri, 20 Jul 2007 18:56:30 +0000 (UTC)   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us