Encountering an error where WebForm_DoCallback is undefined.
UPDATE
WebForm_DoCallback("AccountPageControl1", "FileSave~" + fileName, CVFileSavedServerResponse, null, null, true);
function CVFileSavedServerResponse(param, context) {
}
Why isn't the WebForm_DoCallback functioning correctly?
It should be noted that a change was made to the form's "action" attribute by appending query strings before utilizing the Ajax Call. Could this modification be causing the issue?
$(".inputfile").fileUpload({ fileExtAllowed: 'exe', fileSizeLimit: 200000, savePath: 'docs',
fileFormatCheck: function(format) {
},
fileSizeError: function(size) {
},
fileProgress: function(length, progress) {
$(".progressbarcvupload").show();
$(".accounttext5").hide();
var percentage = (progress / length) * 340;
$(".progressbarcvuploadinner").css("width", percentage);
},
finish: function(fileName) {
$(".progressbarcvupload").hide();
$(".progressbarcvuploadinner").css("width", 340);
$(".accounttext5").show();
$(".accounttext5").text(fileName);
GetFileNameCallback(fileName);
}
});
UPDATE
Confirming that the Callback has been registered server-side
script += "function GetFileNameCallback(filename){" & Environment.NewLine
script += " " & Me.GetCallbackEventReference(Me, "'FileSave~' + filename", "null") & Environment.NewLine
script += "}" & Environment.NewLine
Me.Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "GetFileNameCallback", script, True)
However, there seems to be an issue with the callback not triggering on the server side.