Unable to find dynamically created control when JSON is used

shico100100

New Member
I am calling JSON method on selected index changed of the drop down list which is as follows\[code\]function StepImplementationScript(SelectedValue,UniqueField) { debugger; $.ajax({ type: "POST", url: "DynamicForm.aspx/StepImplementationScript", data: "{strSelectedValue: " + SelectedValue + ", strUniqueField: '" + UniqueField + "' }", contentType: "application/json; charset=utf-8", dataType: "json", async: true, cache: false, success: function(response) { alert("OnSuccess" + response.d); if (msg) { msg.close(); } }, error: function(jqXHR, exception) { alert(jqXHR.responseText); }, failure: function(response) { //alert("Onfailure" + response.d); } }); }\[/code\]In this 'StepImplementationScript' method of server side when i try to find dynamically created control, the controls are not getting find and coming as null. Selected change event i have written in Jquery through which i have called the JSON method.This is the same page (DynamicForm.aspx) on which controls are created dynamically.Why this is so ? and how should i resolve this issue ???
 
Back
Top