you have declared
Eid
and
Epwd
inside the
button click
event and you are trying to access the variables inside another method, so the value will be
undefined
and moreover in the
data
attribute of the
ajax
method you are passing only one parameter make sure you are passing all the values.
pass the
Eid
and
Epwd
values to the
function
as
arguments
and access it in the
function
declaration
var Eid = $('#TextBoxEId').val();
var Epwd = $('#TextBoxPwd').val();
MyReport(Eid, Epwd);
function MyReport(Eid,Epwd){
$.ajax({