Ajax Interview Questions and Answers
Question - 81 : - What is the difference between RegisterClientScriptBlock, RegisterClientScriptInclude and RegisterClientScriptResource?
Answer - 81 : -
Following are the functions:
- RegisterClientScriptBlock – The script is specified as a string parameter.
- RegisterClientScriptInclude – By setting the source attribute to a URL that point to a script file.
- RegisterClientScriptResource – specifies Resource name in an assembly. The source attribute is automatically populated with a URL by a call to an HTTP handler that retrieves the named script from the assembly.
Question - 82 : - Which request is better, Get or Post?
Answer - 82 : -
AJAX requests should use an HTTP GET request where the data does not change for a given URL requested.
An HTTP POST should be used when state is updated on the server. This is highly recommended for a consistent web application architecture.
Question - 83 : - What are the limitations of Ajax?
Answer - 83 : -
An Ajax Web Application tends to confuse end users if the network bandwidth is slow and there is no full postback running.