I dont think so.
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<title>Central de Servicios de Sodexo</title>
<link rel="stylesheet" type="text/css" href="~/js/subModal/subModal.css" runat="server" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.appBody #menuBar { width: 250px; }
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.appBody #menuBar { padding-top: 30px; }
.appBody #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
</head>
<body class="appBody">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true">
</asp:ScriptManager>
<div id="container">
<div id="header">
<div id="logo">
<h1>Logo</h1>
</div>
<div id="userInfo">
<asp:LoginView ID="loginView" runat="server">
<AnonymousTemplate>
<asp:HyperLink ID="hlLogin" runat="server" NavigateUrl="~/Login.aspx" Text="Iniciar Sesión"/>
</AnonymousTemplate>
<LoggedInTemplate>
Bienvenido: <%= Profile.Name + " " + Profile.LastName %><br />
<asp:LinkButton ID="lnkLogout" runat="server" Text="Cerrar Sesión"
onclick="lnkLogout_Click" />
</LoggedInTemplate>
</asp:LoginView>
</div>
<!-- This clearing element should immediately follow the #userInfo div in order to force the #header div to contain all child floats -->
<br class="clearfloat" />
<div id="navBar">Central de Servicios</div>
<!-- end #header -->
</div>
<div id="menuBar">
<h3>Menú</h3>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
<asp:Menu ID="menu" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Vertical" />
<!-- end #menuBar -->
</div>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
SiteMapProvider="AspNetSqlSiteMapProvider" />
<div id="mainContent">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<!-- end #mainContent -->
</div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
<br class="clearfloat" />
<div id="footer">
<p><img src="~/img/logoParadigma.png" runat="server"/> Developed by <a href="http://www.paradigmasolutions.com" target="_blank">Paradigma Solutions</a></p>
<!-- end #footer -->
</div>
<!-- end #container -->
</div>
</form>
</body>
</html>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" CodeFile="ListDetails.aspx.cs" Inherits="ListDetails" %>
<%@ Register src="~/DynamicData/Content/GridViewPager.ascx" tagname="GridViewPager" tagprefix="asp" %>
<%@ Register src="~/DynamicData/Content/FilterUserControl.ascx" tagname="DynamicFilter" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true" />
<h2>Ciudades<%--<%= GridDataSource.GetTable().DisplayName %>--%></h2>
<asp:ScriptManagerProxy runat="server" ID="ScriptManagerProxy1" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<br />
<table style="width: 100%">
<tr>
<td align="center">
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
EnableClientScript="true" HeaderText="List of validation errors" ShowSummary="false" />
<asp:DynamicValidator ID="GridViewValidator" runat="server"
ControlToValidate="GridView1" Display="None" />
<asp:DynamicValidator ID="DetailsViewValidator" runat="server"
ControlToValidate="DetailsView1" Display="None" />
<asp:DetailsView ID="DetailsView1" runat="server"
DataSourceID="DetailsDataSource" DefaultMode="Insert"
OnItemDeleted="OnDetailsViewItemDeleted"
OnItemInserted="OnDetailsViewItemInserted"
OnItemUpdated="OnDetailsViewItemUpdated"
OnModeChanging="OnDetailsViewModeChanging" OnPreRender="OnDetailsViewPreRender"
style="text-align: center" Width="100%"
CellPadding="2" GridLines="None">
<RowStyle CssClass="row" />
<Fields>
<asp:TemplateField ShowHeader="False">
<InsertItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="True"
CommandName="Insert" CssClass="submit" Text="Insertar" />
<asp:Button ID="Button2" runat="server" CausesValidation="False"
CommandName="Cancelar" CssClass="submit" Text="Cancelar" />
</InsertItemTemplate>
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="False"
CommandName="New" CssClass="submit" Text="Nuevo" />
</ItemTemplate>
<EditItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="True"
CommandName="Update" CssClass="submit" Text="Actualizar" />
<asp:Button ID="Button2" runat="server" CausesValidation="False"
CommandName="Cancel" CssClass="submit" Text="Cancelar" />
</EditItemTemplate>
</asp:TemplateField>
</Fields>
<HeaderStyle CssClass="tableHead" />
</asp:DetailsView>
<br />
<asp:FilterRepeater ID="FilterRepeater" runat="server">
<ItemTemplate>
<asp:Label runat="server" AssociatedControlID="DynamicFilter$DropDownList1"
Text='<%# Eval("DisplayName") %>' />
<asp:DynamicFilter ID="DynamicFilter" runat="server"
OnSelectedIndexChanged="OnFilterSelectedIndexChanged" />
</ItemTemplate>
<FooterTemplate>
<br />
<br />
</FooterTemplate>
</asp:FilterRepeater>
<asp:Button ID="Button3" runat="server" CausesValidation="False"
onclick="Button3_Click" Text="Button" />
<br />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataSourceID="GridDataSource"
OnDataBound="OnGridViewDataBound" OnRowCreated="OnGridViewRowCreated"
OnRowDeleted="OnGridViewRowDeleted" OnRowEditing="OnGridViewRowEditing"
OnRowUpdated="OnGridViewRowUpdated"
OnSelectedIndexChanging="OnGridViewSelectedIndexChanging"
style="text-align: center; margin-right: 1px;" Width="100%"
GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged">
<PagerStyle />
<RowStyle CssClass="row" />
<Columns>
<asp:DynamicField DataField="Id" />
<asp:DynamicField DataField="Name" HeaderText="Nombre de La ciudad" />
<asp:DynamicField DataField="Branches" ShowHeader="false" />
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton CommandName="Select" CausesValidation="false" ID="EditButton" ImageUrl="~/App_Themes/SodexoTheme/ImageLibrary/icoEdit.png" runat="server" Text="Editar" ToolTip="Editar" />
<asp:ImageButton CommandName="Delete" CausesValidation="false" ID="DeleteButton1" ImageUrl="~/App_Themes/SodexoTheme/ImageLibrary/icoDelete.png" runat="server" Text="Eliminar" ToolTip="Eliminar" OnClientClick='return confirm("Esta seguro que desea eliminar este registro");' />
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton CommandName="Update" CausesValidation="true" ID="EditButton" ImageUrl="~/App_Themes/SodexoTheme/ImageLibrary/icoEdit.png" runat="server" Text="Actualizar" ToolTip="Actualizar" />
<asp:ImageButton CommandName="Cancel" CausesValidation="false" ID="DeleteButton1" ImageUrl="~/App_Themes/SodexoTheme/ImageLibrary/icoDelete.png" runat="server" Text="Cancelar" ToolTip="Cancelar" />
</EditItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="tableHead" />
<PagerTemplate>
<asp:GridViewPager runat="server" />
</PagerTemplate>
<EmptyDataTemplate>
No se encuentran registros.
</EmptyDataTemplate>
<AlternatingRowStyle CssClass="alternateRow" />
</asp:GridView>
<br />
</td>
</tr>
</table>
<br />
<asp:LinqDataSource ID="GridDataSource" runat="server" EnableDelete="true" EnableUpdate="true">
<WhereParameters>
<asp:DynamicControlParameter ControlID="FilterRepeater" />
</WhereParameters>
</asp:LinqDataSource>
<asp:Panel ID="DetailsPanel" runat="server">
<br /><br />
<asp:LinqDataSource ID="DetailsDataSource" runat="server" EnableDelete="true" EnableInsert="true" EnableUpdate="true">
<WhereParameters>
<asp:DynamicControlParameter ControlID="GridView1" />
</WhereParameters>
</asp:LinqDataSource>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217:





by: the_bachelorPosted on 2008-09-15 at 10:37:32ID: 22480933
Looks like you're Missing the attribute runat = "server" in your <form> tag.
Or the form tag altogother.
Can you post your your aspx and aspx.cs files?