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

ASP.NET

 
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 
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 
In that case convert the table to have just one field DateSelected instead of DateStart and DateEnd. Looks like you will end up with a lot of rows.

The custom control I was talking about, had the same requirement as yours, I needed to have the user select individual dates, since the no of rows I had to deal with was less than 50, I had put each row in the database.

The other alternative you may want to do is to put all the dates into an XML string and store that in the database. The XML string can be read into a dataset and you could iterate through each row of the dataset and apply the style.

tblProperty
(
   PropertyID,
   Description,
   ContactName,
   PhoneNo,
   PropertyDatesXML
)
For loading the dates, you can do something like this in the custom control
foreach(DataRow dr in dsPropertyDatesXML.Tables[0].Rows)
{
      //apply the style to the date
}
To add individual dates into the database, overide the OnSelectionChanged() of the control and store them in an arraylist/list and when your storing it into the database, create the XML string from the list and store it into the database..

I am not sure about the performance. I guess you will get some more ideas from rest of the people and you could combine the ideas to accomplish what your looking for.





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
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 
GeneralRe: close window and redirect to another site Pin
brsecu31-Jul-07 10:25
brsecu31-Jul-07 10:25 
QuestionApproving Membership Pin
hurrem31-Jul-07 4:58
hurrem31-Jul-07 4:58 

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.