Link to home
Start Free TrialLog in
Avatar of ichikuma
ichikumaFlag for United States of America

asked on

ASP.NET Wizard Control and textarea

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
ASKER CERTIFIED SOLUTION
Avatar of PAR6
PAR6

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ichikuma

ASKER

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
Avatar of PAR6
PAR6

Found this: https://www.experts-exchange.com/questions/21636273/How-can-i-count-characters-in-a-text-field-dynamically.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.
I actually found another solution, which seems to work but I think is IE specific.

https://www.experts-exchange.com/questions/21110735/Textbox-TextChanged-issus.html?query=textbox+TextChanged&clearTAFilter=true

Thanks for your help,

Craig