ASP.NET Wizard Control and textarea

Posted on 2006-05-09
Last Modified: 2013-11-25

I'm using the Wizard control in my ASP.NET C# website and I placed an HTML TEXTAREA object inside one of the pages in my wizard.  I'm having two issues with this:

1.  When the user presses "Next" and then presses "Back" all the control populate except for the textarea object.
2.  When the user presses "Finished", I insert the data into a SQL 2005 DB and I can't get access to the textarea data.

Can anyone help me with this?

Thanks in advance,

Question by:ichikuma
    LVL 1

    Accepted Solution

    Try <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>

    HTML Textarea no viewstate (?).

    Author Comment

    That seemed to work fine but now I'm having an issue with the TextBox.  When I created the textarea, I had some javascript attached to it so that when the user typed something in it, it would count how many characters are in the textarea and subtract that number from 500 to let the user know how many characters they have left in the textarea.  I was trying to duplicate the same behaviour with the TextBox and it doesn't allow me to catch the keypress event like the textarea does.

    Is there a way around this?

    Thanks again,

    LVL 1

    Expert Comment

    Found this:

    If it works, I'd sure like to use a similar one for my forms.
    Not sure how real-time server-sides work with javascript.  Will probably be featured on ATLAS/ajax somewhere.

    Good luck.

    Author Comment

    I actually found another solution, which seems to work but I think is IE specific.

    Thanks for your help,


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    This video discusses moving either the default database or any database to a new volume.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now