locked
Hide Tooltip Calendar (when there is no description for an event) RRS feed

  • Question

  • User380413204 posted

    Hi,

    When there is no descripton for an Event you see

    Databound calendar as tooltip

    Can I hide that? Or is it part of EvantCalendar.dll and can I not change that?

     

    All I can find that is related to it is the following code in Events_Calendar.aspx

    <DayEventTemplate>

    <div style="padding: 3px;">

    <asp:HyperLink ID="HyperLink1" runat="server" Text='<%#Eval("title") %>' NavigateUrl='<%# "Events_view.aspx?Eventid=" &Convert.ToString( Eval("ID"))%>'

    ToolTip='<%# truncate(Convert.ToString(Eval("description"))) %>' /></div>

    </DayEventTemplate>

    Thanks in advance,

    Lex

    Sunday, March 5, 2006 4:49 AM

All replies

  • User-1346905220 posted

    Lex-

    I haven't tried this myself but I'm not sure why you're getting the result you are. The truncate function should return an empty string if a zero length string or nothing is input. Maybe if the description is null then the Convert.ToString is causing the problem. If I have this problem and find a solution I'll be sure to post it. Though I'm not sure it will help you, you can get the code for the EventCalendar here (http://asp.net/StarterKits/Downloads/EventCalendar.zip).

    -Mike

    Sunday, March 5, 2006 7:57 PM
  • User380413204 posted

    Hi,

    As a matter of fact it does (for a part)

    I think I found the culprit:

    {

    if (table.Attributes["title"] == null)

    {

    table.Attributes["title"] = "DataBound Calendar";

     

    Am I right in assuming the following?:

    1. I change table.Attributes["title"] = "DataBound Calendar";    into:  table.Attributes["title"] = "";

    2. I make a new EventCalendar. DLL and put in BIN

     

    If so I only have to know how to make this into a new DLL again

     

    Can I do that with VWD Express?

    Thanks in advance,

    Lex

    Saturday, March 11, 2006 3:29 PM
  • User-1346905220 posted

    Lex-

    You're right. I made the change and it works as desired. I'm using VS 2005 Standard so I'm not sure if you can compile the .dll with VWD. You can download the .Net Framework 2.0 SDK which will give you the tools to compile from the command prompt. Look in the documentation for instructions. This is C# code so you'll need to use C# compiler not the VB one.

    -Mike

    Saturday, March 11, 2006 11:09 PM
  • User380413204 posted

    Hi,

    I think I got it. (using VS2005 Standard)

    Its working to my satisfaction.

    (How I love it when a plan comes together)

     

    Thanks,

    Lex

    Sunday, March 12, 2006 4:23 AM