?
Solved

ASP.NET Wizard Control and textarea

Posted on 2006-05-09
4
Medium Priority
?
775 Views
Last Modified: 2013-11-25
Hi,

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,

Craig
0
Comment
Question by:ichikuma
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
PAR6 earned 1000 total points
ID: 16642034
Try <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>

HTML Textarea no viewstate (?).
0
 

Author Comment

by:ichikuma
ID: 16642306
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,

Craig
0
 
LVL 1

Expert Comment

by:PAR6
ID: 16642514
Found this: http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21636273.html

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 asp.net ATLAS/ajax somewhere.

Good luck.
0
 

Author Comment

by:ichikuma
ID: 16642784
I actually found another solution, which seems to work but I think is IE specific.

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21110735.html?query=textbox+TextChanged&clearTAFilter=true

Thanks for your help,

Craig
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

862 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