Fragensteller
Die Datei "web.config" wird aus dem Web abgerufen...

Frage
-
Ich programmiere ein großes Formular (über die VWD FormView Komponente in ASP / VB). Wenn ich im Design-Modus auf "Vorlagen bearbeiten" (Edit Items Template) gehe, dauert es mehrere Minuten, bis das Formular angezeigt wird. Während dieser Zeit flackert in der Statusleiste der Text: Die Datei "web.config" wird aus dem Web abgerufen...
Oft macht auch der PC (Pentium 4) die Grätsche (Low of virtual memory oder C++ Fehler und Absturz von VWD). Das Edit Template hat etwa 80 Textfelder, die über Eval an eine SQL-Datenbank in App_Data gebunden sind und dazugehörige Labels, die an eine lokale Ressource für die Sprachübersetzung gebunden sind. Nun will ich zusätzlich noch alle Textfelder und Labels frei positionieren, aber das scheitert an den Performance / Speicher Problemen.
Hat jemand eine Idee, ob man das Formular irgendwie ressourcenschonender weiterprogrammieren kann?
Montag, 30. Oktober 2006 11:41
Alle Antworten
-
Kann mir niemand erklären, was da passiert?
Ich habe das Formular ganz normal über die Toolbox (SQL Datasource, Form View, Edit Item Template) angelegt und noch eine local resource für die Übersetzung des Formulars dahintergelegt:
<%
@ Page Language="VB" MasterPageFile="MasterPage.master" AutoEventWireup="false" CodeFile="form1.aspx.vb" Inherits="form1" title="profile form" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %><
asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
UpdateCommand="UPDATE Form_Data SET Associate = @Associate, Title = @Title, Service_Date = @Service_Date, Review_Date = @Review_Date, Manager_ID = @Manager_ID, Business_Location = @Business_Location, Edu_Date1 = @Edu_Date1, Edu_Degree1 = @Edu_Degree1, Edu_Majors1 = @Edu_Majors1, Edu_School1 = @Edu_School1, Edu_Date2 = @Edu_Date2, Edu_Degree2 = @Edu_Degree2, Edu_Majors2 = @Edu_Majors2, Edu_School2 = @Edu_School2, Edu_Date3 = @Edu_Date3, Edu_Degree3 = @Edu_Degree3, Edu_Majors3 = @Edu_Majors3, Edu_School3 = @Edu_School3, Depl_Date1 = @Depl_Date1, Depl_Title1 = @Depl_Title1, Depl_Date2 = @Depl_Date2, Depl_Title2 = @Depl_Title2, Depl_Date3 = @Depl_Date3, Depl_Title3 = @Depl_Title3, Depl_Date4 = @Depl_Date4, Depl_Title4 = @Depl_Title4, Depl_Date5 = @Depl_Date5, Depl_Title5 = @Depl_Title5, Depl_Date6 = @Depl_Date6, Depl_Title6 = @Depl_Title6, Depl_Date7 = @Depl_Date7, Depl_Title7 = @Depl_Title7, Awd_Date1 = @Awd_Date1, Awd_Desc1 = @Awd_Desc1, Awd_Date2 = @Awd_Date2, Awd_Desc2 = @Awd_Desc2, Awd_Date3 = @Awd_Date3, Awd_Desc3 = @Awd_Desc3, Awd_Date4 = @Awd_Date4, Awd_Desc6 = @Awd_Desc6, Awd_Date7 = @Awd_Date7, Awd_Desc7 = @Awd_Desc7, Proficiencies = @Proficiencies, Awd_Date6 = @Awd_Date6, Awd_Desc5 = @Awd_Desc5, Awd_Date5 = @Awd_Date5, Awd_Desc4 = @Awd_Desc4, Exp_Date1 = @Exp_Date1, Exp_Title1 = @Exp_Title1, Exp_Location1 = @Exp_Location1, Exp_Date2 = @Exp_Date2, Exp_Title2 = @Exp_Title2, Exp_Location2 = @Exp_Location2, Exp_Date3 = @Exp_Date3, Exp_Title3 = @Exp_Title3, Exp_Location3 = @Exp_Location3, Exp_Date4 = @Exp_Date4, Exp_Title4 = @Exp_Title4, Exp_Location4 = @Exp_Location4, Exp_Date5 = @Exp_Date5, Exp_Title5 = @Exp_Title5, Exp_Location5 = @Exp_Location5, Exp_Date6 = @Exp_Date6, Exp_Title6 = @Exp_Title6, Exp_Location6 = @Exp_Location6, Exp_Date7 = @Exp_Date7, Exp_Title7 = @Exp_Title7, Exp_Location7 = @Exp_Location7, Career_Short = @Career_Short, Career_Code = @Career_Code, Career_Long = @Career_Long, Career_Relocation = @Career_Relocation, Carrer_Foreign = @Carrer_Foreign WHERE (Dat_ID = @Dat_ID)">
...
</asp:SqlDataSource> <asp:FormView ID="FormView1" runat="server" DataKeyNames="Dat_ID" DataSourceID="SqlDataSource1" style="z-index: 104; left: -24px; position: absolute; top: 63px" DefaultMode="Edit" Height="17px" meta:resourcekey="FormView1Resource1" Width="19px" HorizontalAlign="Left"> <EditItemTemplate> <asp:Label ID="Associate_" runat="server" Height="17px" meta:ResourceKey="Associate_"
Style="z-index: 100; left: 26px; position: absolute; top: -7px" Width="119px" CssClass="black"></asp:Label> <asp:TextBox ID="AssociateTextBox" runat="server" Style="z-index: 104; left: 145px;
position: absolute; top: -7px" Text='<%# Bind("Associate") %>' Height="11px" Width="307px" CssClass="gray" meta:resourcekey="AssociateTextBoxResource1"></asp:TextBox> <asp:Label ID="Title_" runat="server" Height="17px" meta:ResourceKey="Title_" Style="z-index: 103;
left: 458px; position: absolute; top: -7px" Width="151px" CssClass="black"></asp:Label> <asp:TextBox ID="TitleTextBox" runat="server" Height="11px" Style="z-index: 108;
left: 606px; position: absolute; top: -7px" Text='<%# Bind("Title") %>' Width="307px" CssClass="gray" meta:resourcekey="TitleTextBoxResource1"></asp:TextBox> <asp:Label ID="Service_Date_" runat="server" Height="17px" meta:ResourceKey="Service_Date_"
Style="z-index: 107; left: 26px; position: absolute; top: 9px" Width="119px" CssClass="black"></asp:Label> <asp:TextBox ID="Service_DateTextBox" runat="server" Height="11px" Style="z-index: 106;
left: 145px; position: absolute; top: 9px" Text='<%# Bind("Service_Date") %>'
Width="307px" CssClass="gray" meta:resourcekey="Service_DateTextBoxResource1"></asp:TextBox> ...
<asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update"
Height="16px" Style="z-index: 151; left: 291px; position: absolute; top: 607px"
Text="save" Width="143px" meta:resourcekey="UpdateButtonResource1" OnClick="UpdateButton_Click"></asp:LinkButton> <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
Height="16px" Style="z-index: 152; left: 438px; position: absolute; top: 607px"
Text="next page" Width="153px" meta:resourcekey="UpdateCancelButtonResource1" ></asp:LinkButton> <asp:Label ID="Dat_IDLabel1" runat="server" Height="16px" Style="z-index: 153; left: 597px;
position: absolute; top: 607px" Text='<%# Eval("Dat_ID") %>' Width="159px" meta:resourcekey="Dat_IDLabel1Resource1"></asp:Label> </EditItemTemplate>
...
</asp:FormView>Dienstag, 21. November 2006 11:43