Skip to content

Instantly share code, notes, and snippets.

@timothyclifford
Created January 5, 2012 22:42
Show Gist options
  • Save timothyclifford/1567734 to your computer and use it in GitHub Desktop.
Save timothyclifford/1567734 to your computer and use it in GitHub Desktop.
Interesting dynamic control init and string concatenation
((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