Solved

change asp.net textbox name value

Posted on 2014-07-25
4
121 Views
Last Modified: 2014-07-27
$("#<%=APT1.ClientID%>").attr("name")($("#SecureType1").val());

$("#<%=APT2.ClientID%>").val($("#SecureType2").val());

Open in new window


I can change the value, is there a way to change the name?
0
Comment
Question by:sevensnake77
[X]
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
4 Comments
 
LVL 82

Accepted Solution

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

Open in new window

0
 
LVL 9

Author Comment

by:sevensnake77
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
0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 500 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

0
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 40222881
Thanks again my friend.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

696 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