views:

33

answers:

1

hi

Hi

I'm new to ajax.

I'm working on visual studio 2005. I install the ajax Min4setup and I add the control toolkit to the controls toolbar.

I created a new website Ajax-Enabled then I add the existing items (all the page) from the old web site to the new one.

I wrote the code below in the page.aspx and the other code in page.aspx.vb but nothing happens, the timer event is not firing.

Code:







'> '> " SelectCommand="SP_GET_OFFLINE_USER_CHAT" SelectCommandType="StoredProcedure">

Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs)

    Label1.Text = "Grid Refreshed at: "
    '& DateTime.Now.ToString
    GridView1.DataBind()
    UpdatePanel1.Update()

End Sub

Any idea or suggestion will be highly appreciated.

Best Regards,

A: 

Start the timer with timer1.Start(). Clear the GridView, set GridView1.DataSet = null and reload the Bindings.

Guitar-Guy
time1.start() should be written in the behind code ?
Crefly
when debugging the code, Sub Timer1_Tick is never firing
Crefly
do you start your timer anywhere? the timer does'nt tick without starting.
Guitar-Guy