Note that there are some explanatory texts on larger screens.

plurals
  1. PODisable fields with checkbox in website
    primarykey
    data
    text
    <p>I need to disable a form fields, using <code>c#</code> and <code>asp.net</code></p> <p>For example in this image <a href="http://postimg.org/image/l5rns5z0h/" rel="nofollow">Imag example</a></p> <p>There's a checkbox, which when clicked it has to disable all fields, and user can click 'Guardar' to keep going with the registration.</p> <p>Now, my question is, how can i do this in asp.net with c# and .NET framework 4.0?</p> <p>Is there some tutorial or example i can use for this case?</p> <p>If you need some code i can Edit my question.</p> <p>Thanks in advance!</p> <p>EDIT</p> <p>I have these fields:</p> <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt; &lt;div class="fixed-width-wrapper contentContainer"&gt; &lt;div style="padding:20px"&gt; &lt;div style="padding-bottom:5px; border-bottom:solid 1px #cccccc; background-image:url('images/menuzulcon4.png'); height: 52px; width: 952px;" class="titulosGeneral";&gt;&lt;/div&gt; &lt;div class="curriculumdivcompleto"&gt; &lt;div class="curriculumLadoRegistroizq"&gt; &lt;div style="margin-top:10px" class="autenticacionTitulo"&gt;Nombre de la última o actual empresa&lt;/div&gt; &lt;div style="margin-top:5px"&gt;&lt;asp:TextBox ID="nom_act_emp" runat="server" MaxLength="100" ValidationGroup="Curriculum" CssClass="autenticacionTextBox"&gt;&lt;/asp:TextBox&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="curriculumLadoRegistro2"&gt; &lt;div style="margin-top:10px" class="autenticacionTitulo"&gt;Dirección&lt;/div&gt; &lt;div style="margin-top:5px"&gt;&lt;asp:TextBox ID="Direcc_emp" runat="server" MaxLength="100" ValidationGroup="Curriculum" CssClass="autenticacionTextBox"&gt;&lt;/asp:TextBox&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="curriculumLadoRegistroizq"&gt; &lt;div style="margin-top:10px" class="autenticacionTitulo"&gt;Teléfono&lt;/div&gt; &lt;div style="margin-top:5px"&gt;&lt;asp:TextBox ID="Tel_emp" runat="server" MaxLength="100" ValidationGroup="Curriculum" CssClass="autenticacionTextBox"&gt;&lt;/asp:TextBox&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="curriculumLadoRegistro2"&gt; &lt;div style="margin-top:10px" class="autenticacionTitulo"&gt;Nombre y cargo de su jefe inmediato&lt;/div&gt; &lt;div style="margin-top:5px"&gt;&lt;asp:TextBox ID="Jefe_emp" runat="server" MaxLength="100" ValidationGroup="Curriculum" CssClass="autenticacionTextBox"&gt;&lt;/asp:TextBox&gt;&lt;/div&gt; &lt;/div&gt;&lt;/div&gt;&lt;/asp:Content&gt; </code></pre> <p>I'll add the checkbox on top of them, and if i click it, it will disable them.</p>
    singulars
    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.
 

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