Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Help with install

Last post Wed, Sep 17 2003, 4:47 PM by Anonymous. 13 replies.
Sort Posts: Previous Next
  •  Wed, Sep 17 2003, 4:47 PM 36

    • Anonymous

    Help with install

    Can't get this control to work.

    After following your tutorial, I get the error: Unknown server tag 'ie:calendar'.

    what gives?
  •  Wed, Sep 17 2003, 8:12 PM 38 in reply to 38

    • Anonymous

    Re: Help with install

    Hi, you will need to add reference to the control on that page.
    The easiest way to do that is to drag and drop control into webform from toolbox in design mode.

    To add the control to the Visual Studio .NET toolbox, please do the following:
    1. Open a Web Form (aspx page) in design mode;
    2. Right-click on the toolbox;
    3. Select Customize Toolbox;
    4. Select the .NET Framework Components tab;
    5. Click Browse...;
    6. Find Mediachase.Web.UI.WebControls.dll on your local machine, and select Open.
  •  Fri, Feb 13 2004, 1:41 PM 157 in reply to 38

    • Anonymous

    Re: Help with install

    I'm having similar problems and I did follow your instructions. When I click ok, I get "There are no components in 'D:\....\bin\Mediachase.Web.UI.Webcontrols.DLL' that can be placed on the toolbox. I tried this from both the default directory that your control installs in, as well as the bin directory of my project, and neither seem to work.

    That said, your simple demo seems to work, but I'm having trouble when I start using codebehind. It doesn't seem to recognize the control in visual studio, because I get an error when I look at it in Design mode, and when I try to declare it on the codebehind page, I get the error: 'Type Mediachase.Web.UI.WebControls.calendar' is not defined. I'm including my full code below for you to take a look at, thanks.

    calendartest.aspx
    <code>
    <%@ Import Namespace="Mediachase.Web.UI.WebControls" %>
    <%@ Register TagPrefix="mc" Namespace="Mediachase.Web.UI.WebControls" Assembly="Mediachase.Web.UI.WebControls" %>
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="calendartest.aspx.vb" Inherits="intranetFront.calendartest"%>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>calendartest</title>
    <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
    <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <mc:calendar id="CalendarCtrl" runat="server"
    Palette="Windows" ViewType="MonthView" Width="100%" SpanType="Overflowed"
    DataLinkField="cTitle" DataStartDateField="dStartDate"
    DataEndDateField="dEndDate"></mc:calendar></form>
    </body>
    </HTML>
    </code>

    calendartest.aspx.vb
    <code>
    Public Class calendartest
    Inherits System.Web.UI.Page
    Dim cs As String = "Data Source = websrvp99.cera.com; initial catalog = CF_Intranet; user id=x; password=x"
    Protected WithEvents CalendarCtrl As Mediachase.Web.UI.WebControls.calendar
    Dim cn As New SqlConnection(cs)

    #Region " Web Form Designer Generated Code "

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Dim myCommand As New SqlCommand(String.Format("select * from IntranetCalendar
    where dStartDate >= {0} and dEndDate <= {1}", CalendarCtrl.DisplayStartDate,
    CalendarCtrl.DisplayEndDate), cn)

    Dim dtrCalendar As SqlDataReader

    cn.Open()

    dtrCalendar = myCommand.ExecuteReader

    CalendarCtrl.DataSource = dtrCalendar
    CalendarCtrl.DataBind()


    dtrCalendar.Close()
    cn.Close()

    End Sub

    End Class
    </code>
  •  Fri, Feb 13 2004, 1:55 PM 158 in reply to 38

    • Anonymous

    Re: Help with install

    Hi, can you answer the following questions for:

    1. Which version of Calendar.NET Control are you using? (Right click Mediachase.Web.UI.WebControls.dll->Properties->Version)
    2. Which Visual Studio are you using (2002 or 2003)?
    3. Which .NET Framework you have installed?
  •  Tue, Feb 17 2004, 7:54 AM 159 in reply to 158

    • Anonymous

    Re: Help with install

    1. 1.5.1.23780
    2. VS 2002
    3. interesting question, because I assumed I was running 1.1 (as I have downloaded it and installed it via windows update) but when I checked the about part of VS.NET it says 1.0 there. I checked, and I definitely have 1.1 installed (under add/remove programs). Any ideas?

    thanks
  •  Tue, Feb 17 2004, 10:49 AM 160 in reply to 38

    • Anonymous

    Re: Help with install

    Hi, VS.2002 only works with .NET Framework 1.0. You will need to install VS.2003 in order to use 1.1. This is why you having a problem. Try adding 1.0 version of the control in 2002 VS.NET.
  •  Tue, Feb 17 2004, 1:50 PM 161 in reply to 160

    • Anonymous

    Re: Help with install

    Thanks, that seemed to do the trick. Two more questions for you:

    1. If my development server is running 1.0 (as I still haven't upgraded VS.NET yet) and my production server is running 1.1, is there going to be a conflict there?

    2. I have a calendar up and running based on my database table, but I'm getting "Some Label" instead of the titles of my entries - I'm assuming this is because it's a demo version?

    Thanks
  •  Tue, Feb 17 2004, 1:55 PM 162 in reply to 38

    • Anonymous

    Re: Help with install

    1. 1.1 should have no problems running 1.0 code.
    2. You get "Some Label" if you don't use templates and didn't specify DataLabelField property of the control. This tells control where to get data for the label, otherwise default label is displayed.
  •  Wed, Feb 18 2004, 9:56 AM 164 in reply to 162

    • Anonymous

    Re: Help with install

    Thanks, that seemed to work... Now having another issue when I try to use the <monthitemtemplate> or any other itemtemplates - vs.net doesn't seem to like the tags ("the active schema does not support the element 'MonthItemTemplate'") and it just ignores the tags and anything in them. Here's the code I have:

    <code>
    <mc:Calendar id="CalendarCtrl" runat="server" SpanType="Overflowed"
    BorderStyle="Solid" Palette="Default" BorderWidth="1px" Width="100%"
    DataEndDateField="dStartDate" DataStartDateField="dEndDate" DataTextField="cTitle"
    DataLinkField="cTitle" ViewType="MonthView">
    <MonthItemTemplate>
    <%#DataBinder.Eval(Container.DataItem, "dStartDate")%> -
    <%#DataBinder.Eval(Container.DataItem, "dEndDate")%>
    <%#DataBinder.Eval(Container.DataItem, "cTitle")%>
    </MonthItemTemplate>
    <YearItemTemplate>
    <%#DataBinder.Eval(Container.DataItem, "dStartDate")%> -
    <%#DataBinder.Eval(Container.DataItem, "dEndDate")%>
    <%#DataBinder.Eval(Container.DataItem, "cTitle")%>
    </YearItemTemplate>
    <AllDayItemTemplate>
    All day: <%#DataBinder.Eval(Container.DataItem, "dStartDate")%> -
    <%#DataBinder.Eval(Container.DataItem, "dEndDate")%>
    <%#DataBinder.Eval(Container.DataItem, "cTitle")%>
    </AllDayItemTemplate>
    <DayItemTemplate>
    <%#DataBinder.Eval(Container.DataItem, "dStartDate")%> -
    <%#DataBinder.Eval(Container.DataItem, "dEndDate")%>
    <%#DataBinder.Eval(Container.DataItem, "cTitle")%>
    </DayItemTemplate>
    <WeekItemTemplate>
    <%#DataBinder.Eval(Container.DataItem, "dStartDate")%> -
    <%#DataBinder.Eval(Container.DataItem, "dEndDate")%>
    <%#DataBinder.Eval(Container.DataItem, "cTitle")%>
    </WeekItemTemplate>


    </mc:Calendar>
    </code>

    Am I missing an import or something?

    Thanks, and by the way - this is an awesome control - we're definitely going to buy it.

  •  Wed, Feb 18 2004, 11:10 AM 165 in reply to 38

    • Anonymous

    Re: Help with install

    That looks right and should work. Do you get an error when you try running the samples?
    (http://localhost/Calendar.NET) Most of those samples use templates.

    You can also try using <DefaultItemTemplate> instead of defining each one of them.
  •  Wed, Feb 18 2004, 12:13 PM 166 in reply to 165

    • Anonymous

    Re: Help with install

    interestingly, defaultItemTemplate was not recognized by VS.net either, but did seem to work when i view the page. Also, it seems to overwrite anything else that I had in there (like when i changed the monthItemTemplate). The samples all seem to work well, for example when I added a monthItemTemplate to one, it worked perfectly. Any ideas what would cause this behavior?
  •  Wed, Feb 18 2004, 12:48 PM 167 in reply to 38

    • Anonymous

    Re: Help with install

    You should call CalendarCtrl.DataBind() every time you change view.

    VS.NET won't recognize templates because no schema is defined for Calendar.NET control. Most of the time only built in controls have schema defined and custom controls don't.
  •  Wed, Feb 18 2004, 1:11 PM 168 in reply to 167

    • Anonymous

    Re: Help with install

    I actually am doing a databind after every view change... that makes sense about VS.NET. Here's what's strange now: I think it actually was working when I said it didn't. EXCEPT for the month view, which isn't working. It's like it is completely ignoring the tag at all, while all the other tags work fine. Also, if there's a defaultItemTemplate in there, it picks it up from there. The defaultItemtemplate is a decent enough workaround, but I would prefer to have some flexibility there.
  •  Wed, Feb 18 2004, 1:20 PM 169 in reply to 38

    • Anonymous

    Re: Help with install

    There are two templates for month items:
    MonthItemTextTemplate and MonthItemTemplate. If event is less than a day long MonthItemTextTemplate is used, otherwise MonthItemTemplate.
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems