Avatar billede mahyar Nybegynder
23. august 2012 - 10:48 Der er 7 kommentarer og
2 løsninger

Click event på Button bliver ikke aktiveret

Hej

når jeg indsætter en Button på siden og skal til at bruge den, så vil click eventen ikke blive aktiveret. Altså den går slet ikke ind i eventen når jeg eksempelvis sætter en breakpoint derind.

Men derimod en LinkButton fungerer normal.

Hvad kan der være gået galt???
Avatar billede Syska Mester
23. august 2012 - 10:52 #1
Show me the code ... der er helt sikkert noget galt :-)

Jeg er klog, men ikke synsk.
Avatar billede mahyar Nybegynder
23. august 2012 - 11:04 #2
Du får lige hele moleviten :)
------------------------------------------------------------------

public partial class Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    private void sendMail(string url)
    {
        User user = new User();
        string password = user.SelectPassword(TextBoxEmail.Text);

        //HTML mail   

        //ArrayList skindArrayl = arrList;
        StringBuilder strb = new StringBuilder();

        MailMessage mail;
        mail = new MailMessage();

        strb = new StringBuilder();

        SmtpClient smtpclient = new SmtpClient("mailout1.surf-town.net");

        MailAddress mailFrom = new MailAddress("mfmahyar@gmail.com");
        MailAddress mailTo = new MailAddress(TextBoxEmail.Text);


        mail.From = mailFrom;
        mail.To.Add(TextBoxEmail.Text);
        mail.Subject = "Velkommen til Podworld - Webinar";


        strb.Append("<html><body bgcolor = #BEB8A5>");


        strb.Append("<Center><h4> Dine brugeroplysninger</h4></Center><br><br>");

        strb.Append("<Center><table border='0' width = 600 bgcolor = #FFFFFF ></Center>");


        strb.Append(string.Format("<tr><td>Brugernavn:</td><td>{0}</td></tr>", TextBoxEmail.Text));
        strb.Append(string.Format("<tr><td>Adgangskode:</td><td>{0}</td></tr>", password));

        strb.Append(string.Format("<tr><td>Tryk her for at bekræfte din email:</td><td>{0}</td></tr>", url));




        strb.Append("</table><br>");

        strb.Append("<Center>Med venlig hilsen</Center>");
        strb.Append("<Center>Podworld.dk's administration</Center>");

        strb.Append("</body></html>");
        mail.Body = strb.ToString();
        mail.IsBodyHtml = true;



        try
        {
            smtpclient.Send(mail);

        }

        catch (Exception mailException)
        {
            Trace.Write(mailException.ToString());
        }

    }


    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        User user = new User();
        Image1.Visible = false;


        int roleID;
        roleID = 3;

        user.Email = TextBoxEmail.Text;
        user.FullName = TextBoxFullname.Text;
        user.Password = TextBoxPassword.Text;
        user.ProfileText = FreeTextBox1.Text;


        string path;
        string path2;

        path = @"upload/" + FileUpLoad1.FileName;
        path2 = @"upload/" + FileUpload2.FileName;

        //Tilfoej CV
        if (FileUpLoad1.HasFile)
        {
            FileUpLoad1.SaveAs(Server.MapPath(path));

        }
        //Tilfoej Profilbillede
        if (FileUpload2.HasFile)
        {
            FileUpload2.SaveAs(Server.MapPath(path));

        }

        user.Cv = path.Remove(0, 3);
        user.ProfilePicture = path2.Remove(0, 3);

        LabelError.Text = string.Empty;
        if (user.CheckEmail(TextBoxEmail.Text))
        {
            LabelError.Text = "Det indtastede email findes allerede i systemet.";
        }
        else
        {
            if (user.Bandwidth == "<2 MB")
            {
                LabelError2.Text = "Vi anbefaler at du benytter en større båndbredde. ";
            }
            else
            {
                user.CreateUser(user, roleID);
                user.UserID = user.SelectUserIDByEmail(user);
                user.InsertCVProfileText(user);


                LabelError.Text = string.Empty;
                string url = "confirmed.aspx?";
                url += "uid=" + System.Guid.NewGuid().ToString();
                url += "&confirmed=1";
                sendMail(url);
                Response.Redirect("CreateTeacher2.aspx");
                Image1.Visible = true;

            }
        }
    }


    protected void Button1_Click(object sender, EventArgs e)
    {
        Image1.Visible = true;
     
    }
}



html:
---------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>free template for professional business websites</title>
<meta name="keywords" content="free web template, business website, CSS, HTML" />
<meta name="description" content="free CSS HTML template for professional business websites" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<!--  Designed by w w w . t e m p l a t e m o . c o m  -->
</head>
<body>
<form id="Form1" runat=server>
    &nbsp;<div id="templatemo_container">
   
    <div id="templatemo_topbar">
        &nbsp;<div id="languagebox">
            <a href="#"><img src="images/engflag.gif" alt="English" /></a>
            <a href="#"><img src="images/frenchflag.gif" alt="French" /></a>
            <a href="#"><img src="images/germanyflag.gif" alt="Germany" /></a>
            <a href="#"><img src="images/japanflag.gif" alt="Japan" /></a>
        </div>
    </div>
   
    <div id="templatemo_header" style="height: 138px">
        <div id="templatemo_logo">
            <img src="images/LogoPodworld.png" alt="Logo" style="width: 304px; height: 105px" />
            <div id="templatemo_sitetitle">
                &nbsp;</div>
      </div>
       
        <div id="templatemo_login">
            <form method="post" action="#">
                <label>Email:</label><input class="inputfield" name="email_address" type="text" id="email_address"/>
                <label>Password:</label><input class="inputfield" name="password" type="password" id="password"/>
                <input class="button" type="submit" name="Submit" value="Login" />
            </form>
        </div>
    </div>
   
   
   
    <div id="templatemo_menu">
        <ul>
            <li><a href="index.html"  class="current">Hjem</a></li>
            <li><a href="subpage.html">Vi tilbyder</a></li>
            <li><a href="subpage.html">Løsninger</a></li>
            <li><a href="Profil.aspx">Partners</a></li> 
            <li><a href="subpage.html">Nyheder</a></li>                     
            <li><a href="subpage.html" class="lastmenu">Kontakt</a></li>           
        </ul> 
    </div>
    <div id="templatemo_services" style="height: 1400px">
        <br />
        &nbsp;&nbsp;
        <table class="mid" style="width: 1px; height: 81px">
            <tr>
                <td align="right" colspan="4" style="height: 42px">
                    &nbsp; &nbsp;&nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="mid" colspan="4">
                    <asp:Label ID="LabelError" runat="server" ForeColor="Red" Width="540px"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Black" Text="Fulde navn"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBoxFullname" runat="server" Width="360px"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                    &nbsp;
                </td>
                <td align="left" class="mid" style="width: 3px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxFullname"
                        CssClass="mid" ErrorMessage="Enter you fullname" Font-Bold="True" Font-Size="Large">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label9" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Adresse"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBoxAdress" runat="server" CssClass="mid" Width="360px"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                </td>
                <td align="left" class="mid" style="width: 3px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBoxAdress"
                        CssClass="mid" ErrorMessage="Enter your adress" Font-Bold="True" Font-Size="Large">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px; height: 26px">
                    <asp:Label ID="Label2" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Postnr"></asp:Label></td>
                <td class="mid" style="width: 148px; height: 26px">
                    <asp:TextBox ID="TextBoxZipCode" runat="server" CssClass="mid" Width="161px"></asp:TextBox></td>
                <td class="mid" style="width: 169px; height: 26px">
                </td>
                <td align="left" class="mid" style="width: 3px; height: 26px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px; height: 28px">
                    <asp:Label ID="Label5" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="By"></asp:Label></td>
                <td class="mid" style="width: 148px; height: 28px">
                    <asp:TextBox ID="TextBoxCity" runat="server" CssClass="mid" Width="161px"></asp:TextBox></td>
                <td class="mid" style="width: 169px; height: 28px">
                </td>
                <td align="left" class="mid" style="width: 3px; height: 28px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px; height: 28px">
                    <asp:Label ID="Label8" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Land"></asp:Label></td>
                <td class="mid" style="width: 148px; height: 28px">
                    <asp:DropDownList ID="DropDownList1" runat="server" CssClass="mid" DataSourceID="SqlDataSource1"
                        DataTextField="Name" DataValueField="Code" Width="294px">
                        <asp:ListItem Selected="True"></asp:ListItem>
                        <asp:ListItem>Region Hovedstaden</asp:ListItem>
                        <asp:ListItem>Region Sj&#230;lland</asp:ListItem>
                        <asp:ListItem>Region Syddanmark</asp:ListItem>
                        <asp:ListItem>Region Midtjylland</asp:ListItem>
                        <asp:ListItem>Region Nordjylland</asp:ListItem>
                        <asp:ListItem>----------------------</asp:ListItem>
                        <asp:ListItem Value="1">Aabenraa</asp:ListItem>
                        <asp:ListItem Value="2">Aalborg</asp:ListItem>
                        <asp:ListItem Value="3">Albertslund</asp:ListItem>
                        <asp:ListItem Value="4">Aller&#248;d</asp:ListItem>
                        <asp:ListItem Value="5">Assens</asp:ListItem>
                        <asp:ListItem Value="6">Ballerup</asp:ListItem>
                        <asp:ListItem Value="7">Billund</asp:ListItem>
                        <asp:ListItem Value="8">Bogense</asp:ListItem>
                        <asp:ListItem Value="9">Bornholm</asp:ListItem>
                        <asp:ListItem Value="10">Br&#248;ndby</asp:ListItem>
                        <asp:ListItem Value="11">Br&#248;nderslev</asp:ListItem>
                        <asp:ListItem Value="12">Christians&#248;</asp:ListItem>
                        <asp:ListItem Value="13">Drag&#248;r</asp:ListItem>
                        <asp:ListItem Value="14">Egedal</asp:ListItem>
                        <asp:ListItem Value="15">Esbjerg</asp:ListItem>
                        <asp:ListItem Value="15">Faaborg</asp:ListItem>
                        <asp:ListItem Value="16">Fan&#248;</asp:ListItem>
                        <asp:ListItem Value="17">Favrskov</asp:ListItem>
                        <asp:ListItem Value="18">Frederiksv&#230;rk</asp:ListItem>
                        <asp:ListItem Value="19">Fures&#248;</asp:ListItem>
                        <asp:ListItem Value="20">Gentofte</asp:ListItem>
                        <asp:ListItem Value="21">Gladsaxe</asp:ListItem>
                        <asp:ListItem Value="22">Grenaa</asp:ListItem>
                        <asp:ListItem Value="23">Grindsted</asp:ListItem>
                        <asp:ListItem Value="24">Gr&#230;sted-Gilleleje</asp:ListItem>
                        <asp:ListItem Value="25">Glostrup</asp:ListItem>
                        <asp:ListItem Value="26">Greve</asp:ListItem>
                        <asp:ListItem Value="27">Gribskov</asp:ListItem>
                        <asp:ListItem Value="28">Guldborgsund</asp:ListItem>
                        <asp:ListItem Value="29">Haderslev</asp:ListItem>
                        <asp:ListItem Value="30">Hedensted</asp:ListItem>
                        <asp:ListItem Value="31">Helsing&#248;r</asp:ListItem>
                        <asp:ListItem Value="32">Herlev</asp:ListItem>
                        <asp:ListItem Value="33">Herning</asp:ListItem>
                        <asp:ListItem Value="34">Hiller&#248;d</asp:ListItem>
                        <asp:ListItem Value="35">Hj&#248;rring</asp:ListItem>
                        <asp:ListItem Value="36">Holb&#230;k</asp:ListItem>
                        <asp:ListItem Value="37">Holstebro</asp:ListItem>
                        <asp:ListItem Value="38">Horsens</asp:ListItem>
                        <asp:ListItem Value="39">Hvidovre</asp:ListItem>
                        <asp:ListItem Value="40">H&#248;je-taastrup</asp:ListItem>
                        <asp:ListItem Value="41">H&#248;rsholm</asp:ListItem>
                        <asp:ListItem Value="42">Ikast-Brande</asp:ListItem>
                        <asp:ListItem Value="43">Ish&#248;j</asp:ListItem>
                        <asp:ListItem Value="44">Jammerbugt</asp:ListItem>
                        <asp:ListItem Value="45">Kalundborg</asp:ListItem>
                        <asp:ListItem Value="46">Kerteminde</asp:ListItem>
                        <asp:ListItem Value="47">Kolding</asp:ListItem>
                        <asp:ListItem Value="48">K&#248;benhavn</asp:ListItem>
                        <asp:ListItem Value="49">K&#248;ge</asp:ListItem>
                        <asp:ListItem Value="50">Langeland</asp:ListItem>
                        <asp:ListItem Value="51">Lejr</asp:ListItem>
                        <asp:ListItem Value="52">Lemvig</asp:ListItem>
                        <asp:ListItem Value="53">Lolland</asp:ListItem>
                        <asp:ListItem Value="54">Lyngby-taarb&#230;k</asp:ListItem>
                        <asp:ListItem Value="55">L&#230;s&#248;</asp:ListItem>
                        <asp:ListItem Value="56">Mariagerfjord</asp:ListItem>
                        <asp:ListItem Value="57">Middelfart</asp:ListItem>
                        <asp:ListItem Value="58">Mors&#248;</asp:ListItem>
                        <asp:ListItem Value="59">Norddjurs</asp:ListItem>
                        <asp:ListItem Value="60">Nyborg</asp:ListItem>
                        <asp:ListItem Value="61">N&#230;stved</asp:ListItem>
                        <asp:ListItem Value="62">Odder</asp:ListItem>
                        <asp:ListItem Value="63">Odense</asp:ListItem>
                        <asp:ListItem Value="64">Odsherred</asp:ListItem>
                        <asp:ListItem Value="65">Randers</asp:ListItem>
                        <asp:ListItem Value="66">Rebild</asp:ListItem>
                        <asp:ListItem Value="67">Ringk&#248;bing-skjern</asp:ListItem>
                        <asp:ListItem Value="68">Ringsted</asp:ListItem>
                        <asp:ListItem Value="69">Roskilde</asp:ListItem>
                        <asp:ListItem Value="70">Rudersdal</asp:ListItem>
                        <asp:ListItem Value="71">R&#248;dovre</asp:ListItem>
                        <asp:ListItem Value="72">Sams&#248;</asp:ListItem>
                        <asp:ListItem Value="73">Silkeborg</asp:ListItem>
                        <asp:ListItem Value="74">Skanderborg</asp:ListItem>
                        <asp:ListItem Value="75">Skive</asp:ListItem>
                        <asp:ListItem Value="76">Slagelse</asp:ListItem>
                        <asp:ListItem Value="77">Solr&#248;d</asp:ListItem>
                        <asp:ListItem Value="78">Sor&#248;</asp:ListItem>
                        <asp:ListItem Value="79">Stevns</asp:ListItem>
                        <asp:ListItem Value="80">Struer</asp:ListItem>
                        <asp:ListItem Value="81">Svendborg</asp:ListItem>
                        <asp:ListItem Value="82">Syddjurs</asp:ListItem>
                        <asp:ListItem Value="83">S&#248;nderborg</asp:ListItem>
                        <asp:ListItem Value="84">Thisted</asp:ListItem>
                        <asp:ListItem Value="85">T&#229;rnby</asp:ListItem>
                        <asp:ListItem Value="86">T&#248;nder</asp:ListItem>
                        <asp:ListItem Value="87">Vallensb&#230;k</asp:ListItem>
                        <asp:ListItem Value="88">Varde</asp:ListItem>
                        <asp:ListItem Value="89">Vejen</asp:ListItem>
                        <asp:ListItem Value="90">Vejle</asp:ListItem>
                        <asp:ListItem Value="91">Vesthimmerland</asp:ListItem>
                        <asp:ListItem Value="92">Viborg</asp:ListItem>
                        <asp:ListItem Value="93">Vordingborg</asp:ListItem>
                        <asp:ListItem Value="94">&#197;rhus</asp:ListItem>
                        <asp:ListItem Value="95">&#198;r&#248;</asp:ListItem>
                    </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringSurfTown %>"
                        SelectCommand="SELECT [Name], [Code] FROM [Country] ORDER BY [Name]"></asp:SqlDataSource>
                </td>
                <td class="mid" style="width: 169px; height: 28px">
                </td>
                <td align="left" class="mid" style="width: 3px; height: 28px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px; height: 28px">
                    <asp:Label ID="Label11" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Telefon"></asp:Label></td>
                <td class="mid" style="width: 148px; height: 28px">
                    <asp:TextBox ID="TextBoxTelephone" runat="server" CssClass="mid" Width="199px"></asp:TextBox></td>
                <td class="mid" style="width: 169px; height: 28px">
                </td>
                <td align="left" class="mid" style="width: 3px; height: 28px">
                    &nbsp; &nbsp; &nbsp;
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label6" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Mobil"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBoxCellphone" runat="server" CssClass="mid" Width="199px"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                </td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px; height: 26px">
                    <asp:Label ID="Label13" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Båndbredde"></asp:Label></td>
                <td class="mid" style="width: 148px; height: 26px">
                    <asp:DropDownList ID="DropDownListBandwidth" runat="server" Width="136px">
                        <asp:ListItem Selected="True">V&#230;lg</asp:ListItem>
                        <asp:ListItem>&lt;2 MB</asp:ListItem>
                        <asp:ListItem>2 - 5 MB</asp:ListItem>
                        <asp:ListItem>5 - 10  MB</asp:ListItem>
                        <asp:ListItem>10-15 MB</asp:ListItem>
                        <asp:ListItem>15 - 20 MB</asp:ListItem>
                        <asp:ListItem>20&lt; MB</asp:ListItem>
                    </asp:DropDownList></td>
                <td class="mid" style="width: 169px; height: 26px">
                </td>
                <td align="left" class="mid" style="width: 3px; height: 26px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" colspan="4" style="height: 26px">
                    <asp:Label ID="LabelError2" runat="server" CssClass="mid" ForeColor="Red" Width="540px"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label7" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Email"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBoxEmail" runat="server" CssClass="mid" Width="459px"></asp:TextBox>
                </td>
                <td class="mid" style="width: 169px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxEmail"
                        CssClass="mid" ErrorMessage="Enter your email" Font-Bold="True" Font-Size="Large">*</asp:RequiredFieldValidator></td>
                <td align="left" class="mid" style="width: 3px">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail"
                        ErrorMessage="Enter a valid emailadress" Font-Bold="True" Font-Size="Large" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label4" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Bekræft email" Width="91px"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBoxEmail2" runat="server" CssClass="mid" Width="459px"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBoxEmail2"
                        ControlToValidate="TextBoxEmail" ErrorMessage="The entered emailadresses are not identical"
                        Font-Bold="True" Font-Size="Large">*</asp:CompareValidator></td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                </td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                </td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label10" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Adgangskode" Width="91px"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBoxPassword" runat="server" CssClass="mid" TextMode="Password"
                        Width="161px"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxPassword"
                        CssClass="mid" ErrorMessage="Enter your adress" Font-Bold="True" Font-Size="Large">*</asp:RequiredFieldValidator></td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label12" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Bekræft adgangskode" Width="123px"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBoxPassword2" runat="server" CssClass="mid" TextMode="Password"
                        Width="161px"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="TextBoxPassword2"
                        ControlToValidate="TextBoxPassword" ErrorMessage="The entered emailadresses are not identical"
                        Font-Bold="True" Font-Size="Large">*</asp:CompareValidator></td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px" valign="top">
                    <asp:Label ID="Label14" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Kort profil tekst - max 100 tegn" Width="178px"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:TextBox ID="TextBox1" runat="server" Height="106px" TextMode="MultiLine" Width="494px"></asp:TextBox></td>
                <td class="mid" style="width: 169px">
                </td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px" valign="top">
                    <asp:Label ID="Label15" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Lang profil tekst" ToolTip="Her bedes du fortælle om din uddannelse og baggrund. Og hvad du vil tilbyde. "
                        Width="114px"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <ftb:freetextbox id="FreeTextBox1" runat="server" allowhtmlmode="False" assemblyresourcehandlerpath=""
                        autoconfigure="" autogeneratetoolbarsfromstring="True" autohidetoolbar="True"
                        autoparsestyles="True" backcolor="158, 190, 245" baseurl="" breakmode="Paragraph"
                        buttondownimage="False" buttonfileextention="gif" buttonfolder="Images" buttonheight="20"
                        buttonimageslocation="InternalResource" buttonoverimage="False" buttonpath=""
                        buttonset="Office2003" buttonwidth="21" clientsidetextchanged="" converthtmlsymbolstohtmlcodes="False"
                        designmodebodytagcssclass="" designmodecss="" disableiebackbutton="False" downlevelcols="50"
                        downlevelmessage="" downlevelmode="TextArea" downlevelrows="10" editorbordercolordark="Gray"
                        editorbordercolorlight="Gray" enablehtmlmode="True" enablessl="False" enabletoolbars="True"
                        focus="False" formathtmltagstoxhtml="True" gutterbackcolor="129, 169, 226" gutterbordercolordark="Gray"
                        gutterbordercolorlight="White" height="450px" helperfilesparameters="" helperfilespath=""
                        htmlmodecss="" htmlmodedefaultstomonospacefont="True" imagegallerypath="~/images/"
                        imagegalleryurl="ftb.imagegallery.aspx?rif={0}&cif={0}" installationerrormessage="InlineMessage"
                        javascriptlocation="InternalResource" language="en-US" pastemode="Default" readonly="False"
                        removescriptnamefrombookmarks="True" removeservernamefromurls="True" rendermode="NotSet"
                        scriptmode="External" showtagpath="False" sslurl="/." startmode="DesignMode"
                        stripallscripting="False" supportfolder="/aspnet_client/FreeTextBox/" tabindex="-1"
                        tabmode="InsertSpaces" text="Beskrivelse kommer senere..." textdirection="LeftToRight"
                        toolbarbackcolor="Transparent" toolbarbackgroundimage="True" toolbarimageslocation="InternalResource"
                        toolbarlayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertRule|Cut,Copy,Paste;Undo,Redo,Print"
                        toolbarstyleconfiguration="Office2003" updatetoolbar="True" usetoolbarbackgroundimage="True"
                        width="500px"></ftb:freetextbox>
                </td>
                <td class="mid" style="width: 169px">
                </td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label16" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="CV file"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:FileUpload ID="FileUpLoad1" runat="server" CssClass="mid" Width="300px" /></td>
                <td class="mid" style="width: 169px">
                </td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" style="width: 96px">
                    <asp:Label ID="Label17" runat="server" CssClass="mid" Font-Bold="True" ForeColor="Black"
                        Text="Profie picture"></asp:Label></td>
                <td class="mid" style="width: 148px">
                    <asp:FileUpload ID="FileUpload2" runat="server" CssClass="mid" Width="300px" /></td>
                <td class="mid" style="width: 169px">
                </td>
                <td align="left" class="mid" style="width: 3px">
                </td>
            </tr>
            <tr>
                <td align="left" class="mid" colspan="4" style="height: 49px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="mid" colspan="4" style="height: 49px">
                    &nbsp;
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" Font-Bold="True"
                        Font-Size="Large" ForeColor="#C04000" OnClick="LinkButton1_Click">Fuldfør</asp:LinkButton>&nbsp;
                    <asp:Image ID="Image1" runat="server" Height="19px" ImageUrl="images/RigtigIkon.png"
                        Visible="False" Width="22px" />
                    <asp:Button ID="Button1" runat="server" CausesValidation="False" OnClick="Button1_Click"
                        Text="Button" /></td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="mid" ShowMessageBox="True"
            ShowSummary="False" />
    </div>
  <div id="templatemo_newssection">
      &nbsp;<h1>
          &nbsp;</h1>
   
    <div class="more_button">
        &nbsp;</div>
      &nbsp; &nbsp;
      <br />
  </div>
    <div id="templatemo_light_blue_row">
        <div class="templatemo_gallery">
          <h1>
              Introduktions video</h1>
              <div class="gp_row">
                <img src="images/building_150x70_03.gif" alt="image" />
                <p>In hac habitasse platea dictumst. Aenean cursus. Maecenas aliquam, ligula id egestas suscipit, nisi sapien dignissim nibh. <a href="#">more...</a>                </p>
          </div>
            <div class="gp_row">
              <img src="images/building_150x70_02.gif" alt="image" />
                <p>Praesent varius egestas velit. Donec a massa ut pede pulvinar vulputate.  Aenean eget tortor eget ipsum aliquet porta. V  <a href="#">more...</a>                </p>
          </div>
            <div class="gp_row">
                <img src="images/building_150x70_01.gif" alt="image" />
                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc quis sem nec tellus blandit tincidunt. Duis vitae velit sed dui malesuada dignissim. <a href="#">more...</a>
                </p>
            </div>
            <div class="more_button"><a href="#">View All</a></div>
        </div>
        <div class="templatemo_partners">
          <h1>
              Nyheder</h1>
              <div class="gp_row">
                <img src="images/templatemo.gif" alt="image" />
                <p>Mauris blandit vehicula neque. Proin consectetuer. Donec venenatis. Cras urna metus, feugiat non, consectetuer quis, pretium quis, nunc. <a href="#" target="_parent">more...</a>
                </p>
            </div>
            <div class="gp_row">
                <img src="images/flashmo.gif" alt="image" />
                <p>Nullam pede purus, tempor a, imperdiet in, porttitor at, nulla. Aliquam elit risus, volutpat quis, mattis ac, elementum eget, mauris. <a href="#" target="_parent">more...</a>
                </p>
            </div>
            <div class="gp_row">
                <img src="images/webdesignmo.gif" alt="image" />
                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc quis sem nec tellus blandit tincidunt. Duis vitae velit sed dui malesuada dignissim. <a href="#" target="_parent"> more...</a>
                </p>
            </div>
            <div class="more_button"><a href="#">View All</a></div>
        </div>
    </div>
<!--  Designed by w w w . t e m p l a t e m o . c o m  --> &nbsp;&nbsp;
    <div id="templatemo_footer">
      <a href="#"> Hjem </a>| <a href="#">Vi tilbyder</a> | <a href="#">Løsninger</a> | <a href="#">Partner</a> | <a href="#">Nyheder</a> |<a href="#"> Kontakt</a><br />
        Copyright © 2012 <a href="#"><strong>MD Trading </strong></a>|
        <a href="http://www.iwebsitetemplate.com" target="_parent">
            Podworld.dk</a></div>
</div>
</form></body>
</html>
Avatar billede Syska Mester
23. august 2012 - 11:09 #3
Puhhhh, jeg har ingen problemer her  ... og jeg kan ikke som sådan lige se nogen problemer.

Kan du lave et ultra lille eksemple som kan genskabe problemet, så vil jeg kigge på det. I overstående er der lidt meget jeg skal tage højde for.

Men når du sætter dit break point... siger den så at den har loaded debug symbols for koden? Altså er den røde debug cirkel hvid i midten eller er den 100% rød?

Er du sikker på du har sat <compilation debug="true" /> i din web.config?

Lige det jeg umildbart kan komme på.
Avatar billede mahyar Nybegynder
23. august 2012 - 12:12 #4
Jeg synes godt nok også at det er mærkelig. Når jeg laver en helt tom side uden style og alt andet. Så virker Button fint. Men ligeså snart jeg benytter den template jeg har. Så går den galt.

Cirklen er hvid inden i når jeg debugger.
Avatar billede Syska Mester
23. august 2012 - 12:24 #5
Det betyder at den ikke kan loade debug symbols ... sikker på du compiler i debug mode?
Avatar billede mahyar Nybegynder
23. august 2012 - 12:50 #6
nu har jeg skiftet min templates og design og nu begynder det at virke !!!!
Avatar billede mahyar Nybegynder
23. august 2012 - 13:46 #7
Men send mig lige et svar alligevel. Du har prøvet hjælpe ;)
Avatar billede Syska Mester
23. august 2012 - 14:12 #8
Giv mig 10 point og tag resten selv. Jeg har jo ikke gjort andet end at give et par ideer.

mvh
Avatar billede mahyar Nybegynder
29. august 2012 - 17:30 #9
svar
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester