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

  • Home
  • SEARCH
  • 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 84147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:53:06+00:00 2026-05-10T21:53:06+00:00

I’ve got a form inside an <asp:Content> block that is being submitted to a

  • 0

I’ve got a form inside an <asp:Content> block that is being submitted to a controller. For one of the controls, I need to get some information from it directly that won’t happen automatically by calling UpdateModel().

However, in the Request.Form dictionary, the control’s id is of the mangled form ctl00$ContentPlaceHolder${name}. Given that I’m in the controller, and know nothing about the view at this point, what is the proper way of accessing the control’s data?

Here is what the view (.aspx) looks like (removed extraneous code):

<%@ Register Assembly='FredCK.FCKeditorV2' Namespace='FredCK.FCKeditorV2' TagPrefix='FCKeditorV2' %>  <%@ Page Title='' Language='C#' MasterPageFile='~/Views/Shared/Admin.Master' AutoEventWireup='true'     CodeBehind='....' Inherits='....' %>  <asp:Content ID='Content3' ContentPlaceHolderID='ContentPlaceHolder' runat='server'>      <form id='form1' action='...' method='post'>              <FCKeditorV2:FCKeditor ID='AuthorBio' runat='server' Height='250'/>             <input type='submit' value='Save' />     </form>  </asp:Content> 

The control named AuthorBio shows up in the controller in the Form.Request dictionary as ctl00$ContentPlaceHolder$AuthorBio$

The reason I’m trying to use the 3rd-party control with ‘runat-server’ is because I need to set the editor’s Value as follows:

AuthorBio.Value = HttpUtility.HtmlDecode(ViewData.Model.Bio); 

Trying to do this in the .aspx file in the FCKeditorV2 tag doesn’t work. (Or maybe I’m missing something there too)

Ok, so the key is to use the JavaScript version of the editor rather than the wrapped control. There was also a handy comment that I’m going to include here to accompany the accepted answer:

you should use the javascript version of the FCKEditor control not the .NET custom control as the .NET custom control was built on the WebForms paradigm. The JS version should have a hidden field for the value of the Html which you can access in your controller using Request[‘FieldName’]

  • 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. 2026-05-10T21:53:07+00:00Added an answer on May 10, 2026 at 9:53 pm

    FCKEditor is a standard javascript library that also comes wrapped in an ASP.NET control for Webforms. So it would be easier to use the FCKEditor javascript without the ASP.NET control. It will be easier to integrate into MVC that way.

    If you must use the ASP.NET control version then you will have these kinds of issues. But one solution is to place the FCKeditor on a standard webforms page and then show that in a dialog using something like Greybox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 130k
  • Answers 130k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I don't think it can be done using the IDE… May 12, 2026 at 6:03 am
  • Editorial Team
    Editorial Team added an answer The most important advise I can give you is to… May 12, 2026 at 6:03 am
  • Editorial Team
    Editorial Team added an answer Usually hosting providers allow you to backup and restore your… May 12, 2026 at 6:03 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.