473,396 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How To Get Text Value In A String?

nirmalsingh
218 100+
i have loaded a set of array values dynamically in text box from a database like this:
//Response.Write("<input type=text value="+stredit[i]+">");//
then i have kept a save button:
//Response.Write("<input type=button value=Save >");//
----------------------------------------------------------------------------------------------------------------
UPTO THIS WORKING WELL.
now i want to alter the data in text and save to database. i just want to know how to get altered text value in a string.
PLZ ANY ONE HELP ME WITH SAMPLE CODE.
Nov 28 '06 #1
3 3559
nirmalsingh
218 100+
i have loaded a set of array values dynamically in text box from a database like this:
//Response.Write("<input type=text value="+stredit[i]+">");//
then i have kept a save button:
//Response.Write("<input type=button value=Save >");//
----------------------------------------------------------------------------------------------------------------
UPTO THIS WORKING WELL.
now i want to alter the data in text and save to database. i just want to know how to get altered text value in a string.
PLZ ANY ONE HELP ME WITH SAMPLE CODE.
Nov 28 '06 #2
r035198x
13,262 8TB
i have loaded a set of array values dynamically in text box from a database like this:
//Response.Write("<input type=text value="+stredit[i]+">");//
then i have kept a save button:
//Response.Write("<input type=button value=Save >");//
----------------------------------------------------------------------------------------------------------------
UPTO THIS WORKING WELL.
now i want to alter the data in text and save to database. i just want to know how to get altered text value in a string.
PLZ ANY ONE HELP ME WITH SAMPLE CODE.
You give the input a name using name = "something"
Then when you do
Expand|Select|Wrap|Line Numbers
  1.  value = document.forms[formName].something.value;
you get the textbox's value into the variable value.
Nov 28 '06 #3
AricC
1,892 Expert 1GB
Please don't double post. If your not getting a reply to your initial post make a reply to the initial post.
Nov 28 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Eric Lilja | last post by:
Hello, I have a text file that contains a number of entries describing a recipe. Each entry consists of a number of strings. Here's an example file with only one entry (recipe): Name=Maple Quill...
5
by: nboutelier | last post by:
Scenario: you enter "foo bar" into a text field... Is it possible through javascript to select/highlight just "foo"? formObject.select() selects all. I need to select only part of the string....
7
by: jez123456 | last post by:
Hi, I have the following method where I need to display which database is being processed, however, the label lblDatabase dosn't seem to work until the end. private void...
14
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I...
12
by: Adam J. Schaff | last post by:
I am writing a quick program to edit a binary file that contains file paths (amongst other things). If I look at the files in notepad, they look like: ...
2
by: jason | last post by:
hello. i am just trying to save a TextBox.Text value to a database, but strangely, when the value is changed on the web form, the changes are not recognized in the event where i try to save the...
5
by: CCLeasing | last post by:
Hello, I have searched google but can not find a straight forward answer to my problem. Hopefuly someone will be kind enough to offer their expertise. Please forgive if this seems a bit convoluted...
1
by: Darsin | last post by:
What i am doing is to pull the data from a CMS and import it to Word 2007 Beta and i also have to export the data from Word 2007 Beta back to that CMS. We have with us two Web Services of the CMS....
4
by: hemricc2 | last post by:
I have the following simple page. I need to select the BARCODE text field everytime the page refreshes. I know this is pretty basic, but I'm just starting with Javascript. Thanks for the help. ...
1
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.