Page.RegisterClientScriptBlock

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 5
Reputation: jazz.learner is an unknown quantity at this point 
Solved Threads: 0
jazz.learner jazz.learner is offline Offline
Newbie Poster

Page.RegisterClientScriptBlock

 
0
  #1
Nov 14th, 2008
HI All,
Can any one tell me What's the difference between Page.RegisterClientScriptBlock and
Page.RegisterStartupScript?

Thanks in advance!

Jazz
Last edited by jazz.learner; Nov 14th, 2008 at 1:51 am.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 144
Reputation: sierrainfo is an unknown quantity at this point 
Solved Threads: 9
sierrainfo sierrainfo is offline Offline
Junior Poster

Re: Page.RegisterClientScriptBlock

 
0
  #2
Nov 14th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC