Click here to Skip to main content
15,921,774 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to remove a domain cookie ? Pin
chand1031-Jul-07 19:58
chand1031-Jul-07 19:58 
QuestionManaging Frequently changing content Pin
mrchief_200031-Jul-07 10:21
mrchief_200031-Jul-07 10:21 
Questionplsql decode Pin
Hasan Ali31-Jul-07 9:49
Hasan Ali31-Jul-07 9:49 
AnswerRe: plsql decode Pin
Hasan Ali31-Jul-07 10:23
Hasan Ali31-Jul-07 10:23 
QuestionAvailability Calendar Pin
munklefish31-Jul-07 8:09
munklefish31-Jul-07 8:09 
AnswerRe: Availability Calendar Pin
Tarakeshwar Reddy31-Jul-07 8:26
professionalTarakeshwar Reddy31-Jul-07 8:26 
GeneralRe: Availability Calendar Pin
munklefish31-Jul-07 8:34
munklefish31-Jul-07 8:34 
GeneralRe: Availability Calendar Pin
Tarakeshwar Reddy31-Jul-07 8:51
professionalTarakeshwar Reddy31-Jul-07 8:51 
For one of my project, I had to create a yearly calendar to select a list of dates. I created a custom control extending the calendar control, the user could click on any date on the calendar and that would get added into the database. I had added the DataSourceID property to the calendar control and based on the select statement picked the required dates from the database and applied a color to the dates to show it as selected. Clicking on an existing date would remove that particular date from the database and remove the style applied to it.

Lets say for example that your table structure is something like below (I have put tbl in front of table just to indicate its a table name)
tblProperty                             tblAvailDates
(                                       (
   PropertyID,  <pk> <-----------> <fk>   PropertyID
   Description,                           DateStart,   
   ContactName,                           DateEnd
   PhoneNo                               )
)
Use an Inner Join on tblProperty and tblAvailDates to pick the date ranges(which is DateStart to DateEnd) using the relation PropertyID. This way you do not store 365 days in a table but store the date ranges of availability(ex: PropertyID: 1010, DateStart: July, 30th 2007, DateEnd: Nov, 30th 2007).

munklefish wrote:
1) How do i go about recording availability without the user manually selecting every single date on which the property is available.

You can use a date picker to pick start and end dates and store it in a listbox or any kind of control you want, and give the user option edit/delete them.





Tarakeshwar Reddy
MCP, CCIE Q(R&S)

There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there. - Indira Gandhi

GeneralRe: Availability Calendar Pin
munklefish31-Jul-07 11:20
munklefish31-Jul-07 11:20 
GeneralRe: Availability Calendar Pin
Tarakeshwar Reddy31-Jul-07 12:15
professionalTarakeshwar Reddy31-Jul-07 12:15 
GeneralRe: Availability Calendar Pin
munklefish1-Aug-07 0:04
munklefish1-Aug-07 0:04 
QuestionProblem with ASP.NET Website URLs (like url redirection or something) Pin
FranciscoR31-Jul-07 7:25
FranciscoR31-Jul-07 7:25 
Questiongetting XY coords of mouse click from a ImageMap Control Pin
Joshua Lunsford31-Jul-07 7:14
Joshua Lunsford31-Jul-07 7:14 
QuestionConvert HTML page to PDF Pin
Khan.Bangash31-Jul-07 6:36
Khan.Bangash31-Jul-07 6:36 
QuestionPassword Protecting a Default/Home Page Pin
ISIS-Striker31-Jul-07 5:40
ISIS-Striker31-Jul-07 5:40 
AnswerRe: Password Protecting a Default/Home Page Pin
Tarakeshwar Reddy31-Jul-07 5:50
professionalTarakeshwar Reddy31-Jul-07 5:50 
QuestionHandle UserControl Events Pin
kjosh31-Jul-07 5:32
kjosh31-Jul-07 5:32 
QuestionApplication variables and web.config Pin
sankar.K31-Jul-07 5:13
sankar.K31-Jul-07 5:13 
AnswerRe: Application variables and web.config Pin
Fred_Smith31-Jul-07 5:52
Fred_Smith31-Jul-07 5:52 
GeneralRe: Application variables and web.config Pin
sankar.K31-Jul-07 19:16
sankar.K31-Jul-07 19:16 
GeneralRe: Application variables and web.config Pin
Fred_Smith31-Jul-07 22:02
Fred_Smith31-Jul-07 22:02 
Questionclose window and redirect to another site Pin
brsecu31-Jul-07 5:09
brsecu31-Jul-07 5:09 
AnswerRe: close window and redirect to another site Pin
Fred_Smith31-Jul-07 5:56
Fred_Smith31-Jul-07 5:56 
GeneralRe: close window and redirect to another site Pin
brsecu31-Jul-07 6:08
brsecu31-Jul-07 6:08 
GeneralRe: close window and redirect to another site Pin
Fred_Smith31-Jul-07 6:20
Fred_Smith31-Jul-07 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.