Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
WebdialogWindow broken style in vs2012 default website template
posted

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>

<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") %>' />

            <br />

            Address:

            <asp:TextBox ID="OwnerAddressTextBox" runat="server" Text='<%# Bind("OwnerAddress") %>' />

            <br />

            City:

            <asp:TextBox ID="OwnerCityTextBox" runat="server" Text='<%# Bind("OwnerCity") %>' />

            <br />

            State:

            <asp:TextBox ID="OwnerStateTextBox" runat="server" MaxLength="2" Text='<%# Bind("OwnerState") %>' />

            <br />

            Zip:

            <asp:TextBox ID="OwnerZipTextBox" runat="server" Text='<%# Bind("OwnerZip") %>' />

            <br />

            Home Phone:

            <asp:TextBox ID="OwnerHomePhoneTextBox" runat="server" Text='<%# Bind("OwnerHomePhone") %>' />

            <br />

            Cell:

            <asp:TextBox ID="OwnerCellTextBox" runat="server" Text='<%# Bind("OwnerCell") %>' />

            <br />

            Bungolow Phone:

            <asp:TextBox ID="OwnerBungolowPhoneTextBox" runat="server" Text='<%# Bind("OwnerBungolowPhone") %>' />

            <br />

            Email:

            <asp:TextBox ID="OwnerEmailTextBox" runat="server" Text='<%# Bind("OwnerEmail") %>' />

            <br />

            Rented:

            <asp:CheckBox ID="RentedCheckBox" runat="server" Checked='<%# Bind("Rented")%>' />

            <br />

            Bedrooms:

            <asp:TextBox ID="BedroomsTextBox" runat="server" Text='<%# Bind("Bedrooms") %>' />

            <br />

            Bathrooms:

            <asp:TextBox ID="BathroomsTextBox" runat="server" Text='<%# Bind("Bathrooms") %>' />

            <br />

            Winterized:

            <asp:CheckBox ID="WinterizedCheckBox" runat="server" Checked='<%# Bind("Winterized")%>' />

            <br />

            Current Issues:

            <asp:TextBox ID="CurrentIssuesTextBox" runat="server" Text='<%# Bind("CurrentIssues") %>' />

            <br />

            <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") %>' />

            <br />

            Firs tName:

            <asp:TextBox ID="OwnerFirstNameTextBox" runat="server" Text='<%# Bind("OwnerFirstName") %>' />

            <br />

            Last Name:

            <asp:TextBox ID="OwnerLastNameTextBox" runat="server" Text='<%# Bind("OwnerLastName") %>' />

            <br />

            Address:

            <asp:TextBox ID="OwnerAddressTextBox" runat="server" Text='<%# Bind("OwnerAddress") %>' />

            <br />

            City:

            <asp:TextBox ID="OwnerCityTextBox" runat="server" Text='<%# Bind("OwnerCity") %>' />

            <br />

            State:

            <asp:TextBox ID="OwnerStateTextBox" runat="server" Text='<%# Bind("OwnerState") %>' />

            <br />

            Zip:

            <asp:TextBox ID="OwnerZipTextBox" runat="server" Text='<%# Bind("OwnerZip") %>'/>

            <br />

            Home Phone:

            <asp:TextBox ID="OwnerHomePhoneTextBox" runat="server" Text='<%# Bind("OwnerHomePhone") %>' TextMode="Phone" />

            <br />

            Cell:

            <asp:TextBox ID="OwnerCellTextBox" runat="server" Text='<%# Bind("OwnerCell") %>' />

            <br />

            BungolowPhone:

            <asp:TextBox ID="OwnerBungolowPhoneTextBox" runat="server" Text='<%# Bind("OwnerBungolowPhone") %>' />

            <br />

            Email:

            <asp:TextBox ID="OwnerEmailTextBox" runat="server" Text='<%# Bind("OwnerEmail") %>' />

            <br />

            Rented:

            <asp:CheckBox ID="RentedCheckBox" runat="server" Checked='<%# Bind("Rented") %>' />

            <br />

            Bedrooms:

            <asp:TextBox ID="BedroomsTextBox" runat="server" Text='<%# Bind("Bedrooms") %>' />

            <br />

            Bathrooms:

            <asp:TextBox ID="BathroomsTextBox" runat="server" Text='<%# Bind("Bathrooms") %>' />

            <br />

            Winterized:

            <asp:CheckBox ID="WinterizedCheckBox" runat="server" Checked='<%# Bind("Winterized") %>' />

            <br />

            Current Issues:

            <asp:TextBox ID="CurrentIssuesTextBox" runat="server" Text='<%# Bind("CurrentIssues") %>' TextMode="MultiLine" />

            <br />

            <asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />

        </InsertItemTemplate>

        <ItemTemplate>

            <h1>This is Itemtemplate and should never be seen</h1>

                        First Name:

            <asp:TextBox ID="OwnerFirstNameTextBox" runat="server" Text='<%# Bind("OwnerFirstName") %>' />

            <br />

            Last Name:

            <asp:TextBox ID="OwnerLastNameTextBox" runat="server" Text='<%# Bind("OwnerLastName") %>' />

            <br />

            Address:

            <asp:TextBox ID="OwnerAddressTextBox" runat="server" Text='<%# Bind("OwnerAddress") %>' />

            <br />

            City:

            <asp:TextBox ID="OwnerCityTextBox" runat="server" Text='<%# Bind("OwnerCity") %>' />

            <br />

            State:

            <asp:TextBox ID="OwnerStateTextBox" runat="server" MaxLength="2" Text='<%# Bind("OwnerState") %>' />

            <br />

            Zip:

            <asp:TextBox ID="OwnerZipTextBox" runat="server" Text='<%# Bind("OwnerZip") %>' />

            <br />

            Home Phone:

            <asp:TextBox ID="OwnerHomePhoneTextBox" runat="server" Text='<%# Bind("OwnerHomePhone") %>' />

            <br />

            Cell:

            <asp:TextBox ID="OwnerCellTextBox" runat="server" Text='<%# Bind("OwnerCell") %>' />

            <br />

            Bungolow Phone:

            <asp:TextBox ID="OwnerBungolowPhoneTextBox" runat="server" Text='<%# Bind("OwnerBungolowPhone") %>' />

            <br />

            Email:

            <asp:TextBox ID="OwnerEmailTextBox" runat="server" Text='<%# Bind("OwnerEmail") %>' />

            <br />

            Rented:

            <asp:CheckBox ID="RentedCheckBox" runat="server" Checked='<%# Bind("Rented") %>' />

            <br />

            Bedrooms:

            <asp:TextBox ID="BedroomsTextBox" runat="server" Text='<%# Bind("Bedrooms") %>' />

            <br />

            Bathrooms:

            <asp:TextBox ID="BathroomsTextBox" runat="server" Text='<%# Bind("Bathrooms") %>' />

            <br />

            Winterized:

            <asp:CheckBox ID="WinterizedCheckBox" runat="server" Checked='<%# Bind("Winterized") %>' />

            <br />

            Current Issues:

            <asp:TextBox ID="CurrentIssuesTextBox" runat="server" Text='<%# Bind("CurrentIssues") %>' />

            <br />

            <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />

        </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>

            <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" />

            <asp:Parameter Name="Original_Id" Type="String" />

        </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">

        <DeleteParameters>

            <asp:Parameter Name="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>

        <SelectParameters>

            <asp:QueryStringParameter Name="Id" QueryStringField="uid" Type="String" />

        </SelectParameters>

        <UpdateParameters>

            <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" />

            <asp:Parameter Name="Id" Type="String" />

        </UpdateParameters>

    </asp:SqlDataSource>

