|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
hyperlink in a Calendar ControlThis 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 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 >
ASP.NET 2.0 Easier than ASP? Gimmie a Break!
ASP.NET 2.0 and ObjectDataBinding Dynamic Textboxes. checking checkboxes per javascript in asp.net 2.0 treeview Compare Validator for Date AND Time WebPartManager is Undefined Parsing HTML in Controls ASP.Net 2.0 Table not expanding 100% asp wizard Wizard + control validation |
|||||||||||||||||||||||