Solved

How to get my name of component static

Posted on 2011-09-30
2
179 Views
Last Modified: 2012-06-27
Hello Guys,

Does any one could help me with my asp.net.

I have a page using master page. Inside of my page a have some textbox. The problem is when i run my project and try to see the view source i got this result.

<input name="ctl00$MainContent$WebUserControl11$TextBox1" type="text" id="TextBox1" />

My name of my component has been changed and now I'm not able to use my javacript code .

I just would like to find my component using the normal name ( TextBox1).

Tks guys

0
Comment
Question by:Mortarello
[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 Comments
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 36895735
Hi,

If you want to use TextBox1 value in javascript, then you can use it by following way.

var getValue= document.getElementById( '<%= TextBox1.ClientID %>' );

Open in new window


For more details go through following link

http://www.dotnetfunda.com/articles/article72.aspx
0
 

Author Comment

by:Mortarello
ID: 36898621
Tks man..
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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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