Click here to Skip to main content
15,888,018 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDeveloping an election ballot box app. Pin
samflex22-Apr-16 5:04
samflex22-Apr-16 5:04 
QuestionRe: Developing an election ballot box app. Pin
ZurdoDev22-Apr-16 5:39
professionalZurdoDev22-Apr-16 5:39 
AnswerRe: Developing an election ballot box app. Pin
samflex22-Apr-16 6:23
samflex22-Apr-16 6:23 
QuestionRe: Developing an election ballot box app. Pin
ZurdoDev22-Apr-16 6:32
professionalZurdoDev22-Apr-16 6:32 
AnswerRe: Developing an election ballot box app. Pin
F-ES Sitecore24-Apr-16 3:01
professionalF-ES Sitecore24-Apr-16 3:01 
GeneralRe: Developing an election ballot box app. Pin
samflex24-Apr-16 13:21
samflex24-Apr-16 13:21 
GeneralRe: Developing an election ballot box app. Pin
F-ES Sitecore24-Apr-16 22:51
professionalF-ES Sitecore24-Apr-16 22:51 
GeneralRe: Developing an election ballot box app. Pin
samflex25-Apr-16 4:38
samflex25-Apr-16 4:38 
Is there a way to upload screenshot here?

That's the best way to explain what is going on.

First, the textbox is supposed to display only on the Presidential section.

Instead, it displays on ALL positions.

I don't know if this is happening because we used DataList to display the positions.

Second, I just keep getting the following error:

Quote:
Compiler Error Message: BC30451: 'writeIn' is not declared. It may be inaccessible due to its protection level.


and is pointing to this line:

PHP
var txtWriteIn = $("#<%=writeIn.ClientID %>");


Here is the code I am using after integrating your code:

<asp:RadioButtonList ID="RadioButtonList1" runat="server" AppendDataBoundItems="true" align="center" style="width:20px;height:20px;zoom:120%; white-space:nowrap;">
</asp:RadioButtonList></div>
  <asp:TextBox ID="writeIn" runat="server"></asp:TextBox>
  <script type="text/javascript">
      var txtWriteIn = $("#<%=writeIn.ClientID %>");
      txtWriteIn.hide();
      $(document).ready(function () {
          $("input[type='radio'][name='RadioButtonList1'][value='27']").click(function () {
              txtWriteIn.show();
          });
          $("input[type='radio'][name='RadioButtonList1'][value!='27']").click(function () {
              txtWriteIn.hide();
          });
      });

    </script>


Thanks again for your help.
GeneralRe: Developing an election ballot box app. Pin
F-ES Sitecore25-Apr-16 4:49
professionalF-ES Sitecore25-Apr-16 4:49 
GeneralRe: Developing an election ballot box app. Pin
samflex25-Apr-16 5:49
samflex25-Apr-16 5:49 
GeneralRe: Developing an election ballot box app. Pin
F-ES Sitecore25-Apr-16 23:11
professionalF-ES Sitecore25-Apr-16 23:11 
GeneralRe: Developing an election ballot box app. Pin
Richard Deeming26-Apr-16 1:42
mveRichard Deeming26-Apr-16 1:42 
GeneralRe: Developing an election ballot box app. Pin
samflex26-Apr-16 5:59
samflex26-Apr-16 5:59 
GeneralRe: Developing an election ballot box app. Pin
Richard Deeming26-Apr-16 7:28
mveRichard Deeming26-Apr-16 7:28 
GeneralRe: Developing an election ballot box app. Pin
samflex28-Apr-16 8:04
samflex28-Apr-16 8:04 
GeneralRe: Developing an election ballot box app. Pin
Richard Deeming28-Apr-16 8:08
mveRichard Deeming28-Apr-16 8:08 
GeneralRe: Developing an election ballot box app. Pin
samflex28-Apr-16 9:59
samflex28-Apr-16 9:59 
GeneralRe: Developing an election ballot box app. Pin
Richard Deeming28-Apr-16 11:03
mveRichard Deeming28-Apr-16 11:03 
GeneralRe: Developing an election ballot box app. Pin
samflex28-Apr-16 11:58
samflex28-Apr-16 11:58 
GeneralRe: Developing an election ballot box app. Pin
Richard Deeming29-Apr-16 2:04
mveRichard Deeming29-Apr-16 2:04 
GeneralRe: Developing an election ballot box app (SOLVED). Pin
samflex2-May-16 3:22
samflex2-May-16 3:22 
QuestionUpdate progressbar with wcf webservice Pin
Member 1247474222-Apr-16 1:05
Member 1247474222-Apr-16 1:05 
SuggestionRe: Update progressbar with wcf webservice Pin
Richard Deeming22-Apr-16 1:15
mveRichard Deeming22-Apr-16 1:15 
Questionpls Help me..binding dropdown like Country,State,City..when im selecting any one country it showing me all country's state and city.. Pin
sunil321-Apr-16 0:28
sunil321-Apr-16 0:28 
AnswerRe: pls Help me..binding dropdown like Country,State,City..when im selecting any one country it showing me all country's state and city.. Pin
John C Rayan21-Apr-16 0:55
professionalJohn C Rayan21-Apr-16 0:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.