</section>

    <%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">

            <EditItemTemplate>

                <h2>Renters Info</h2>

                <asp:Label ID="IdLabel1" runat="server" Text='<%# Eval("Id") %>' Visible="false" />

                First Name:

                <asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />

                <br />

                Last Name:

                <asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />

                <br />

                Address:

                <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />

                <br />

                City:

                <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />

                <br />

                State:

                <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />

                <br />

                Zip:

                <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />

                <br />

                Home Phone:

                <asp:TextBox ID="HomePhoneTextBox" runat="server" Text='<%# Bind("HomePhone") %>' />

                <br />

                Cell:

                <asp:TextBox ID="CellTextBox" runat="server" Text='<%# Bind("Cell") %>' />

                <br />

                Bungolow Phone:

                <asp:TextBox ID="BungolowPhoneTextBox" runat="server" Text='<%# Bind("BungolowPhone") %>' />

                <br />

                Email:

                <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />

                <br />

                Summers Rented:

                <asp:TextBox ID="RummersRentedTextBox" runat="server" Text='<%# Bind("RummersRented") %>' />

                <br />

                <asp:TextBox ID="UnitIDTextBox" runat="server" Text='<%# Bind("UnitID") %>' Visible="false" />

                <br />

                <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />

            </EditItemTemplate>

            <InsertItemTemplate>

                <asp:Label ID="IdLabel1" runat="server" Text='<%# Eval("Id") %>' Visible="false" />

                First Name:

                <asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />

                <br />

                Last Name:

                <asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />

                <br />

                Address:

                <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />

                <br />

                City:

                <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />

                <br />

                State:

                <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />

                <br />

                Zip:

                <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />

                <br />

                Home Phone:

                <asp:TextBox ID="HomePhoneTextBox" runat="server" Text='<%# Bind("HomePhone") %>' />

                <br />

                Cell:

                <asp:TextBox ID="CellTextBox" runat="server" Text='<%# Bind("Cell") %>' />

                <br />

                Bungolow Phone:

                <asp:TextBox ID="BungolowPhoneTextBox" runat="server" Text='<%# Bind("BungolowPhone") %>' />

                <br />

                Email:

                <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />

                <br />

                Summers Rented:

                <asp:TextBox ID="RummersRentedTextBox" runat="server" Text='<%# Bind("RummersRented") %>' />

                <br />

                <asp:TextBox ID="UnitIDTextBox" runat="server" Text='<%# Bind("UnitID") %>' Visible="false" />

                <br />

                <asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />

            </InsertItemTemplate>

            <ItemTemplate>

                <h1>ItemTemplate</h1>

                                <asp:Label ID="IdLabel1" runat="server" Text='<%# Eval("Id") %>' Visible="false" />

                First Name:

                <asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />

                <br />

                Last Name:

                <asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />

                <br />

                Address:

                <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />

                <br />

                City:

                <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />

                <br />

                State:

                <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />

                <br />

                Zip:

                <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />

                <br />

                Home Phone:

                <asp:TextBox ID="HomePhoneTextBox" runat="server" Text='<%# Bind("HomePhone") %>' />

                <br />

                Cell:

                <asp:TextBox ID="CellTextBox" runat="server" Text='<%# Bind("Cell") %>' />

                <br />

                Bungolow Phone:

                <asp:TextBox ID="BungolowPhoneTextBox" runat="server" Text='<%# Bind("BungolowPhone") %>' />

                <br />

                Email:

                <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />

                <br />

                Summers Rented:

                <asp:TextBox ID="RummersRentedTextBox" runat="server" Text='<%# Bind("RummersRented") %>' />

                <br />

                <asp:TextBox ID="UnitIDTextBox" runat="server" Text='<%# Bind("UnitID") %>' Visible="false" />

                <br />

                <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />

            </ItemTemplate>

        </asp:FormView>

                </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)">

            <SelectParameters>

                <asp:ControlParameter ControlID="GridViewRenters" Name="Id" PropertyName="SelectedValue" Type="Int32" />

            </SelectParameters>

        </asp:SqlDataSource>

        <asp:FormView ID="FormViewNewRenter" runat="server" DataSourceID="SqlDataSourceRenters" Width="300px">

             <EditItemTemplate>

                editTemplate

            </EditItemTemplate>

            <InsertItemTemplate>

                <h2>New Renter</h2>

                <asp:Label ID="IdLabel1" runat="server" Text='<%# Eval("Id") %>' Visible="false" />

                First Name:

                <asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />

                <br />

                Last Name:

                <asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />

                <br />

                Address:

                <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />

                <br />

                City:

                <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />

                <br />

                State:

                <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />

                <br />

                Zip:

                <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />

                <br />

                Home Phone:

                <asp:TextBox ID="HomePhoneTextBox" runat="server" Text='<%# Bind("HomePhone") %>' />

                <br />

                Cell:

                <asp:TextBox ID="CellTextBox" runat="server" Text='<%# Bind("Cell") %>' />

                <br />

                Bungolow Phone:

                <asp:TextBox ID="BungolowPhoneTextBox" runat="server" Text='<%# Bind("BungolowPhone") %>' />

                <br />

                Email:

                <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />

                <br />

                Summers Rented:

                <asp:TextBox ID="RummersRentedTextBox" runat="server" Text='<%# Bind("RummersRented") %>' />

                <br />

                <asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />

            </InsertItemTemplate>

            <ItemTemplate>

                <h1>ItemTemplate</h1>

                                <asp:Label ID="IdLabel1" runat="server" Text='<%# Eval("Id") %>' Visible="false" />

                First Name:

                <asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />

                <br />

                Last Name:

                <asp:TextBox ID="LastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />

                <br />

                Address:

                <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />

                <br />

                City:

                <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />

                <br />

                State:

                <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />

                <br />

                Zip:

                <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />

                <br />

                Home Phone:

                <asp:TextBox ID="HomePhoneTextBox" runat="server" Text='<%# Bind("HomePhone") %>' />

                <br />

                Cell:

                <asp:TextBox ID="CellTextBox" runat="server" Text='<%# Bind("Cell") %>' />

                <br />

                Bungolow Phone:

                <asp:TextBox ID="BungolowPhoneTextBox" runat="server" Text='<%# Bind("BungolowPhone") %>' />

                <br />

                Email:

                <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />

                <br />

                Summers Rented:

                <asp:TextBox ID="RummersRentedTextBox" runat="server" Text='<%# Bind("RummersRented") %>' />

                <br />

                <asp:TextBox ID="UnitIDTextBox" runat="server" Text='<%# Bind("UnitID") %>' Visible="false" />

                <br />

                <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />

            </ItemTemplate>

        </asp:FormView>

        <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">

            <DeleteParameters>

                <asp:Parameter Name="Id" Type="Int32" />

            </DeleteParameters>

            <InsertParameters>

                <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" />

            </InsertParameters>

            <SelectParameters>

                <asp:QueryStringParameter Name="UnitID" QueryStringField="uid" Type="String" />

            </SelectParameters>

            <UpdateParameters>

                <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:Parameter Name="UnitID" Type="String" />

                <asp:Parameter Name="Id" Type="Int32" />

            </UpdateParameters>

        </asp:SqlDataSource>

    </section>

    <%End If%>

</asp:Content>

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    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 { ... }

Children