469,591 Members | 2,068 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,591 developers. It's quick & easy.

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 3354
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

Post your reply

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

Similar topics

7 posts views Thread by jez123456 | last post: by
12 posts views Thread by Adam J. Schaff | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.