How To Get Text Value In A String?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    How To Get Text Value In A String?

    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.
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    #2
    How To Get Text Value In A String?

    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.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by nirmalsingh
      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
      Code:
       value = document.forms[formName].something.value;
      you get the textbox's value into the variable value.

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        Please don't double post. If your not getting a reply to your initial post make a reply to the initial post.

        Comment

        Working...