Click here to Skip to main content
15,925,602 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPaging not using Stored Proc or DataGrid Pin
ASPnoob31-Jul-07 15:29
ASPnoob31-Jul-07 15:29 
AnswerRe: Paging not using Stored Proc or DataGrid Pin
Edwin Syarief31-Jul-07 16:27
Edwin Syarief31-Jul-07 16:27 
AnswerRe: Paging not using Stored Proc or DataGrid Pin
N a v a n e e t h31-Jul-07 19:09
N a v a n e e t h31-Jul-07 19:09 
QuestionSqlDataSource Select statement Pin
hurrem31-Jul-07 15:05
hurrem31-Jul-07 15:05 
AnswerRe: SqlDataSource Select statement [modified] Pin
Nand Kumar Das1-Aug-07 0:38
Nand Kumar Das1-Aug-07 0:38 
QuestionOracle Transactions with DAAB Pin
kjosh31-Jul-07 11:50
kjosh31-Jul-07 11:50 
AnswerRe: Oracle Transactions with DAAB Pin
Tarakeshwar Reddy31-Jul-07 12:20
professionalTarakeshwar Reddy31-Jul-07 12:20 
QuestionData Reader [modified] Pin
ASPnoob31-Jul-07 11:04
ASPnoob31-Jul-07 11:04 
AnswerRe: Data Reader Pin
Fred_Smith31-Jul-07 12:09
Fred_Smith31-Jul-07 12:09 
GeneralRe: Data Reader [modified] Pin
ASPnoob31-Jul-07 12:21
ASPnoob31-Jul-07 12:21 
GeneralRe: Data Reader Pin
Fred_Smith31-Jul-07 13:25
Fred_Smith31-Jul-07 13:25 
QuestionHow to remove a domain cookie ? Pin
Ridge Howison31-Jul-07 10:46
Ridge Howison31-Jul-07 10:46 
AnswerRe: How to remove a domain cookie ? Pin
Fred_Smith31-Jul-07 12:02
Fred_Smith31-Jul-07 12:02 
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 

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.