Link to home
Start Free TrialLog in
Avatar of lanter007
lanter007

asked on

TimeTracker Calendar Date-Name not declared.

Hi again,
I wanted to rebuild the calender from TimeTracker example. In my form view i have date from and date to textboxes. Now, I have the problem that i get the message "Name 'txtDateVon' is not declared." Do you now, what I have done wrong?
Thanks in advance for your help.
lanter007

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim txtDateVon As TextBox = CType(frmCreateKursdurchfuehrung.FindControl("txtDateVon"), TextBox)
        Dim dt As DateTime = CDate(Date.Now.ToShortDateString)
        txtDateVon.Text = dt                    
......


<asp:TextBox ID="txtDateVon" runat="server" Text='<%# Bind("date_bis") %>'></asp:TextBox>&nbsp;
<a href="javascript:OpenPopupPage('Calendar.aspx','<%= txtDateVon %>','<%= Page.IsPostBack %>');">
<img src="pics/icon-calendar.gif" border="0"  title="Datum auswählen"></a>
Avatar of Ramuncikas
Ramuncikas
Flag of Lithuania image

try
<a href="javascript:OpenPopupPage('Calendar.aspx','<%= txtDateVon.Text %>','<%= Page.IsPostBack %>');">
Avatar of lanter007
lanter007

ASKER

I already tried this, but it also doesn't work.
ASKER CERTIFIED SOLUTION
Avatar of Ramuncikas
Ramuncikas
Flag of Lithuania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks ramuncikas. it works.
greets
lanter007
Glad to hear that