Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
samflex wrote:
we used DataList to display the positions

So writeIn is defined within the ItemTemplate of a DataList?

In that case, there won't be a field in the code-behind to represent it, because there could be any number of instances of the control.

Your name='RadioButtonList1' also won't work, as there will be multiple instances of that control as well, and each one will have a different name.

Use the Visible property on the TextBox to hide it on irrelevant sections:
aspx
<TextBox ID="writeIn" runat="server"
    Visible='<%# ShowWiteInOnSection(Eval("SectionID")) %>'
/>

Move the script outside of the list, and change it to something like:
JavaScript
$(document).ready(function () {
    $("input:radio[name$='RadioButtonList1']").click(function(){
        $(this).closest("table").parent().find("input[name$='writeIn']").toggle(this.value === '27');
    });
});




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


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 
Questionc# Image Processing from byte[] to image, centering the image on a square canvas Pin
jkirkerx20-Apr-16 13:47
professionaljkirkerx20-Apr-16 13:47 
AnswerRe: c# Image Processing from byte[] to image, centering the image on a square canvas Pin
Richard Deeming21-Apr-16 2:40
mveRichard Deeming21-Apr-16 2:40 
GeneralRe: c# Image Processing from byte[] to image, centering the image on a square canvas [solved] Pin
jkirkerx21-Apr-16 9:09
professionaljkirkerx21-Apr-16 9:09 
QuestionPls help getting error..The name 'ObjectFactory' does not exist in the current context Pin
sunil319-Apr-16 21:37
sunil319-Apr-16 21:37 

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.