Home All Groups Group Topic Archive Search About
Author
23 Feb 2006 1:59 AM
Tina
This does not work...
  Private Sub calWO_DayRender(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DayRenderEventArgs) Handles calWO.DayRender
        If e.Day.Date.Day = 18 Then
           Dim myControl As New LiteralControl("<a
href='http://www.google.com'></a>")
           e.Cell.Controls.Add(myControl)
        End If
    End Sub

Anyone know why not?
Thanks,
T

Author
23 Feb 2006 4:22 PM
Peter Blum
You need something between the <a> and </a> tags that is what the user sees
and clicks on. Like this:
Dim myControl As New LiteralControl("<a
href='http://www.google.com'>Google</a>")

--- Peter Blum
www.PeterBlum.com
Email: PLB***@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

Show quoteHide quote
"Tina" <tinamseaburn@nospammeexcite.com> wrote in message
news:e%23au3yBOGHA.2320@TK2MSFTNGP11.phx.gbl...
> This does not work...
>  Private Sub calWO_DayRender(ByVal sender As Object, ByVal e As
> System.Web.UI.WebControls.DayRenderEventArgs) Handles calWO.DayRender
>        If e.Day.Date.Day = 18 Then
>           Dim myControl As New LiteralControl("<a
> href='http://www.google.com'></a>")
>           e.Cell.Controls.Add(myControl)
>        End If
>    End Sub
>
> Anyone know why not?
> Thanks,
> T
>