Solved

How to get my name of component static

Posted on 2011-09-30
2
175 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
2 Comments
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
Comment Utility
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
Comment Utility
Tks man..
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now