Re: Control error Asp.Net 2.0

  •  10-08-2007, 3:55 PM

    Re: Control error Asp.Net 2.0

    I couldn't get the application to work, but maybe my file structure is to complicated. Here's the asp code I'm using that doesn't work:
     

    <%@ Page Language="VB" MasterPageFile="~/ReportingApplication/EditMaster.master" AutoEventWireup="false" CodeFile="accomplish.aspx.vb" Inherits="ReportingApplication_StateProject_accomplish" title="Edit Accomplishments - CYFAR" %>

    <%@ MasterType VirtualPath="~/ReportingApplication/EditMaster.master" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

    <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h1>

    accomplishments</h1>

    <asp:Panel ID="confirmpanel" runat="server" Height="24px" Width="545px">

    <p class="confirmation"> <asp:Label ID="ConfirmLabel" runat="server" Text="Your changes have been accepted."

    Width="327px" ></asp:Label></p>

    </asp:Panel>

    <asp:FormView ID="FormView1" runat="server" DefaultMode="Edit" DataKeyNames="SPID" DataSourceID="SqlDataSource1">

    <EditItemTemplate>

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="You need to correct the following error(s):"

    Width="533px" Height="25px" CssClass="error" DisplayMode="List" />

    <CE:Editor id="accomplishTextBox" runat="server" Text='<%# Bind("Topic1") %>' Width="400px" AutoConfigure="Minimal" EditorWysiwygModeCss="~/ReportingApplication/css/screen.css">

    <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"

    CssClass="CuteEditorFrame" Height="100%" Width="100%" />

    </CE:Editor>

    <br />

    <br />

    <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"

    Text="submit" CssClass="standard_button" OnClick="UpdateButton_Click"></asp:LinkButton>

    <asp:Label ID="ProjectTypeID" runat="server" Text='<%# Bind("ProjectTypeID") %>' Visible="false"></asp:Label>

    <asp:Label ID="q1" runat="server" Text='<%# Bind("Q1") %>' Visible="false"></asp:Label>

    <asp:Label ID="q2" runat="server" Text='<%# Bind("Q2") %>' Visible="false"></asp:Label>

    <asp:Label ID="q3" runat="server" Text='<%# Bind("Q3") %>' Visible="false"></asp:Label>

    <asp:Label ID="q4" runat="server" Text='<%# Bind("Q4") %>' Visible="false"></asp:Label>

    </EditItemTemplate>

    </asp:FormView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CYFARData %>" SelectCommand="SelectStateAccomplish" UpdateCommand="UpdateStateAccomplish" SelectCommandType="StoredProcedure" UpdateCommandType="StoredProcedure">

    <SelectParameters>

    <asp:SessionParameter DefaultValue="1350" Name="SPID" SessionField="ProjectID" Type="Int32" />

    </SelectParameters>

    <UpdateParameters>

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

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

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

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

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

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

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

    </UpdateParameters>

    </asp:SqlDataSource>

    </asp:Content>

     

     

     

View Complete Thread