Good Morning,
I'm trying to run this ASP.Net Page, but compiler shows this message:
BC30201: Expression expected.
The source code is this:
<%@ Import Namespace="System.Data" %>
<script language="
VB" runat="server">
Public Sub Page_Load(obj as Object, e as EventArgs)
If Not Page.IsPostBack Then
Session.Clear
Calendar1.SelectedDate = DateTime.Now
EtiqDia.Text='<%# Calendar1.SelectedDate.Format("dddd, MMMM dd yyyy", nothing ) %>'
DataBind()
End If
End Sub
Public Sub OpcionCambiada(obj as Object, e as EventArgs)
EtiqDia.Text='<%# Calendar1.SelectedDate.Format("dddd, MMMM dd yyyy", nothing ) %>'
If Not (Session(Calendar1.SelectedDate.ToString) is _
nothing)
Dim l as Label = New Label
l.Text = Session(Calendar1.SelectedDate.ToString)
PanelDia.Controls.Add(l)
End If
DataBind()
End Sub
Public Sub NotaModificada(obj as Object, e as EventArgs)
If obj.Text <> "" Then
Dim l as Label = New Label
l.Text = "<li>" & obj.Text & "</li>"
PanelDia.Controls.Add(l)
Session(Calendar1.SelectedDate.ToString) = l.Text
CuadroNota.Text = ""
End If
End Sub
</script>
Help me please
Regards,
Héctor Camilo RamÃrez Pereira
[email protected]
[email protected]