CodeSmith Community
Your Code. Your Way. Faster!

Patch: 'Fixed' Client-Side Javascript in EntityDropDownList.cs

Latest post 03-16-2008 6:35 PM by mike123. 1 replies.
  • 03-03-2008 3:19 PM

    • CitizenBane
    • Top 50 Contributor
    • Joined on 10-30-2007
    • Grand Rapids, MI
    • Posts 94
    • Points 1,740

    Patch: 'Fixed' Client-Side Javascript in EntityDropDownList.cs

    I'm using the CSS Friendly Adapters with my NetTiers web site because I want it to validate as XHTML 1.0 Transitional.

    I noticed that the generated client-side javascript for the Entity DropDown List does not pass the validation on the W3C Validator site. 
    I changed the method that registers the client-side script from this:

    this.Page.ClientScript.RegisterClientScriptBlock( this.GetType(), functionName, script.ToString());

    to this:

    this.Page.ClientScript.RegisterClientScriptBlock( this.GetType(), functionName, script.ToString(), true);

    (The true adds the appropriate script tags)

    I also removed the first append and last append on the string builder (the appends that add the <script> block), as this is automatically generated by the change in the RegisterClientScriptBlock call.

    My site now validates perfectly as XHTML 1.0 Transitional! Cool

     

     

     

    I'm outside ur box, shiftin' ur paradigm.
    • Post Points: 35
  • 03-16-2008 6:35 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 723
    • Points 16,805

    Re: Patch: 'Fixed' Client-Side Javascript in EntityDropDownList.cs

    patched in rev. 708. Thanks! 

    Mike Shatny ------------------------------------- Member of the .netTiers team http://www.nettiers.com -------------------------------------
    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems