Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've tried your code in a new ASP.NET Web Forms Application I've just created. The code works just fine and I'm coming to the button code as well. You haven't pasted all your code above so I've pasted it all down here and you can see if anything is missing in your code. This, that I've pasted here, works just fine on my computer (Visual Studio 2012 and .Net 4.5)</p> <pre><code>&lt;%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %&gt; &lt;asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent"&gt; &lt;section class="featured"&gt; &lt;div class="content-wrapper"&gt; &lt;hgroup class="title"&gt; &lt;h1&gt;&lt;%: Title %&gt;.&lt;/h1&gt; &lt;h2&gt;Modify this template to jump-start your ASP.NET application.&lt;/h2&gt; &lt;/hgroup&gt; &lt;p&gt; To learn more about ASP.NET, visit &lt;a href="http://asp.net" title="ASP.NET Website"&gt;http://asp.net&lt;/a&gt;. The page features &lt;mark&gt;videos, tutorials, and samples&lt;/mark&gt; to help you get the most from ASP.NET. If you have any questions about ASP.NET visit &lt;a href="http://forums.asp.net/18.aspx" title="ASP.NET Forum"&gt;our forums&lt;/a&gt;. &lt;/p&gt; &lt;/div&gt; &lt;/section&gt; &lt;/asp:Content&gt; &lt;asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent"&gt; &lt;h3&gt;We suggest the following:&lt;/h3&gt; &lt;div id="myModal" class="reveal-modal"&gt; &lt;p&gt; &lt;div id="signup"&gt; &lt;h1&gt; &lt;b&gt;Signin&lt;/b&gt;&lt;/h1&gt; &lt;asp:TextBox ID="txtusername" placeholder="Choose Your UserName" required="" runat="server" onclick="this.value='';" onblur="this.value"&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator ID="requser" runat="server" ControlToValidate="txtusername" ErrorMessage="Please Enter UserName" ValidationGroup="vg1"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;asp:TextBox ID="txtpassword" placeholder="Choose your password" required="" runat="server" TextMode="Password"&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator ID="reqpassword" runat="server" ControlToValidate="txtpassword" ErrorMessage="Please Enter Password" ValidationGroup="vg1"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;asp:Button ID="Login" runat="server" OnClick="LoginClick" ValidationGroup="vg1" Text="SignIn" /&gt;&lt;br /&gt; &lt;asp:LinkButton ID="signuplink" runat="server" OnClick="LinkLoginClick" &gt;Register Now&lt;/asp:LinkButton&gt; &lt;asp:Label ID="lblloginmsg" runat="server" Text=""&gt;&lt;/asp:Label&gt; &lt;!-- End Products --&gt; &lt;/div&gt;&lt;/p&gt; &lt;a class="close-reveal-modal"&gt;&amp;#215;&lt;/a&gt; &lt;/div&gt; &lt;/asp:Content&gt; </code></pre> <p>The code for the button is almost the same. My Visual Studio wanted it to be <code>Public</code> instead of <code>Protected</code>. You can try to make that change as well.</p> <pre><code>public void LoginClick(object sender, EventArgs e) { // ... } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload