technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


Difference Between RegisterStartupScript And RegisterClientScriptBlock


Why RegisterStartupScript and RegisterClientScriptBlock are used?...

> RegisterClientScriptBlock & RegisterStartupScript appends the javascript code from code behind.
> This is because, sometimes we may have to append the javascript code dynamically.
> For example, database value like ProjectID may be required for the execution of the JavaScript.
> Lets consider the main differecne between RegisterClientScriptBlock & RegisterStartupScript.

Difference between RegisterStartupScript and RegisterClientScriptBlock

> RegisterStartupScript will append the javascript code just above the closing form tag.
> The javascript code will get executed only after complete rendering of the View.
> Hence if the javascript is based on any controls, the code will be executed without having any error.
> For example, if the javascript fetches value of any label on View, it will be readly available.
> The following code is used for appending the javascript code by using RegisterStartupScript.

Difference Between RegisterStartupScript And RegisterClientScriptBlock, RegisterStartupScript And RegisterClientScriptBlock, RegisterStartupScript VS RegisterClientScriptBlock, Javascript, Jquery, Asp.Net, RegisterStartupScript, RegisterClientScriptBlock

> RegisterClientScriptBlock appends the javascript code just after the starting form tag.
> Here javascript will be executed before the controls get rendered.
> Hence none of the controls will be available for the execution of the javascript.
> If the javascript code fetches any lable value, it will not be available.
> The following code is used for appending the javascript code by using RegisterClientScriptBlock.

Difference Between RegisterStartupScript And RegisterClientScriptBlock, RegisterStartupScript And RegisterClientScriptBlock, RegisterStartupScript VS RegisterClientScriptBlock, Javascript, Jquery, Asp.Net, RegisterStartupScript, RegisterClientScriptBlock

Watch Video of this Content on Video Streaming


Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap