Click here to Skip to main content
15,922,533 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how can i get a message box in asp.net using c# Pin
Radha2723-Jan-08 22:31
Radha2723-Jan-08 22:31 
GeneralRe: how can i get a message box in asp.net using c# Pin
N a v a n e e t h23-Jan-08 22:37
N a v a n e e t h23-Jan-08 22:37 
GeneralRe: how can i get a message box in asp.net using c# Pin
Radha2723-Jan-08 22:42
Radha2723-Jan-08 22:42 
GeneralRe: how can i get a message box in asp.net using c# Pin
N a v a n e e t h23-Jan-08 22:45
N a v a n e e t h23-Jan-08 22:45 
GeneralRe: how can i get a message box in asp.net using c# Pin
Radha2723-Jan-08 22:48
Radha2723-Jan-08 22:48 
QuestionRe: how can i get a message box in asp.net using c# Pin
Sampadalam9-Oct-09 1:04
Sampadalam9-Oct-09 1:04 
Questionpopout calendar closes after i click on next/prev month Pin
cylene23-Jan-08 17:17
cylene23-Jan-08 17:17 
AnswerRe: popout calendar closes after i click on next/prev month Pin
Lostwords818-Dec-09 6:04
Lostwords818-Dec-09 6:04 
Not sure if you've Already resolved your problem but this is what I did to my calendar. Basically, you need to catch another event in your calendar: OnVisibleMonthChanged

Calendar.aspx

<br />
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Calendar.aspx.cs" Inherits="Calendar" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
    <title></title><br />
</head><br />
<body><br />
    <form id="form1" method="post" runat="server"><br />
    <asp:TextBox ID="txtDate" runat="server" Width="220px"></asp:TextBox><br />
    <asp:Button ID="btnCalendar" runat="server" OnClick="btnCalendar_Click" Text="...." /><br />
    <br /><br />
    <asp:Calendar ID="cdrDate" runat="server" SelectionMode="Day" BorderWidth="1px" BackColor="White"<br />
        Width="220px" DayNameFormat="FirstLetter" ForeColor="Purple" Height="200px" Font-Size="8pt"<br />
        Font-Names="Verdana" BorderColor="Black" ShowGridLines="True" OnVisibleMonthChanged="cdrDate_MonthChanged"<br />
        OnSelectionChanged="cdrDate_SelectionChanged"><br />
        <TodayDayStyle ForeColor="Black" BackColor="Beige"></TodayDayStyle><br />
        <WeekendDayStyle BackColor="LightGoldenrodYellow"></WeekendDayStyle><br />
        <SelectorStyle BackColor="Black"></SelectorStyle><br />
        <NextPrevStyle Font-Size="9pt" ForeColor="White"></NextPrevStyle><br />
        <DayHeaderStyle Height="1px" BackColor="LightGoldenrodYellow"></DayHeaderStyle><br />
        <SelectedDayStyle Font-Bold="True" BackColor="Gray"></SelectedDayStyle><br />
        <TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="White" BackColor="Gray"><br />
        </TitleStyle><br />
        <OtherMonthDayStyle ForeColor="Gray"></OtherMonthDayStyle><br />
    </asp:Calendar><br />
    </form><br />
</body><br />
</html><br />
<br />
<br />



Calendar.aspx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Calendar : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        txtDate.Enabled = false;
        cdrDate.Visible = false;
    }

    protected void btnCalendar_Click(object sender, EventArgs e)
    {
        if (txtDate.Text.Trim() != "")
            cdrDate.SelectedDate = Convert.ToDateTime(txtDate.Text);
        cdrDate.Visible = true;
        
    }

    public void cdrDate_MonthChanged(object sender, MonthChangedEventArgs e)
    {
        cdrDate.Visible = true;
    }

    protected void cdrDate_SelectionChanged(object sender, EventArgs e)
    {
        txtDate.Text = cdrDate.SelectedDate.ToString("yyyy-MM-dd");
   
        cdrDate.Visible = false;

    }
}



Hope that help Big Grin | :-D
GeneralWith attachment mail send Pin
Member 387988123-Jan-08 17:08
Member 387988123-Jan-08 17:08 
QuestionRe: With attachment mail send Pin
Vasudevan Deepak Kumar23-Jan-08 18:41
Vasudevan Deepak Kumar23-Jan-08 18:41 
GeneralRe: With attachment mail send Pin
Member 387988123-Jan-08 23:00
Member 387988123-Jan-08 23:00 
GeneralRe: With attachment mail send Pin
N a v a n e e t h23-Jan-08 23:09
N a v a n e e t h23-Jan-08 23:09 
QuestionQuestion on Forms Authentication Pin
Venkatesh Mookkan23-Jan-08 17:01
Venkatesh Mookkan23-Jan-08 17:01 
GeneralRe: Question on Forms Authentication Pin
N a v a n e e t h23-Jan-08 21:48
N a v a n e e t h23-Jan-08 21:48 
GeneralProblem Generate Excel Reports if the Data is too much Pin
HatakeKaKaShi23-Jan-08 15:43
HatakeKaKaShi23-Jan-08 15:43 
QuestionMoving an image control in ASP.NET Pin
Yatish Kasa23-Jan-08 7:50
Yatish Kasa23-Jan-08 7:50 
GeneralRe: Moving an image control in ASP.NET Pin
ToddHileHoffer23-Jan-08 9:08
ToddHileHoffer23-Jan-08 9:08 
QuestionDefault Button of a page -- how? Pin
dipak.dipak23-Jan-08 4:44
dipak.dipak23-Jan-08 4:44 
GeneralRe: Default Button of a page -- how? Pin
ToddHileHoffer23-Jan-08 4:54
ToddHileHoffer23-Jan-08 4:54 
GeneralRe: Default Button of a page -- how? Pin
eyeseetee23-Jan-08 4:59
eyeseetee23-Jan-08 4:59 
GeneralRe: Default Button of a page -- how? Pin
Ajeet mittal23-Jan-08 10:37
Ajeet mittal23-Jan-08 10:37 
GeneralConnection time out (Between client and server) Pin
attalurisubbu23-Jan-08 3:25
attalurisubbu23-Jan-08 3:25 
AnswerRe: Connection time out (Between client and server) [modified] Pin
ToddHileHoffer23-Jan-08 4:51
ToddHileHoffer23-Jan-08 4:51 
GeneralHw can ı get multi selected data new created object whit postback or whitout it Pin
Member 464351023-Jan-08 3:11
Member 464351023-Jan-08 3:11 
Generalseparate the string Pin
Member 387988123-Jan-08 2:37
Member 387988123-Jan-08 2:37 

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.