Monday, 23 December 2013

show child value in grid or formview - nettiers

Here is a way of showing child value in grid or formview

 

<%# Eval("RoceUserDepartment.DepartmentId")%>

<asp:Label ID="lblDepartment" runat="server" Text="Department:" AssociatedControlID="dataDepartmentId" />

                    <data:EntityDropDownList runat="server" ID="dataDepartmentId" DataSourceID="idDepartmentTypeDataSource"

                        DataTextField="Department" DataValueField="DepartmentId" SelectedValue='<%# Eval("RoceUserDepartment.DepartmentId")%>'

                        AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />

                    <data:RoceDepartmentDataSource ID="idDepartmentTypeDataSource" runat="server"

                        SelectMethod="GetAll" />

 

This shows the department of an user.

Monday, 9 December 2013

Devexpress - Get uploadcontrol on RowUpdating method

The only possibility is to pass the uploadcontrol in session and acquire it on Rowupdating.