<script type='text/javascript'>
function getURL(controllerName, actionName, routeVals) {
var result = 0;
$.ajax({
data: { actionName: actionName, controllerName: controllerName, routeVals: routeVals },
async: false,
type: 'GET',
url: '@Url.Action("getURL","RequestProcess")',
success: function (data) {
result = data;
}
});
return result;
}
</script>
Server Error in '/Apps/Referrals' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'actionName' does not exist in the current context
Source Error:
Line 179: async: false,
Line 180: type: 'GET',
Line 181: url: '@Url.Action(actionName,controllerName)',
Line 182: success: function (data) {
Line 183: //callback
Source File: d:\websites\i21\Apps\Referrals\Views\Home\Index.cshtml Line: 181
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE