Click here to Skip to main content
15,891,567 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Creating dynamic textboxes without postback Pin
saanj29-Apr-09 23:16
saanj29-Apr-09 23:16 
QuestionMaster Page Pin
sachees12329-Apr-09 21:18
sachees12329-Apr-09 21:18 
AnswerRe: Master Page Pin
Abhishek Sur29-Apr-09 21:50
professionalAbhishek Sur29-Apr-09 21:50 
AnswerRe: Master Page Pin
Jack Li29-Apr-09 21:51
Jack Li29-Apr-09 21:51 
AnswerRe: Master Page Pin
saanj29-Apr-09 23:17
saanj29-Apr-09 23:17 
Questionhow to strike out the yesterday dates in calendar control Pin
sowmyadaram29-Apr-09 21:14
sowmyadaram29-Apr-09 21:14 
AnswerRe: how to strike out the yesterday dates in calendar control Pin
Spunky Coder29-Apr-09 21:53
Spunky Coder29-Apr-09 21:53 
AnswerRe: how to strike out the yesterday dates in calendar control Pin
Abhishek Sur29-Apr-09 21:56
professionalAbhishek Sur29-Apr-09 21:56 
Its very easy to do that, Just folow:

In your HTML:
<asp:calendar id="Calendar1" runat="server"
ondayrender="Calendar1_DayRender">


And in your code-behind:

protected void Calendar1_DayRender(object source, DayRenderEventArgs e)
{
if (e.Day.Date.Day < DateTime.Today.Day)
{
e.Cell.Controls.Clear();
e.Cell.Text = e.Day.DayNumberText;
e.Cell.BackColor = System.Drawing.Color.SmokeWhite;
}
}

It will Disable any date before today.
Hope you will get it..

Rose | [Rose]


QuestionCreating PDF file using itextSharp dll Pin
ksarchana29-Apr-09 21:02
ksarchana29-Apr-09 21:02 
AnswerRe: Creating PDF file using itextSharp dll Pin
Vasudevan Deepak Kumar29-Apr-09 22:19
Vasudevan Deepak Kumar29-Apr-09 22:19 
GeneralRe: Creating PDF file using itextSharp dll Pin
ksarchana6-May-09 23:22
ksarchana6-May-09 23:22 
Questioncalendar control Pin
scar_face29-Apr-09 19:23
scar_face29-Apr-09 19:23 
AnswerRe: calendar control Pin
Spunky Coder29-Apr-09 19:30
Spunky Coder29-Apr-09 19:30 
GeneralRe: calendar control Pin
scar_face29-Apr-09 19:37
scar_face29-Apr-09 19:37 
GeneralRe: calendar control Pin
Spunky Coder29-Apr-09 19:50
Spunky Coder29-Apr-09 19:50 
AnswerRe: calendar control Pin
Abhijit Jana29-Apr-09 19:49
professionalAbhijit Jana29-Apr-09 19:49 
AnswerRe: calendar control Pin
saanj29-Apr-09 23:20
saanj29-Apr-09 23:20 
QuestionCheckboxlist in datalist Pin
indian2229-Apr-09 18:10
indian2229-Apr-09 18:10 
AnswerRe: Checkboxlist in datalist Pin
SayreCC29-Apr-09 19:16
SayreCC29-Apr-09 19:16 
GeneralRe: Checkboxlist in datalist Pin
indian2229-Apr-09 21:12
indian2229-Apr-09 21:12 
QuestionRegarding installation of Visual Studio Webdeveloper Pin
Ivan200929-Apr-09 15:35
Ivan200929-Apr-09 15:35 
AnswerRe: Regarding installation of Visual Studio Webdeveloper Pin
Christian Graus29-Apr-09 16:09
protectorChristian Graus29-Apr-09 16:09 
GeneralRe: Regarding installation of Visual Studio Webdeveloper Pin
Ivan200929-Apr-09 19:30
Ivan200929-Apr-09 19:30 
AnswerRe: Regarding installation of Visual Studio Webdeveloper Pin
SayreCC29-Apr-09 19:17
SayreCC29-Apr-09 19:17 
Questiongetting "Microsoft JScript runtime error: Object expected" Pin
Wes Jones29-Apr-09 14:07
Wes Jones29-Apr-09 14:07 

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.