change asp.net textbox name value

Posted on 2014-07-25
Medium Priority
Last Modified: 2014-07-27


Open in new window

I can change the value, is there a way to change the name?
Question by:Seven price
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 82

Accepted Solution

leakim971 earned 2000 total points
ID: 40220099
var newName = $("#SecureType1").val();
$("#<%=APT1.ClientID%>").attr("name", newName );

Open in new window


Author Comment

by:Seven price
ID: 40220345
ok but when I run it on the server the value i can see in the dom but it will not pass to the server
LVL 82

Assisted Solution

leakim971 earned 2000 total points
ID: 40220429
why are you choosing .net technology if you want to hack it behind ?
create a true input instead a texbox (or anything it's)

<input name="nameOfYourChoiceToHackOrNot" value="foo" />

Open in new window


Author Closing Comment

by:Seven price
ID: 40222881
Thanks again my friend.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question