R
R.A.M.
Hi,
I need to set BirtDate TextBox with a date taken from another browser
window with Calendar control. I tried this way:
On first page I have:
Birth date: <asp:TextBox ID="BirthDate" runat="server"
ValidationGroup="BirthDate" />
with behind-code:
protected void Page_Load(object sender, EventArgs e)
{
...
Session["BirthDate"] = BirthDate;
}
On second page I have Calendar control and behind-code:
protected void Kalendarz_SelectionChanged(object sender, EventArgs e)
{
((TextBox) Session["BirthDate"]).Text =
Calendar.SelectedDate.ToString().Substring(0, 10);
}
Although this assigments works there's no visible result on first
page. Could you explain me please why? How to write correct code?
Thank you very much.
/RAM/
I need to set BirtDate TextBox with a date taken from another browser
window with Calendar control. I tried this way:
On first page I have:
Birth date: <asp:TextBox ID="BirthDate" runat="server"
ValidationGroup="BirthDate" />
with behind-code:
protected void Page_Load(object sender, EventArgs e)
{
...
Session["BirthDate"] = BirthDate;
}
On second page I have Calendar control and behind-code:
protected void Kalendarz_SelectionChanged(object sender, EventArgs e)
{
((TextBox) Session["BirthDate"]).Text =
Calendar.SelectedDate.ToString().Substring(0, 10);
}
Although this assigments works there's no visible result on first
page. Could you explain me please why? How to write correct code?
Thank you very much.
/RAM/