Hi There;
I am writing a basic ASP.NET code. This code has worked properly before, but when I has changed "EnableViewState" to false, saved it it and operated it, code didn't work.
When I have changed the "EnableViewState" to true again, it didn't work either.
I couldn't imagine the reason why such a basic code fails. I try to solve problems by programming, but the platform create problems too.
Here is the code:
<%@ import Namespace="System.Data" %>
<%@ Page Language="c#" Debug="true" codePage="28599" %>
<script runat="server">
void Page_Load(Object Sender, EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("turlar.xml"));
DataGrid1.DataSource = ds;
DataGrid1.DataBind();
}
</script>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
</HEAD>
<body>
<form id="Form1" runat="server">
<asp:DataGrid runat="server" id="DataGrid1" EnableViewState="True" />
</form>
</body>
</HTML>
turlar.xml defined in the project directory.
Thanks in advance.