mvcwannab's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
17 (0.02 per day)
Joined:
26-July 12
Profile Views:
1,126
Last Active:
User is offline Dec 19 2012 12:57 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
Playstation
Your Car:
Chevrolet
Dream Kudos:
0
Icon   mvcwannab has not set their status

Posts I've Made

  1. In Topic: Retrieving control using javascript given a control's id

    Posted 14 Dec 2012

    I'm trying to find the object based on the ID that was passed into the function from the UC. For now, I'm working around this by using a rarely used property on an input button to store the clientID of the new object.
    I was looking for something simlar to
    var someValue = '<%=sTxtName.ClientID%>';
    
    
  2. In Topic: Retrieving control using javascript given a control's id

    Posted 14 Dec 2012

    That is a typo in the example. The reason that the code isn't working is because txt + someValue is just the ID of the control and not the ClientID. document.getElementById looks at clientIDs, which are the fully qualified (for lack of a better term at this moment) name, such as pMain_ctl00_etc. Is there a way in javascript to find a control given a controls ID, or a way to get the clientID of a control given the ID?
    In the server side code, I could find the control by using the parent's control.findcontrol function, however I'm trying to keep from posting back to the server to accomplish this task.

My Information

Member Title:
New D.I.C Head
Age:
39 years old
Birthday:
June 13, 1975
Gender:
Location:
Kornville
Full Name:
shawn gilligan
Years Programming:
15
Programming Languages:
c#, vb, c++

Contact Information

E-mail:
Private
Jabber:
Jabber  todywif@yahoo.com

Friends

mvcwannab hasn't added any friends yet.

Comments

mvcwannab has no profile comments yet. Why not say hello?