Click here to Skip to main content
15,868,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Error message: The operation cannot be completed because the DbContext has been disposed Pin
Richard Deeming28-Jul-17 1:31
mveRichard Deeming28-Jul-17 1:31 
AnswerRe: Error message: The operation cannot be completed because the DbContext has been disposed Pin
Nathan Minier28-Jul-17 1:36
professionalNathan Minier28-Jul-17 1:36 
QuestionUnable to use RequiredValidator control to validate RadioButtonList in Repeater? Pin
samflex26-Jul-17 14:25
samflex26-Jul-17 14:25 
AnswerRe: Unable to use RequiredValidator control to validate RadioButtonList in Repeater? Pin
F-ES Sitecore26-Jul-17 22:45
professionalF-ES Sitecore26-Jul-17 22:45 
GeneralRe: Unable to use RequiredValidator control to validate RadioButtonList in Repeater? (SOLVE) Pin
samflex27-Jul-17 3:05
samflex27-Jul-17 3:05 
QuestionFew questions about web api versioning in core Pin
Mou_kol26-Jul-17 1:38
Mou_kol26-Jul-17 1:38 
QuestionEnable/Disable div based on RadiobuttonList Pin
samflex25-Jul-17 5:41
samflex25-Jul-17 5:41 
AnswerRe: Enable/Disable div based on RadiobuttonList Pin
F-ES Sitecore25-Jul-17 6:30
professionalF-ES Sitecore25-Jul-17 6:30 
First thing you need to appreciate is that jQuery runs on the client, it does not run from your aspx file, the aspx file is simply a guide to what html the client will eventually get. This code

$('#rblPurchaseType input').change(function () {


looks at any "input" element inside something with an id of rblPurchaseType. View the page source (what jQuery is running from), and do you see any elements with an id of rblPurchaseType?

The id you specify in your aspx page is *not* the id used in the html. You can either use fairly complex code to get the proper ids, or use a simpler way of identifying the elements you want.

<asp:Repeater ID="repeaterItems" runat="server">
    <ItemTemplate>
            Purchased:<asp:radiobuttonlist ID="rblPurchaseType" runat="server" RepeatDirection="Horizontal" TextAlign="Right" data-id="rblPurchaseType" style="display:inline;">
                <asp:ListItem Text="New" />
                <asp:ListItem Text="Used" />
            </asp:RadioButtonList>
        </ItemTemplate>
</asp:Repeater>

<script>
    $(document).ready(function () {
        $("[data-id='rblPurchaseType'] input").change(function () {

        });
    });
</script>


This code attaches a "data-id" attribute to the outer table that will wrap your components and that attribute is used rather than the element's id. You are going to have a similar problem with your purchaseNewUsed div.
AnswerRe: Enable/Disable div based on RadiobuttonList Pin
Richard Deeming25-Jul-17 6:50
mveRichard Deeming25-Jul-17 6:50 
GeneralRe: Enable/Disable div based on RadiobuttonList (SOLVED) Pin
samflex25-Jul-17 9:32
samflex25-Jul-17 9:32 
QuestionVisual Studio & Asp.Net in Web Forms Bad Design view Pin
zequion23-Jul-17 2:23
professionalzequion23-Jul-17 2:23 
QuestionTable resizing in MVC bootstrap Pin
Member 1075459521-Jul-17 7:31
Member 1075459521-Jul-17 7:31 
AnswerRe: Table resizing in MVC Pin
Member 1075459527-Jul-17 10:44
Member 1075459527-Jul-17 10:44 
QuestionResponse.Cache, Code Location Pin
jkirkerx17-Jul-17 9:24
professionaljkirkerx17-Jul-17 9:24 
AnswerRe: Response.Cache, Code Location Pin
Richard Deeming17-Jul-17 10:09
mveRichard Deeming17-Jul-17 10:09 
GeneralRe: Response.Cache, Code Location Pin
jkirkerx18-Jul-17 7:38
professionaljkirkerx18-Jul-17 7:38 
QuestionUsing Visual Studio to debug iHTTPHandler routines Pin
Member 839420716-Jul-17 21:26
Member 839420716-Jul-17 21:26 
Questionwhat is default concurrent requests settings in IIS 8.5 Pin
bhavin chheda16-Jul-17 2:02
bhavin chheda16-Jul-17 2:02 
AnswerRe: what is default concurrent requests settings in IIS 8.5 Pin
Richard MacCutchan16-Jul-17 2:42
mveRichard MacCutchan16-Jul-17 2:42 
QuestionPassword Field Padding with Question Marks (?s) Pin
ftbadolato7615-Jul-17 15:05
ftbadolato7615-Jul-17 15:05 
AnswerRe: Password Field Padding with Question Marks (?s) Pin
Richard MacCutchan15-Jul-17 20:52
mveRichard MacCutchan15-Jul-17 20:52 
GeneralRe: Password Field Padding with Question Marks (?s) Pin
ftbadolato7616-Jul-17 3:36
ftbadolato7616-Jul-17 3:36 
GeneralRe: Password Field Padding with Question Marks (?s) Pin
Richard MacCutchan16-Jul-17 5:43
mveRichard MacCutchan16-Jul-17 5:43 
GeneralRe: Password Field Padding with Question Marks (?s) Pin
Nathan Minier17-Jul-17 1:15
professionalNathan Minier17-Jul-17 1:15 
AnswerRe: Password Field Padding with Question Marks (?s) Pin
Richard Deeming17-Jul-17 1:40
mveRichard Deeming17-Jul-17 1:40 

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.