Results 1 to 6 of 6

Thread: rename input text

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    51
    Hi all,

    I need to rename the input text field, eg. text.htm to text.asp. I think I have seem this post on here a month ago, but was not able to search it. Any lead lead to the right direction will be most appreciate.

    thanks

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    rename a text field or a filename? Do you actually have a text field named text.htm?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I am going to assume you want to dynamically change the name attribute of a text field. with javascript you could do it this way.


    document.formname.textfieldname.name = "new name"
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    51
    rename the text field...not filename.

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    saee above and tell me if thats not what you are looking for. If it isnt , please explain a little further what you are trying to accomplish.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    51
    thank-you for your help, I find the answer with replace function.

    Replace(expression, find, replacewith[, start[, count[, compare]]])

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width