I have a DetailsView and a SqlDataSource to SQL Server. If I have
MasterPageFile="~/Site.Master"
at the top of the aspx page; then when in Edit mode, the textboxes (in EditItemTemplate) all appear as blank, although you can click into a textbox and backspace and remove each letter. So it's strangely like the text is white against white. As the page references a Master page, the page also has <asp:content> tags instead of html, head, body, and form tags.
However, if I do not have the MasterPageFile reference at the top, then the DetailsView operates perfectly, displaying the data while in edit mode as it should. In this case, I use html, head, body, and form tags.
I would like to use the MasterPageFile reference so I can make use of the default Navbar.
Question: Is there a way to get the MasterPageFile reference to not break the EditItemTemplate functionality?
What I have tried:
EditItemTemplate appears Blank with this line:
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MyInfo1.aspx.cs" Inherits="UserInfo.MyInfo1" %>
EditItemTemplate works correctly with this line:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyInfo2.aspx.cs" Inherits="UserInfo.MyInfo2" %>