Interviews - C# Corner

Vithal Wadje
How to dynamically register and invoke javascript from C#?
By Vithal Wadje in ASP.NET onOct 17 2012
  • Vithal Wadje
    Oct, 2012 17

    . Use the method ClientScript.RegisterClientScriptBlock. Note that there was an older method too called as
    Page.RegisterClientScriptBlock, but now this is deprecated.
    Example (C#):
    ClientScript.RegisterClientScriptBlock(typeof(Page), "theScript", "alert('Cracking interviews is now a cakewalk')", true);

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS