﻿// Needed for jquery in combination with the update panel. Events get rebound after Async update
if (Sys != null) {
    if (typeof AppInit == 'function') 
        Sys.Application.add_init(AppInit);
}

//function AppInit(sender) {
//    //Hack! since we don't know if RegisterJQueryControlsAsync exists
//    if (typeof RegisterJQueryControlsAsync == 'function') {
//        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(RegisterJQueryControlsAsync);
//    }
//}

