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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:52:55+00:00 2026-06-04T14:52:55+00:00

I have a dialog popup with a textearea, two listboxes and one button. By

  • 0

I have a dialog popup with a textearea, two listboxes and one button. By selecting a value in the first listbox and pressing the button “>” the selected value is passed to the second listbox. This is done with asp.net ajax.

<td>
    <div align="center">
           <textarea style="height:50px; overflow:hidden;";rows="20"
              cols="40"
              id="editor1" 
              class="tinymce">
           </textarea>
    </div>
</td>

I put the 2 listboxes and the button between asp.net uploadpanel. Like this:

<td>
                        <asp:UpdatePanel runat="server" id="updatePanel1">
                            <ContentTemplate>
                            <table width="100%" align="left">
                                            <tr>
                                                <td colspan="5">
                                                    <hr align="left" style="width:95%" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <cc1:SWCListBox
                                                        ID="SWCListBox1" 
                                                            runat="server" 
                                                            Width="100"
                                                            SelectionMode="Single" 
                                                            CssClass="VW1">

                                                        </cc1:SWCListBox>
                                                </td>
                                                <td 
                                                    valign="top" 
                                                    width="50" 
                                                    align="center">
                                                    <cc1:SWCButton
                                                        Text=" > " 
                                                        ID="SWCBtnAddValue" 
                                                        CssClass="VW1 VWButton" 
                                                        runat="server" 
                                                        ToolTip="Add to list"
                                                        OnClick="AddValue_Click"
                                                        CausesValidation="false"
                                                        />

                                                <td valign="top">
                                                            <cc1:SWCListBox
                                                                id="SWCListBox2"
                                                                CssClass="VW1" 
                                                                runat="server" 
                                                                Width="100" 
                                                                SelectionMode="Single"
                                                        />

                                                </td>
                                                </tr>
                                        </table>
                                      </ContentTemplate>
                                    </asp:UpdatePanel>

The probles is that when I type something in the textarea and make an async postback the text typed fades.

How can I keep the textarea value within async postbacks?
thank you.

  • 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-04T14:52:57+00:00Added an answer on June 4, 2026 at 2:52 pm

    This problem is because you use UpdatePanel, and the textarea is not an asp.net control. You have two solutions.

    1) Make it asp.net control by placing the run=”server” (or)
    2) Place the post back value manually as:

    <div align="center">
           <textarea style="height:50px; overflow:hidden;";rows="20"
              cols="40"
              id="editor1" 
              name="editor_1"
              class="tinymce">
           <asp:Literal runat="server" id="txtEditor1" />
           </textarea>
    </div>
    

    and on code behind

    txtEditor1.Text = Server.HtmlEncode(Request.Form["editor_1"].ToString());
    

    (because you use UpdatePanel its important to use Literal to add this value and not use <%=%>, or else its throw an error.

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

Sidebar

Related Questions

I have a JQuery UI dialog popup that displays a form. By selecting certain
I currently have a popup dialog with a timetable inside it and a button
I have a dialog popup to indicate how long I want an activity to
I want it to have a popup dialog javascript box. Instead of a new
I have a JInternalFrame window that needs to popup a modal dialog box when
I have created some code to popup a confirm dialog if a user tries
I have a really odd behavior here: I created a little popup dialog in
I'm having some trouble with IE6 and jQuery UI. I have a popup dialog
I have subclassed Dialog in order to display a popup. This dialog contains a
I have a mainwindow app, when shortcut is triggered, a dialog will popup to

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.