Interviewer And Interviewee Guide

ASP.Net Interview Question:

What is the difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript?

Submitted by: Administrator
RegisterClientScriptBlock is for returning blocks of client-side script containing functions. RegisterStartupScript is for returning blocks of client-script not packaged in functions-in other words, code that's to execute when the page is loaded. The latter positions script blocks near the end of the document so elements on the page that the script interacts are loaded before the script runs.<%@ Reference Control="MyControl.ascx" %>
Submitted by: Administrator

Read Online ASP.Net Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.