Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8526447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:16:31+00:00 2026-06-11T08:16:31+00:00

Why by clicking on the radio button disappears the style (from css) and the

  • 0

Why by clicking on the radio button disappears the style (from css) and the menu-bar of the page? Only the content of the page are shown.

This is the page

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" >
    <% using (Html.BeginForm("Top100_AllerTijden", "Top100", FormMethod.Post, new { id = "frmTop100" })) %>
    <% { %>
        <table>
            <tr><th width="1000" align="left">Selecteer jaar:</th></tr>
            <tr>
                <td>
                <%= Html.RadioButton("Overzicht", "S", new
                    {
                        @onclick = "document.getElementById('frmTop100').submit();"
                    }) %> Singlesoverzicht
                </td>
            </tr>
            <tr>
                <td>
                <%= Html.RadioButton("Overzicht", "A", new
                    {
                        @onclick = "document.getElementById('frmTop100').submit();"
                    })%> Albumsoverzicht
                </td>
            </tr>
        </table>
        <br />
        <br />
        <div>
             <%= Html.Action("Top100_AllerTijden", new { AOverzicht = ViewBag.Overzicht })%> <br />   
        </div>
    <% } %>
</asp:Content>

The UserControl inside:

<table>
    <tr>
        <th width="75" align="right" valign="top">Notering</th>
        <th width="750">Titel<br />&nbsp;&nbsp;&nbsp;&nbsp;Artiest</th>
        <th width="50" align="center" valign="bottom">Product</th>
        <th width="50" align="center" valign="bottom">Jaar</th>
    </tr>

    <% foreach (var item in Model) { %>
        <% if (item.Notering == 1)
           {  
               %> 
            <tr class="notering_1">
                <td width="75" align="right" valign="top"><%: item.Notering%></td>
                <td width="750"><%: item.Titel%><br />&nbsp;&nbsp;&nbsp;&nbsp;<%: item.Artiest%></td>
                <% if (item.Product == "N")
                    { %>
                    <td width="50" align="center" valign="bottom">
                        <img src="<%= Url.Content( "~/images/Nederland.jpg" ) %>" 
                             alt="alt text" height="16" width="16"  />
                    </td>
                <% }
                   else if (item.Product == "B")
                   { %>
                    <td width="50" align="center" valign="bottom">
                        <img src="<%= Url.Content( "~/images/België.jpg" ) %>" 
                                 alt="alt text" height="16" width="16"  />
                    </td>
                <% }
                   else
                   { %>
                    <td width="50" align="center" valign="bottom"></td>
                <% } %>                
            <td width="50" align="right" valign="bottom"><%: item.Jaar%></td>
            </tr>
        <% } else { %>        
            <tr>
                <td width="75" align="right" valign="top"><%: item.Notering %></td>
                <td width="750"><%: item.Titel %><br />&nbsp;&nbsp;&nbsp;&nbsp;<%: item.Artiest %></td>
                 <% if (item.Product == "N")
                   { %>
                    <td width="50" align="center" valign="bottom">
                        <img src="<%= Url.Content( "~/images/Nederland.jpg" ) %>" 
                             alt="alt text" height="16" width="16"  />
                    </td>
                <% }
                   else if (item.Product == "B")
                   { %>
                    <td width="50" align="center" valign="bottom">
                        <img src="<%= Url.Content( "~/images/België.jpg" ) %>" 
                                 alt="alt text" height="16" width="16"  />
                    </td>
                <% }
                   else
                   { %>
                    <td width="50" align="center" valign="bottom"></td>
                <% } %>
                <td width="50" align="right" valign="bottom"><%: item.Jaar %></td>
            </tr>
        <% } %>
    <% } %>
</table>

The methods in the Controller

[HttpPost]
public ActionResult Top100_AllerTijden(FormCollection ACollection)
{
    string sOverzicht= ACollection["Overzicht"].ToString();
    return Top100_AllerTijden(sOverzicht);
}

public ActionResult Top100_AllerTijden(string AOverzicht)
{
    ReadTop100At(AOverzicht);

    return View(_ListTop100Model);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:16:33+00:00Added an answer on June 11, 2026 at 8:16 am

    Your Top100_AllerTijden view seems to be a partial view only. Your Page uses

    <%= Html.Action("Top100_AllerTijden", new { AOverzicht = ViewBag.Overzicht })%>
    

    to render the list of entries as a partial view. You should redirect to the action which shows the complete page instead of returning the result of Top100_AllerTijden in your POST action..

    [HttpPost]
    public ActionResult Top100_AllerTijden(FormCollection ACollection)
    {
        string sOverzicht= ACollection["Overzicht"].ToString();
        return RedirectToAction("NameOfTheActionWhichDisplaysTheWholePage", new { overzicht = sOverzicht })
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting NaN error while clicking radio button first. The page have a3
How to disable the change of style when clicking on radio button? On click
I have two hidden radio buttons and one visible button. Clicking this button should
I have a radio button set called pick_up_point. There are 3 options and clicking
Is it possible to disable standard action being performed while clicking radio button? (without
So I'm trying to write an interactive form, where clicking a radio button will
Problem: To obtain the id from a radio button using jQuery on click or
I'm using this piece of jQuery to add radio button behavior to checkboxes, i.e.
I have 4 radio buttons in one group. Upon clicking the radio button the
Upon clicking on a link, I am bringing in some images from a JSON

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.