Click to See Complete Forum and Search --> : a Javascript problem


Shammam Khan
September 26th, 2005, 06:19 AM
Hi
I m devloping a site in ASP.Net using VB.Net.There is a problem I m facing.

When I disable a textbox control using javascript and write some string in this textbox and then get this textbox value from Vb.Net then I unable to get that disabled textbox value.

How can I solved this problem

Please help

PeejAvery
September 26th, 2005, 06:49 AM
Disable or hide? Instead, use a hidden input.

Dr. Script
September 26th, 2005, 05:57 PM
Assuming this occurs when you submit the form, it is because disabled fields aren't submitted with enabled fields. Use the onsubmit event handler to enable the text box for submission, which would then no longer generate an error.