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 964663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:51:58+00:00 2026-05-16T01:51:58+00:00

– I’m using ASP.NET 3.5 . I have a page in which i want

  • 0

–
I’m using ASP.NET 3.5.
I have a page in which i want to display a list in a formatted way:

<asp:RadioButtonList runat="server" ID="Options">
    <asp:ListItem Text="Yes.<br /><span>Detailed info.</span>" />
    <asp:ListItem Text="No.<br /><span>Detailed info.</span>" />
</asp:RadioButtonList>

Now the somewhat obvious problem with this is that i can’t post this control to the server, because it will detect that the code contains potentially dangerous code (the html code inside the text property of the list items).
An alternative would be not to use a server control for this list, but i need that data on the server-side code, so i would prefer to keep it as a server control.

From my point of view, i don’t need to validate this specific control because none of that data will be persisted in any way, and none of that data interacts with any part of my application.
On the other hand, i do want to keep the ValidateRequest functionality for the rest of the page, so i can’t just set

<%@ Page ValidateRequest="false" ...

Question:

Is there any way to display data in such a way without getting this error?
Or is there any way in which i could disable the request validation feature only for that specific control? Something like

<myLibrary:myUserControl ValidateRequest="false" ...
  • 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-05-16T01:51:59+00:00Added an answer on May 16, 2026 at 1:51 am

    Don’t disable request validation. Just change your RadioButtonList:

    <asp:RadioButtonList ID="Options" runat="server">
        <asp:ListItem Value="Yes">Yes<br /><span>Detailed Info</span></asp:ListItem>
        <asp:ListItem Value="No">No<br /><span>Detailed Info</span></asp:ListItem>
    </asp:RadioButtonList>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a title <title>Text &#8211; text</title> I want to change it with jquery
I am using Simple.Data and have been trying to find an example that will
I have installed IIS. I have browsed to my website on IIS using the
When I view JSON data as an alert when the page loads, I see:
So to start, I have an array of XML files. These files need to
Here is the link to the offending page: http://www.wrightspecialty.com/brokers-agents-questionnaire.html?view=foxcontact There's a limitation to the
Have a webpage that will be viewed by mainly IE users, so CSS3 is
I'm interested in microtypography issues on the web. I want a tool to fix:
I have a simple restful service that transforms a JAXB-anntotated beans to response XML
When I execute the following query on http://dbpedia.org/sparql using (dotnetRDF) VDS.RDF.Query.SparqlRemoteEndpoint.QueryWithResultSet() everything works fine.

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.