Plase see the attached image here's the markup
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Unit.aspx.vb" Inherits="app_Unit" %>
<%@ Register Assembly="Infragistics45.Web.v13.1, Version=13.1.20131.2045, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %>
<script runat="server">
Protected Sub btnNewUnit_Click(sender As Object, e As EventArgs)
Response.Redirect("~/App/Unit.aspx")
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<style type="text/css">
textarea {
width: 300px !important;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
<%If (Request.QueryString("id") <> nothing) then%>
<section class="featured">
<div class="content-wrapper">
<hgroup class="title">
<h2>Unit # <%: Request.QueryString("uid")%></h2>
</hgroup>
</div>
</section>
<% End If%>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
<section id="UnitSection" class="halfPage" style="border-right: solid 2px #c8c8c8;">
<asp:FormView ID="FormViewUnit" runat="server" DataKeyNames="Id" DataSourceID="SqlDataSourceUnit" Width="300px">
<EditItemTemplate>
<h2>Unit Info</h2>
<asp:TextBox ID="IdTextBox" runat="server" Text='<%# Bind("Id") %>' Visible="false"/>
First Name:
<asp:TextBox ID="OwnerFirstNameTextBox" runat="server" Text='<%# Bind("OwnerFirstName") %>' />
<br />
Last Name:
<asp:TextBox ID="OwnerLastNameTextBox" runat="server" Text='<%# Bind("OwnerLastName") %>' />
Address:
<asp:TextBox ID="OwnerAddressTextBox" runat="server" Text='<%# Bind("OwnerAddress") %>' />
City:
<asp:TextBox ID="OwnerCityTextBox" runat="server" Text='<%# Bind("OwnerCity") %>' />
State:
<asp:TextBox ID="OwnerStateTextBox" runat="server" MaxLength="2" Text='<%# Bind("OwnerState") %>' />
Zip:
<asp:TextBox ID="OwnerZipTextBox" runat="server" Text='<%# Bind("OwnerZip") %>' />
Home Phone:
<asp:TextBox ID="OwnerHomePhoneTextBox" runat="server" Text='<%# Bind("OwnerHomePhone") %>' />
Cell:
<asp:TextBox ID="OwnerCellTextBox" runat="server" Text='<%# Bind("OwnerCell") %>' />
Bungolow Phone:
<asp:TextBox ID="OwnerBungolowPhoneTextBox" runat="server" Text='<%# Bind("OwnerBungolowPhone") %>' />
Email:
<asp:TextBox ID="OwnerEmailTextBox" runat="server" Text='<%# Bind("OwnerEmail") %>' />
Rented:
<asp:CheckBox ID="RentedCheckBox" runat="server" Checked='<%# Bind("Rented")%>' />
Bedrooms:
<asp:TextBox ID="BedroomsTextBox" runat="server" Text='<%# Bind("Bedrooms") %>' />
Bathrooms:
<asp:TextBox ID="BathroomsTextBox" runat="server" Text='<%# Bind("Bathrooms") %>' />
Winterized:
<asp:CheckBox ID="WinterizedCheckBox" runat="server" Checked='<%# Bind("Winterized")%>' />
Current Issues:
<asp:TextBox ID="CurrentIssuesTextBox" runat="server" Text='<%# Bind("CurrentIssues") %>' />
<asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />
<asp:Button ID="btnNewUnit" runat="server" Text="New" OnClick="btnNewUnit_Click" />
</EditItemTemplate>
<InsertItemTemplate>
Unit Number:
<asp:TextBox ID="IdTextBox" runat="server" Text='<%# Bind("Id") %>' />
Firs tName:
<asp:TextBox ID="OwnerStateTextBox" runat="server" Text='<%# Bind("OwnerState") %>' />
<asp:TextBox ID="OwnerZipTextBox" runat="server" Text='<%# Bind("OwnerZip") %>'/>
<asp:TextBox ID="OwnerHomePhoneTextBox" runat="server" Text='<%# Bind("OwnerHomePhone") %>' TextMode="Phone" />
BungolowPhone:
<asp:CheckBox ID="RentedCheckBox" runat="server" Checked='<%# Bind("Rented") %>' />
<asp:CheckBox ID="WinterizedCheckBox" runat="server" Checked='<%# Bind("Winterized") %>' />
<asp:TextBox ID="CurrentIssuesTextBox" runat="server" Text='<%# Bind("CurrentIssues") %>' TextMode="MultiLine" />
<asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />
</InsertItemTemplate>
<ItemTemplate>
<h1>This is Itemtemplate and should never be seen</h1>
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ObjectDataSourceunit" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="DataSet1TableAdapters.UnitsTableAdapter" UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_Id" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Id" Type="String" />
<asp:Parameter Name="OwnerFirstName" Type="String" />
<asp:Parameter Name="OwnerLastName" Type="String" />
<asp:Parameter Name="OwnerAddress" Type="String" />
<asp:Parameter Name="OwnerCity" Type="String" />
<asp:Parameter Name="OwnerState" Type="String" />
<asp:Parameter Name="OwnerZip" Type="String" />
<asp:Parameter Name="OwnerHomePhone" Type="String" />
<asp:Parameter Name="OwnerCell" Type="String" />
<asp:Parameter Name="OwnerBungolowPhone" Type="String" />
<asp:Parameter Name="OwnerEmail" Type="String" />
<asp:Parameter Name="Rented" Type="Boolean" />
<asp:Parameter Name="Bedrooms" Type="Decimal" />
<asp:Parameter Name="Bathrooms" Type="Decimal" />
<asp:Parameter Name="Winterized" Type="Boolean" />
<asp:Parameter Name="CurrentIssues" Type="String" />
</InsertParameters>
<UpdateParameters>
</UpdateParameters>
</asp:ObjectDataSource>
<asp:SqlDataSource ID="SqlDataSourceUnit" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>" SelectCommand="SELECT [Id], [OwnerFirstName], [OwnerLastName], [OwnerAddress], [OwnerCity], [OwnerState], [OwnerZip], [OwnerHomePhone], [OwnerCell], [OwnerBungolowPhone], [OwnerEmail], [Rented], [Bedrooms], [Bathrooms], [Winterized], [CurrentIssues] FROM [Units] WHERE ([Id] = @Id)" DeleteCommand="DELETE FROM [Units] WHERE [Id] = @Id" InsertCommand="INSERT INTO [Units] ([Id], [OwnerFirstName], [OwnerLastName], [OwnerAddress], [OwnerCity], [OwnerState], [OwnerZip], [OwnerHomePhone], [OwnerCell], [OwnerBungolowPhone], [OwnerEmail], [Rented], [Bedrooms], [Bathrooms], [Winterized], [CurrentIssues]) VALUES (@Id, @OwnerFirstName, @OwnerLastName, @OwnerAddress, @OwnerCity, @OwnerState, @OwnerZip, @OwnerHomePhone, @OwnerCell, @OwnerBungolowPhone, @OwnerEmail, @Rented, @Bedrooms, @Bathrooms, @Winterized, @CurrentIssues)" UpdateCommand="UPDATE [Units] SET [OwnerFirstName] = @OwnerFirstName, [OwnerLastName] = @OwnerLastName, [OwnerAddress] = @OwnerAddress, [OwnerCity] = @OwnerCity, [OwnerState] = @OwnerState, [OwnerZip] = @OwnerZip, [OwnerHomePhone] = @OwnerHomePhone, [OwnerCell] = @OwnerCell, [OwnerBungolowPhone] = @OwnerBungolowPhone, [OwnerEmail] = @OwnerEmail, [Rented] = @Rented, [Bedrooms] = @Bedrooms, [Bathrooms] = @Bathrooms, [Winterized] = @Winterized, [CurrentIssues] = @CurrentIssues WHERE [Id] = @Id">
<SelectParameters>
<asp:QueryStringParameter Name="Id" QueryStringField="uid" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<%If Request.QueryString.Item("uid") <> Nothing Then%>
<section id="RenterSection" class="halfPage" >
<%FormViewRenters.ChangeMode(FormViewMode.Edit)%>
<h2>Renters Info</h2>
<asp:GridView ID="GridViewRenters" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDataSourceRenters" Width="100%">
<Columns>
<asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="Edit" />
<asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True" SortExpression="Id" Visible="false" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" Visible="false" />
<asp:BoundField DataField="City" HeaderText="City" SortExpression="City" Visible="false" />
<asp:BoundField DataField="State" HeaderText="State" SortExpression="State" Visible="false" />
<asp:BoundField DataField="Zip" HeaderText="Zip" SortExpression="Zip" Visible="false" />
<asp:BoundField DataField="HomePhone" HeaderText="HomePhone" SortExpression="HomePhone" Visible="false" />
<asp:BoundField DataField="Cell" HeaderText="Cell" SortExpression="Cell" Visible="false" />
<asp:BoundField DataField="BungolowPhone" HeaderText="BungolowPhone" SortExpression="BungolowPhone" Visible="false" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" Visible="false" />
<asp:BoundField DataField="RummersRented" HeaderText="RummersRented" SortExpression="RummersRented" Visible="false" />
<asp:BoundField DataField="UnitID" HeaderText="UnitID" SortExpression="UnitID" Visible="false" />
<asp:CommandField ShowDeleteButton="True" ButtonType="Button" />
</Columns>
</asp:GridView>
<ig:WebDialogWindow ID="wdwEditInsertRenter" runat="server" Height="650px" Width="600px" Modal="True" InitialLocation="Centered" WindowState="Hidden">
<ContentPane>
<Template>
<asp:FormView ID="FormViewRenters" runat="server" DataKeyNames="Id" DataSourceID="SqlDataSourceEditRenter" Width="300px">
<asp:Label ID="IdLabel1" runat="server" Text='<%# Eval("Id") %>' Visible="false" />
<asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />
<asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />
<asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />
<asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />
<asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />
<asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />
<asp:TextBox ID="HomePhoneTextBox" runat="server" Text='<%# Bind("HomePhone") %>' />
<asp:TextBox ID="CellTextBox" runat="server" Text='<%# Bind("Cell") %>' />
<asp:TextBox ID="BungolowPhoneTextBox" runat="server" Text='<%# Bind("BungolowPhone") %>' />
<asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
Summers Rented:
<asp:TextBox ID="RummersRentedTextBox" runat="server" Text='<%# Bind("RummersRented") %>' />
<asp:TextBox ID="UnitIDTextBox" runat="server" Text='<%# Bind("UnitID") %>' Visible="false" />
<h1>ItemTemplate</h1>
</Template>
</ContentPane>
</ig:WebDialogWindow>
<asp:SqlDataSource ID="SqlDataSourceEditRenter" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>" SelectCommand="SELECT [Id], [FirstName], [LastName], [Address], [City], [State], [Zip], [HomePhone], [Cell], [BungolowPhone], [Email], [RummersRented], [UnitID] FROM [Renters] WHERE ([Id] = @Id)">
<asp:ControlParameter ControlID="GridViewRenters" Name="Id" PropertyName="SelectedValue" Type="Int32" />
<asp:FormView ID="FormViewNewRenter" runat="server" DataSourceID="SqlDataSourceRenters" Width="300px">
editTemplate
<h2>New Renter</h2>
<asp:SqlDataSource ID="SqlDataSourceRenters" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>" SelectCommand="SELECT [Id], [FirstName], [LastName], [Address], [City], [State], [Zip], [HomePhone], [Cell], [BungolowPhone], [Email], [RummersRented], [UnitID] FROM [Renters] WHERE ([UnitID] = @UnitID)" DeleteCommand="DELETE FROM [Renters] WHERE [Id] = @Id" InsertCommand="INSERT INTO [Renters] ([FirstName], [LastName], [Address], [City], [State], [Zip], [HomePhone], [Cell], [BungolowPhone], [Email], [RummersRented], [UnitID]) VALUES (@FirstName, @LastName, @Address, @City, @State, @Zip, @HomePhone, @Cell, @BungolowPhone, @Email, @RummersRented, @UnitID)" UpdateCommand="UPDATE [Renters] SET [FirstName] = @FirstName, [LastName] = @LastName, [Address] = @Address, [City] = @City, [State] = @State, [Zip] = @Zip, [HomePhone] = @HomePhone, [Cell] = @Cell, [BungolowPhone] = @BungolowPhone, [Email] = @Email, [RummersRented] = @RummersRented, [UnitID] = @UnitID WHERE [Id] = @Id">
<asp:Parameter Name="Id" Type="Int32" />
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter Name="Address" Type="String" />
<asp:Parameter Name="City" Type="String" />
<asp:Parameter Name="State" Type="String" />
<asp:Parameter Name="Zip" Type="String" />
<asp:Parameter Name="HomePhone" Type="String" />
<asp:Parameter Name="Cell" Type="String" />
<asp:Parameter Name="BungolowPhone" Type="String" />
<asp:Parameter Name="Email" Type="String" />
<asp:Parameter Name="RummersRented" Type="String" />
<asp:QueryStringParameter Name="UnitID" QueryStringField="uid" Type="String" />
<asp:Parameter Name="UnitID" Type="String" />
<%End If%>
Hi Boruchsiper,
Thank you for report.
I was not able to built an application based on your codes. I think that 95% or them (child controls, scripts, etc.) are not related reported issue. On the other hand in your codes I did not find most important statements: implementation of Site.master. I assumed that your project uses autogenerated master page file without any modifications.
So, I tried to create a web page in web site of VisualStudio2012 and to select default master page for it.
I found that appearance of WebDialogWindow located in that page becomes broken. That happened due to global overrides for basic html elements such as TABLE, TD, etc. used in Site.css. Similar custom global overrides of css attributes are not compatible with architecture of WebDialogWindow. I am pretty sure that any WebControl, which rendering is based on TABLE (or any other html element, which attributes were globally modified) will fail in combination of Site.css.
I suggest you to do one of the following:
1. Remove following line from Site.master<webopt:BundleReference runat="server" Path="~/Content/css" />
2. Open Site.css and remove at least 2 following classes:table { ... }td { ... }