g_r_a_robinson Posted February 20, 2004 Posted February 20, 2004 I have a calendar control that displays a bunch of events and tasks. I was wondering if theres some way that I can cause these events to be links at which I can click and it will return a more in depth info regarding displayed events/tasks etc. Quote
Moderators Robby Posted February 20, 2004 Moderators Posted February 20, 2004 while in the dayrender function, surround your string with href tags. Quote Visit...Bassic Software
g_r_a_robinson Posted February 20, 2004 Author Posted February 20, 2004 So would this strEvents.Append("<br />" + dueTimeString + "<br />" + Consultant + "<br>" + Client + "<br>" + JobTitle + "<br>" + JobNo + "<br><br>"); be strEvents.Append("<br /><href>" + dueTimeString + "<br />" + Consultant + "<br>" + Client + "<br>" + JobTitle + "<br>" + JobNo + "<br><br>"); is this what you meant Quote
Moderators Robby Posted February 20, 2004 Moderators Posted February 20, 2004 Yes, but the href should be ... "<href=" + dueTimeString + ">Click here</a>" Quote Visit...Bassic Software
g_r_a_robinson Posted February 20, 2004 Author Posted February 20, 2004 This is what I did, but I didn't get a link. In fact the href appeared in the html itself. Looking at my code is there any obvious reason? strEvents.Append("<br /><" + due_Start_Time_String + "<br />" + due_Finish_Time_String + "<href=" + JobTitle + ">Here</a>" + JobNo + "<br><br>"); Quote
g_r_a_robinson Posted February 20, 2004 Author Posted February 20, 2004 do I need to import something to be able to use href? Then again the <br> works?!!? Quote
Moderators Robby Posted February 20, 2004 Moderators Posted February 20, 2004 Sorry, the tag should be like this <a href=XXXX>here</a> Quote Visit...Bassic Software
g_r_a_robinson Posted February 22, 2004 Author Posted February 22, 2004 I did this and still got nothing: if (eventdate.Equals(e.Day.Date)) strEvents.Append("<br>" + due_Start_Time_String + "<br>" + due_Finish_Time_String + "<href= + JobTitle + >Here</a>" + JobNo + "<br><br>"); Quote
Moderators Robby Posted February 23, 2004 Moderators Posted February 23, 2004 No, the tag should start with the letter A Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.