CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/20/2004 8:02:39 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 59 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
oatmeal
Asp.Net User
Master page problem with calendar control9/20/2004 8:02:39 PM

0/0

I am having an issue with the Microsoft calendar web control that is on a master page. I want to capture the users input from this control from a page that is uses the master page and populate a grid view control with the selected date. The problem is that the selected date is always 1/1/0001 12:00:00 am. Can anyone help me.

Thanks Lenny
Fredrik N
Asp.Net User
Re: Master page problem with calendar control9/20/2004 9:14:54 PM

0/0

To get the control form the content page, you an expose the control through a property.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
oatmeal
Asp.Net User
Re: Master page problem with calendar control9/21/2004 12:25:41 PM

0/0

I tried that but the value returned was the same. I read your blog and followed the instructions but the value returned was wrong.
Fredrik N
Asp.Net User
Re: Master page problem with calendar control9/21/2004 12:59:58 PM

0/0

Maybe this is a stupid question, but have you tried to set the SelectedDate of the Calendar to another date before you try to get the SelectedData?
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
oatmeal
Asp.Net User
Re: Master page problem with calendar control9/21/2004 1:32:21 PM

0/0

If I set the selected date in the properties window and then run. It works but not well. The user has to select the date twice in order to have the application get the correct date. Any ideas? I do appreciate all of your help.
Fredrik N
Asp.Net User
Re: Master page problem with calendar control9/21/2004 3:10:35 PM

0/0

You probably try to get the selected data in an event that is executed before the Calendars event.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
CarlosAg
Asp.Net User
Re: Master page problem with calendar control9/25/2004 12:49:57 AM

0/0

Most likely is what Fredrik is suggesting,
If you expect to see it in the Page_Load you will not see when the user change it, try using the LoadComplete for that.
I tried this and it worked:
MasterPage.master
<%@ Master Language="C#" ClassName="MasterPage_Master" %>

<script runat="server">
public Calendar Calendar {
get {
return this.Calendar1;
}
}
</script>
<html>
<head />
<body>
<form id="form1" runat="server">
<asp:Calendar ID="Calendar1" runat="server" />
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server" />
</form>
</body>
</html>


Default.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>

<script runat="server">
protected override void OnLoadComplete(EventArgs e)
{
lblMessage.Text = ((MasterPage_Master)this.Master).Calendar.SelectedDate.ToString();
base.OnLoadComplete(e);
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:Label runat="server" ID="lblMessage" />
</asp:Content>
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Special Edition Using Microsoft Expression Web 2 Authors: Jim Cheshire, Pages: 756, Published: 2008
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Real World SharePoint 2007: Indispensable Experiences from 16 MOSS and WSS MVPs Authors: Scot Hillier, Robert Bogue, Adam Buenz, Andrew Connell, Stacy Draper, Luis Du Solier Grinda, Todd O. Klindt, Jason Medero, Dustin Miller, Shane Perran, Joris Poelmans, Heather Solomon, Nick Swan, Jan Tielens, Mike Walsh, Shane Young, Pages: 478, Published: 2007
Visual C# 2005: A Developer's Notebook Authors: Jesse Liberty, Pages: 221, Published: 2005
Microsoft Expression Web 2007 in Depth Authors: Jim Cheshire, Pages: 792, Published: 2008
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Programming Visual Basic 2005 Authors: Jesse Liberty, Pages: 548, Published: 2005
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Microsoft Sharepoint: Building Office 2007 Solutions in C# 2005 Authors: Scot Hillier, Pages: 513, Published: 2007
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007

Web:
Master page problem with calendar control - ASP.NET Forums I am having an issue with the Microsoft calendar web control that is on a master page. I want to capture the users input from this control ...
calendar Control in Master Pages NET website for my application .also im using Master Pages in that .i declared a . ... in master pages .but using master pages the calendar control is not ... Previous : Problem in date difference start date and end date ...
Problem using Master & Content pages with Calendar pop-up Talk about Problem using Master & Content pages with Calendar pop-up. ... have a usercontrol which is a simple calendar control popup. ...
Master Pages in ASP .Net 2.0 Apr 17, 2005 ... The right content contains the calendar control and the middle content is left blank. Once you reference this master page in your aspx page ...
Michael Sync » Using Yahoo.UI.Calendar in PageTemplate and Master ... NET Calendar Control and Yahoo.UI.Calendar « Michael Sync said ... Thanks, I think the problem was on the div container on the master page. ...
CodeProject: Using ASP.NET Calendar Control and Yahoo.UI.Calendar ... Mar 2, 2007 ... Using Yahoo.UI.Calendar in PageTemplate and Master Page - Part II .... but when I convert it to a user control , I got some problems. ...
Using the ASP.NET UpdatePanel Control with Master Pages This behavior is what you expect when the calendar is inside a UpdatePanel control on a page that is not associated with a master page. ...
Using a JavaScript Calendar Control in Master Pages Oct 20, 2008 ... This article shows how to use a JavaScript Calendar control in master pages.
Visual Studio .NET Showing calendar control on web page which is ... NET - Showing calendar control on web page which is inherited by master page. Ajit Ghule posted at 12-Jun-08 01:27. Hello friends, ...
Using your own Master Page and providing blog-like calendar ... Feb 22, 2007 ... Blog-like calendar navigation. Step 1 : Creating a Master Page ... is create a rad Calendar control and asp:panel control that will hold the ...

Videos:
Long Beach City Council Meeting Long Beach City Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting
Santa Monica Council Meeting Santa Monica Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










control focus feature doesn't work if there is a masterfile.

page_load doesn't run on content pages.. :(

retain value in iframe of master page

menu not showing over master page's contentplaceholder

issue with page navigation as i switch tabs

content and controlplaceholder controls problem

menu control - static menu item has wierd background...

one page/form for collecting user information and displaying 'thank you' page

one treeview for different users?

2 questions on web.sitemap

looping through controls in master pages

treeview behaviour - is this normal?

asp.net theme based on type of browser

common masterpage on every application on server

fixed header on grid layed on absolute div

url rewrite confusion

meta tag problem

content page layout changes when opening a new window

findcontrol content/masterpage

session expired/logout using logincontrol c#

defaultbutton property with master page

next button on wizard control

onmenuitemclick and onmenuitemdatabound

how to resize and move contentplaceholder?

how to turn off starting node in site map path?

first time use of masterpages

tree_node databound is this a architectural problem of asp.net ?

masterpages, defaultfocus, and development server (help!)

divs+ master pages

menu control

  Privacy | Contact Us
All Times Are GMT