Hi everybody,
I have a problem on linq related field, look my simple example :
<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Defau lt.aspx.cs"
Inherits="_Defa ult" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView runat="server" ID="GridView1"
DataSourceID="L inqDataSource1" AutoGenerateCol umns="false"
AllowPaging="tr ue">
<Columns>
<asp:BoundFie ld DataField="Prod uctID" HeaderText="Pro ductID"
ReadOnly="True" SortExpression= "ProductID" >
</asp:BoundField>
<asp:BoundFie ld DataField="Prod uctName"
HeaderText="Pro ductName" SortExpression= "ProductNam e">
</asp:BoundField>
<asp:TemplateFi eld HeaderText="Cat egoryName">
<ItemTemplate >
<%#Eval("Catego ry.CategoryName ")%>
</ItemTemplate>
</asp:TemplateFie ld>
</Columns>
</asp:GridView>
</div>
<asp:LinqDataSo urce ID="LinqDataSou rce1" runat="server"
ContextTypeName ="NorthwindData Context"
TableName="Prod ucts">
</asp:LinqDataSou rce>
</form>
</body>
</html>
Usually, we can expect the category name appear in our gridview but not.
We suspect a platform or/and os configuration because on US Windows XP and
VS 2008, it's work, but in French XP and VS not. The problem is the same on
our production server (IIS on windows 2003 R2 in french).
If we use Linq in C# for any query, it is ok.
Anybody have an idea on this problem ?
Thanks for all.
I have a problem on linq related field, look my simple example :
<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Defau lt.aspx.cs"
Inherits="_Defa ult" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView runat="server" ID="GridView1"
DataSourceID="L inqDataSource1" AutoGenerateCol umns="false"
AllowPaging="tr ue">
<Columns>
<asp:BoundFie ld DataField="Prod uctID" HeaderText="Pro ductID"
ReadOnly="True" SortExpression= "ProductID" >
</asp:BoundField>
<asp:BoundFie ld DataField="Prod uctName"
HeaderText="Pro ductName" SortExpression= "ProductNam e">
</asp:BoundField>
<asp:TemplateFi eld HeaderText="Cat egoryName">
<ItemTemplate >
<%#Eval("Catego ry.CategoryName ")%>
</ItemTemplate>
</asp:TemplateFie ld>
</Columns>
</asp:GridView>
</div>
<asp:LinqDataSo urce ID="LinqDataSou rce1" runat="server"
ContextTypeName ="NorthwindData Context"
TableName="Prod ucts">
</asp:LinqDataSou rce>
</form>
</body>
</html>
Usually, we can expect the category name appear in our gridview but not.
We suspect a platform or/and os configuration because on US Windows XP and
VS 2008, it's work, but in French XP and VS not. The problem is the same on
our production server (IIS on windows 2003 R2 in french).
If we use Linq in C# for any query, it is ok.
Anybody have an idea on this problem ?
Thanks for all.