Page.RegisterClientScriptBlock not working.

  • Thread starter James J. Foster
  • Start date
R

Rajesh.V

I am writing a control Asp.net server control. In the render method

if(!this.Page.IsClientScriptBlockRegistered("clientScript")) {
this.Page.RegisterClientScriptBlock("clientScript",
Buttons.ButtonsJS_Block.ToString()); }

The javascript isnt emitted. Any help suggestions will be quite helpful.

Rajesh
 
R

Rajesh.V

Tx for that, i had found out that by trial error, did it in page_load. Thou
i have another question, At what stage of control cycle does the viewstate
get populated. Is it between init and load.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,796
Messages
2,569,645
Members
45,371
Latest member
TroyHursey

Latest Threads

Top