12월, 2013의 게시물 표시

Bind나 Eval 의 포맷문자열안에 single quot 넣기.

속성='<%# String.Format("{0}\"aaa\"aa{1}", Eval("aa"), Eval("bb"), Eval("cc")) %>' 이렇게 해보자.

왜 Web 컨트롤 <asp:HiddenField 에는 커스텀 HTML 속성이 추가 안 될까?

왜 안 되게 했을까나? 다른 Web 컨트롤은 되면서... 대신 <input type="hidden" runat="server" ... > 이렇게 HTML 서버 컨트롤을 쓰면 된다.

WebForm 컨트롤 종류

이미지
이쯤에서 보는 서버 컨트롤 종류.

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

Martin Fowler said.

How to: Create Instances of ASP.NET User Controls Programmatically

Create Instances of ASP.NET User Controls Programmatically 흠... 유저컨트롤 별로 쓸 일 없어 보여서 공부 안 했는데 딱 걸렸다. ㅠㅠ.

Isolated Applications

Isolated Applications Developers are encouraged to design isolated applications and to update existing applications into isolated applications for the following reasons: Isolated applications are more stable and reliably updated because they are unaffected by the installation, removal, or upgrading of other applications on the system. Isolated applications can be designed so that they always run using the same assembly versions with which they were built and tested. Isolated applications can use functionality provided by the side-by-side assemblies made available by Microsoft. For more information, see Supported Microsoft Side-by-side Assemblies. Isolated applications are not tied to the shipping schedule of their side-by-side assemblies because applications and administrators can update the configuration after deployment without having to reinstall the application. This would not apply in the case where only one version of the assembly is being made available. A fully isolat...

Controlling Rendering

WPF provides three mechanisms for customizing how the source value is received and displayed, so you don’t need to give up the benefits of data binding to get the desired results in more customized scenarios. These mechanisms are string formatting, data templates, and value converters. String Formatting . Many controls have a XXXStringFormat property StringFormat ContentStringFormat ItemStringFormat HeaderStringFormat ColumnHeaderStringFormat Data Templates ContentTemplate ItemTemplate HeaderTemplate SelectedContentTemplate DetailsTemplate RowDetailsTemplate RowHeaderTemplate ColumnHeaderTemplate CellTemplate CellEditingTemplate HierarchicalDataTemplate Value Converter s morph a source value into a completely different target value Bridging Incompatible Data Types Customizing Data Display

Sharing the Source with DataContext

When encountering a Binding without an explicit source object, WPF traverses up the logical tree until it finds a non-null DataContext. 참 좋은 생각이다.

Binding's RelativeSource

Another way to specify a data source is by using Binding’s  RelativeSource property, which refers to an element by its relationship to the target element. The property is of type RelativeSource, which also happens to be a markup extension. Here are some of the ways RelativeSource can be used: Self, TemplatedParent, (nth)FindAncestor, PreviousData , etc. RelativeSource MarkupExtension

IoC container 성능 비교

http://www.palmmedia.de/blog/2011/8/30/ioc-container-benchmark-performance-comparison NInject 이 생각보단 느리네.

DataTable의 컬럼에 담을 수 있는 타입들은?

Setting the DataType value is very important to guaranteeing the correct creation and updating of data in a data source. The DataType property supports the following base .NET Framework data types: Boolean Byte, Byte[] Char DateTime Decimal Double Guid Int16 Int32 Int64 SByte Single String TimeSpan UInt16 UInt32 UInt64 Object 타입이라 다 담을 수 있는 줄 알았넹. ㅋ. DataColumn.DataType Property

Accessing Resources at the Site of Origin

Binary Resources (Logical) Resources These are arbitrary .NET objects stored (and named) in an element’s Resources property. It’s a fundamental piece of enabling software to be localized into different languages. It also enables higher productivity for developing software because the logical resources support enables you to consolidate information that might otherwise be duplicated , and even factor XAML files into more manageable chunks. Although full-trust applications can hard-code a uniform resource locator (URL) or path for loose binary resources, taking advantage of the site of origin notion is a more maintainable approach. (In addition, it is required for partial-trust applications.) The site of origin gets resolved to different places at runtime, depending how the application is deployed: For a full-trust application installed with Windows Installer, the site of origin is the application’s root folder. For a full-trust ClickOnce application, the site of origin is...