K
kbutterly
Good afternoon, all,
I am a experienced Web programmer, trying to learn ASP.net 2.0 and I am
stuck on the necessity of the RegisterClientScrptBlock and
RegisterStartupScript methods.
According to WROX's Professional ASP.NET 2.0, "the
RegisterClientScriptBlock method allows you to place a Javascript
function at the top of the page" and "the RegisterStartupScript places
the script at the bottom of the ASP.NET page"
Why are these necessary? Why can't I just put the Javascript functions
on the top or bottom of the page myself like I've always done?
I must be missing something; the WROX book uses simple alert('hello')
functions to illustrate these two methods. Maybe their use is more
obvious with a more complex use?
I would be very appreciative if someone could point me to a good
explanation for the necessity/use of these messages.
Thanks,
Kathryn
I am a experienced Web programmer, trying to learn ASP.net 2.0 and I am
stuck on the necessity of the RegisterClientScrptBlock and
RegisterStartupScript methods.
According to WROX's Professional ASP.NET 2.0, "the
RegisterClientScriptBlock method allows you to place a Javascript
function at the top of the page" and "the RegisterStartupScript places
the script at the bottom of the ASP.NET page"
Why are these necessary? Why can't I just put the Javascript functions
on the top or bottom of the page myself like I've always done?
I must be missing something; the WROX book uses simple alert('hello')
functions to illustrate these two methods. Maybe their use is more
obvious with a more complex use?
I would be very appreciative if someone could point me to a good
explanation for the necessity/use of these messages.
Thanks,
Kathryn