Created
January 5, 2012 22:42
-
-
Save timothyclifford/1567734 to your computer and use it in GitHub Desktop.
Interesting dynamic control init and string concatenation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((Literal)e.Item.FindControl("ltDay")).Text = "<span class='weekend'>" + string.Format("<input type='text' " + weekend + " autocomplete='off' size='3' value='{0}' tabindex='{3}' onclick='this.select()' onblur='GuruAllocator.Allocation.checkTime(this)' id='Day_{1}_{2}' name='Day${1}${2}' {4} style='{5}' {6}/>", (ta.Hours > 0 ? ta.Hours.ToString("0.#") : ""), weekIndex, e.Item.ItemIndex, tabIndexNumber, strDisabled, strStyleDisabled, strOnKeyPressEvent) + "</span>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment