Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19

Thread: velden niet zichtbaar

  1. #1
    Senior Member ErikB's Avatar
    Join Date
    Aug 2010
    Location
    Biddinghuizen
    Posts
    509

    velden niet zichtbaar

    Hallo,

    Ik ben een "verstokte" Delphi 7 programmeur, maar ben nu voorzichtig eens met ASP.NET aan het spelen met Delphi Prism in Visual Studio 2008.
    Heb een eenvoudige scherm gemaakt met veldjes als Naam, adres enz.

    ik gebruik van de toolbox onder het kopje "standaard" het label en de Textbox.
    Doe ik een "view in browser" dan zie ik netjes de componenten en kan ik iets vullen.
    Doe ik nu een build en ook een publish en kopieer de bestanden naar een testgedeelte van mijn website, dan zie ik die componenten niet meer.
    Gebruik ik daarentegen componenten uit de toolbox onder het kopje HTML , dan zie ik die wel.
    Maar die wil ik niet.

    Doe ik iets fout, vergeet ik iets ( een instelling ) , of moet ik op de website zelf iets (laten) instellen ?

    hoor graag !

    m.vr.gr.
    Erik

  2. #2
    Veel moeilijker moet het niet worden zou ik zeggen. In principe is het inderdaad voldoende om de bestanden te kopiëren naar je website. Als er dan iets niet werkt zou je een foutmelding moeten krijgen. Krijg je helemaal niets, een witte pagina, een foutmelding? Staat er een foutmelding in je eventlog?

    Let op: deze sectie gaat binnenkort sluiten, we hebben een heel nieuw forum voor .NET
    Marcel

  3. #3
    Senior Member ErikB's Avatar
    Join Date
    Aug 2010
    Location
    Biddinghuizen
    Posts
    509
    leek mij ook niet...
    heb al even gedacht aan de voor- en achtergrond kleur, die ook speicifiek benoemd, maar helaas.
    het gekke is dat het HTML componentje het wel doet.

    Ik weet niet of het van invloed is : ik plaats eerst een panel en daarop plaats ik de componenten.

    Erik

  4. #4
    Kun je hier de HTML eens posten van je gegenereerde pagina?
    Marcel

  5. #5
    Senior Member ErikB's Avatar
    Join Date
    Aug 2010
    Location
    Biddinghuizen
    Posts
    509
    Marcel,

    excuses voor de late reply, ben een paar dagen op klantbezoeken geweest.
    hierbij de html code:

    HTML Code:
    <%@ Page Language="Oxygene" AutoEventWireup="true"  CodeBehind="Lidworden.aspx.pas" Inherits="DMPALidworden._Default" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
        <style type="text/css">
            .style1
            {
                width: 222px;
                text-align: left;
            }
            .style2
            {
                text-align: left;
            }
            #Text1
            {
                width: 350px;
            }
            #eAchternaam
            {
                width: 350px;
            }
            #Select1
            {
                width: 123px;
            }
            #TextArea1
            {
                width: 279px;
            }
        </style>
    </head>
    <body bgcolor="#FFFFE1" style="color:#000">
        <form id="form1" runat="server">
        <div style="height: 569px">
    
            <asp:Panel ID="Panel1" runat="server" BackColor="#FFFFE1" Font-Names="Calibri" 
                Font-Size="Large" Height="387px" HorizontalAlign="Center" Width="602px">
                <asp:Label ID="Label1" runat="server" ForeColor="Black" 
                    Text="DMPA aanvraag lidmaatschap"></asp:Label>
                <br />
                <br />
                <br />
                <table style="width:100%;" >
                    <tr>
                        <td class="style1" >
                            Achternaam</td>
                        <td style="text-align: left" width="350px">
                            <asp:TextBox ID="TextBox1" runat="server" Width="350px" BackColor="White" 
                                Font-Names="Calibri"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Voornaam</td>
                        <td class="style2">
                            <input ID="Text1" type="text" /></td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Adres</td>
                        <td class="style2">
                            <input ID="Text2" type="text" /></td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Postcode</td>
                        <td class="style2">
                            <input ID="Text3" type="text" /></td>
                    </tr>
                        <tr>
                            <td class="style1">
                                Plaats</td>
                            <td class="style2">
                                <input ID="Text4" type="text" /></td>
                    </tr>
                    </tr>
                    <tr>
                        <td class="style1">
                            Geslacht</td>
                        <td class="style2">&nbsp;
                            </td>
                    </tr>
                    </tr>
                        <tr>
                            <td class="style1">
                                Email</td>
                            <td class="style2">
                                <input ID="Text5" type="text" /></td>
                    </tr>
                    </tr>
                    </tr __designer:mapid="a9">
                        <tr>
                            <td class="style1">
                                Website</td>
                            <td class="style2">
                                <input ID="Text6" type="text" /></td>
                    </tr>
                        <tr>
                            <td class="style1">
                                Station ID</td>
                            <td class="style2">
                                <input ID="Text7" type="text" /></td>
                    </tr>
                </table>
                <br />
                <br />
                <asp:Button ID="Button1" runat="server" Text="Verzenden" 
                    onclick="Button1_Click" />
                
                
            </asp:Panel>
    
        </div>
        <div style="height: 107px">
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        </div>
        </form>
    </body>
    </html>
    ik heb ook nog een bestand global.aspx, maar daar zit maar 1 regel in.

    een aantal van de invulvelden zijn dus html-velden , label1 en Achternaam zijn de asp velden uit de Toolbox


    gr,
    Erik

  6. #6
    Dat is je ASPX pagina (die werkt overigens goed). Als je nu de pagina opent in je browser en de broncode bekijkt, wat krijg je dan?
    Marcel

  7. #7
    Senior Member ErikB's Avatar
    Join Date
    Aug 2010
    Location
    Biddinghuizen
    Posts
    509
    dan krijg ik:
    HTML Code:
    <%@ Page Language="Oxygene" AutoEventWireup="true"  CodeBehind="Lidworden.aspx.pas" Inherits="DMPALidworden._Default" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
        <style type="text/css">
            .style1
            {
                width: 222px;
                text-align: left;
            }
            .style2
            {
                text-align: left;
            }
            #Text1
            {
                width: 350px;
            }
            #eAchternaam
            {
                width: 350px;
            }
            #Select1
            {
                width: 123px;
            }
            #TextArea1
            {
                width: 279px;
            }
        </style>
    </head>
    <body bgcolor="#FFFFE1" style="color:#000">
        <form id="form1" runat="server">
        <div style="height: 569px">
     
            <asp:Panel ID="Panel1" runat="server" BackColor="#FFFFE1" Font-Names="Calibri" 
                Font-Size="Large" Height="387px" HorizontalAlign="Center" Width="602px">
                <asp:Label ID="Label1" runat="server" ForeColor="Black" 
                    Text="DMPA aanvraag lidmaatschap"></asp:Label>
                <br />
                <br />
                <br />
                <table style="width:100%;" >
                    <tr>
                        <td class="style1" >
                            Achternaam</td>
                        <td style="text-align: left" width="350px">
                            <asp:TextBox ID="TextBox1" runat="server" Width="350px" BackColor="White" 
                                Font-Names="Calibri"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Voornaam</td>
                        <td class="style2">
                            <input ID="Text1" type="text" /></td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Adres</td>
                        <td class="style2">
                            <input ID="Text2" type="text" /></td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Postcode</td>
                        <td class="style2">
                            <input ID="Text3" type="text" /></td>
                    </tr>
                        <tr>
                            <td class="style1">
                                Plaats</td>
                            <td class="style2">
                                <input ID="Text4" type="text" /></td>
                    </tr>
                    </tr>
                    <tr>
                        <td class="style1">
                            Geslacht</td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    </tr>
                        <tr>
                            <td class="style1">
                                Email</td>
                            <td class="style2">
                                <input ID="Text5" type="text" /></td>
                    </tr>
                    </tr>
                    </tr __designer:mapid="a9">
                        <tr>
                            <td class="style1">
                                Website</td>
                            <td class="style2">
                                <input ID="Text6" type="text" /></td>
                    </tr>
                        <tr>
                            <td class="style1">
                                Station ID</td>
                            <td class="style2">
                                <input ID="Text7" type="text" /></td>
                    </tr>
                </table>
                <br />
                <br />
                <asp:Button ID="Button1" runat="server" Text="Verzenden" 
                    onclick="Button1_Click" />
                
                
            </asp:Panel>
     
        </div>
        <div style="height: 107px">
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        </div>
        </form>
    </body>
    </html>
    de andere code van het vorige bericht had ik als volgt gekregen:
    dubbelklik op het bestand Lidworden.apsx
    dan wordt Dreamveaver gestart en krijg ik de geplaatste code.

    Erik

  8. #8
    Dit is niet de pagina die je vanaf je webserver in je browser hebt opgeroepen toch?
    Marcel

  9. #9
    Senior Member ErikB's Avatar
    Join Date
    Aug 2010
    Location
    Biddinghuizen
    Posts
    509
    voor de zekerheid, onderstaand is via IE en "bron" :

    HTML Code:
    <%@ Page Language="Oxygene" AutoEventWireup="true"  CodeBehind="Lidworden.aspx.pas" Inherits="DMPALidworden._Default" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
        <style type="text/css">
            .style1
            {
                width: 222px;
                text-align: left;
            }
            .style2
            {
                text-align: left;
            }
            #Text1
            {
                width: 350px;
            }
            #eAchternaam
            {
                width: 350px;
            }
            #Select1
            {
                width: 123px;
            }
            #TextArea1
            {
                width: 279px;
            }
        </style>
    </head>
    <body bgcolor="#FFFFE1" style="color:#000">
        <form id="form1" runat="server">
        <div style="height: 569px">
     
            <asp:Panel ID="Panel1" runat="server" BackColor="#FFFFE1" Font-Names="Calibri" 
                Font-Size="Large" Height="387px" HorizontalAlign="Center" Width="602px">
                <asp:Label ID="Label1" runat="server" ForeColor="Black" 
                    Text="DMPA aanvraag lidmaatschap"></asp:Label>
                <br />
                <br />
                <br />
                <table style="width:100%;" >
                    <tr>
                        <td class="style1" >
                            Achternaam</td>
                        <td style="text-align: left" width="350px">
                            <asp:TextBox ID="TextBox1" runat="server" Width="350px" BackColor="White" 
                                Font-Names="Calibri"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Voornaam</td>
                        <td class="style2">
                            <input ID="Text1" type="text" /></td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Adres</td>
                        <td class="style2">
                            <input ID="Text2" type="text" /></td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Postcode</td>
                        <td class="style2">
                            <input ID="Text3" type="text" /></td>
                    </tr>
                        <tr>
                            <td class="style1">
                                Plaats</td>
                            <td class="style2">
                                <input ID="Text4" type="text" /></td>
                    </tr>
                    </tr>
                    <tr>
                        <td class="style1">
                            Geslacht</td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    </tr>
                        <tr>
                            <td class="style1">
                                Email</td>
                            <td class="style2">
                                <input ID="Text5" type="text" /></td>
                    </tr>
                    </tr>
                    </tr __designer:mapid="a9">
                        <tr>
                            <td class="style1">
                                Website</td>
                            <td class="style2">
                                <input ID="Text6" type="text" /></td>
                    </tr>
                        <tr>
                            <td class="style1">
                                Station ID</td>
                            <td class="style2">
                                <input ID="Text7" type="text" /></td>
                    </tr>
                </table>
                <br />
                <br />
                <asp:Button ID="Button1" runat="server" Text="Verzenden" 
                    onclick="Button1_Click" />
                
                
            </asp:Panel>
     
        </div>
        <div style="height: 107px">
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        </div>
        </form>
    </body>

    Erik

  10. #10
    SillyMember
    Join Date
    May 2003
    Location
    Gent
    Posts
    7,725
    Je aspx pagina wordt geeneens verwerkt door de webserver?
    All methodologies are based on fear. -- Kent Beck.

  11. #11
    Inderdaad, je pagina wordt nu gewoon als tekstbestand geopend. Heb je het juiste .NET framework geïnstalleerd en geconfigureerd voor je website?
    Marcel

  12. #12
    Senior Member ErikB's Avatar
    Join Date
    Aug 2010
    Location
    Biddinghuizen
    Posts
    509
    kennelijk niet !
    ik ben dus helemaal vreemd met dit soort instellingen ( heb wel meer dan 25 jaar ervaring met TurboPascal en Delphi, maar daar heb ik nu niet zo veel aan).

    Is er ergens een beschrijving hoe en welke instellingen ik moet doen en waarin ( applicatie, op de site, enz) ?

    gr.
    Erik

  13. #13

  14. #14
    Senior Member ErikB's Avatar
    Join Date
    Aug 2010
    Location
    Biddinghuizen
    Posts
    509
    OK, dank je wel.
    Maar nu heb ik ook een website die ergens gehost is.
    Moet ik de provider vragen om iets in te stellen ?

    gr.
    Erik

  15. #15
    Als die provider .NET aanbied zal dat al zijn ingesteld, anders moet je hem gaan overtuigen. Waar heb je je website staan?
    Marcel

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •