There is no point of creating dynamic asp controls from javascript since the controls are processed from the server and rendered as html element in the browser page, The javascript is not aware of the asp prefix to the elements created. so replace the asp elements with the html element as
function GetDynamicFm(value) {
var string1 = '<input name = "txtA' + value + '" id = "txtA' + value + '" type="text" value = "" size="25" /> <img src="../../img/minus_icon.png" onclick="RemoveA(this,"' + value + '");return false;" title="Remove"/><input name = "hiddenAId' + value + '" id= "hiddenAId' + value + '" type="hidden" value=""/><input name = "hiddentxtA' + value + '" id="hiddentxtA' + value + '" type="hidden"/>';
return string1;
}
var a = GetDynamicFm('-');
RemoveA(this,' + value + ')
- this code will work only when a number is passed to the function, if there is any string then it will throw an error for invalid argument, so better pass it as string in all cases and use it accordingly
onclick="RemoveA(this,"' + value + '");