Avatar of TonyReba
TonyRebaFlag for United States of America

asked on 

Insert data to a database from a disdabled / readonly textbox

Hi,

I am using a web form to insert data in to the database My web form has a couple of disabled textboxes whose value is filled by pressing a button and which  I want to insert into the database.
ASP.NETC#

Avatar of undefined
Last Comment
Dave Baldwin
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

You have to 'enable' them or they won't be submitted.  http://www.w3schools.com/tags/att_input_disabled.asp
Avatar of TonyReba
TonyReba
Flag of United States of America image

ASKER

that not goof,,,,,, is there any trick I can do on jquery or other approach?

my web form has several textboes which get populated when the user hits lookout then he fills the rest of fields  and I need all go into a db....
ASKER CERTIFIED SOLUTION
Avatar of GlobaLevel
GlobaLevel
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

You can use hidden inputs plus display them in a separate <div> or <p> if they need to be seen but not edited.
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo