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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:58:13+00:00 2026-06-02T23:58:13+00:00

I have a cleEditor on my page which needs rows= cols= and asp.net does

  • 0

I have a cleEditor on my page which needs rows=”” cols=”” and asp.net does not like this when I do runat=”Server”

To get around this I was trying to use FindControl, but I cannot seem to grab the value this way.

Here is my code:

protected void os_submit_Click ( object sender, EventArgs e )
{
    Control cleEditor = FindControl( "editor2" );
    MailMessage mm = new MailMessage( "OnlineSignup@help.com", "help@help.com" );
    mm.Subject = "Online Signup Checklist";
    mm.Body = cleEditor.value; // Trying to grab the value of the textarea
    mm.IsBodyHtml = true;
    SmtpClient smtp = new SmtpClient();
    smtp.Host = "127.0.0.1";
    smtp.Port = 25;
    smtp.Send( mm );
}

I have a TextArea that has the id of editor2. Behind the scense jquery turns this into a rich text editor. I need asp.net to be able to grab the value/text of this textarea.

Can anyone see what I am doing wrong?

  • 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-02T23:58:15+00:00Added an answer on June 2, 2026 at 11:58 pm

    Don’t put runat="server" on the TextArea and do this:

    protected void os_submit_Click ( object sender, EventArgs e )
    {
        MailMessage mm = new MailMessage( "OnlineSignup@help.com", "help@help.com" );
        mm.Subject = "Online Signup Checklist";
        mm.Body = Request.Form["editor2"]; // Trying to grab the value of the textarea
        mm.IsBodyHtml = true;
        SmtpClient smtp = new SmtpClient();
        smtp.Host = "127.0.0.1";
        smtp.Port = 25;
        smtp.Send( mm );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have something like this <h1> I am Text </h1> in asp.net MVC If
We have a CKEditor in place, on a ASP.Net MVC 3 page: var editor
I have a CKEditor in my page. Like this <h:head> <title>Facelet Title</title> <script type=text/javascript
Does anybody know about CKEditor, I have integrated this application in my web app.
Purpose is to have a small icon on my admin page. Clicking this icon
I have a one textarea's on my page which is located on the left.
I have an ASP.NET MVC application and I'm using CKEditor for text entry. I
I have used CKEditor in my ASP.NET pages. But after than, that pages are
I have a SQL database with a ntext field which holds page content. I
I have this rule in my stylesheet: input:not([type='button']):not([type='submit']):not([type='checkbox']):not([type='radio']), select { padding:8px; width:224px; border:1px solid

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.