Click here to Skip to main content
15,914,452 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Formatting the listbox control.. Pin
MIHAI_MTZ25-Feb-07 20:49
MIHAI_MTZ25-Feb-07 20:49 
GeneralRe: Formatting the listbox control.. Pin
bgriffin_tpa26-Feb-07 6:13
bgriffin_tpa26-Feb-07 6:13 
Questionhow to create tab control in asp.net Pin
mr.mohsen25-Feb-07 9:09
mr.mohsen25-Feb-07 9:09 
AnswerRe: how to create tab control in asp.net Pin
Christian Graus25-Feb-07 9:13
protectorChristian Graus25-Feb-07 9:13 
Questionweb service Pin
Tkml23625-Feb-07 8:08
Tkml23625-Feb-07 8:08 
AnswerRe: web service Pin
Christian Graus25-Feb-07 9:13
protectorChristian Graus25-Feb-07 9:13 
QuestionASP user control and client scripting Pin
wilf5725-Feb-07 2:54
wilf5725-Feb-07 2:54 
AnswerRe: ASP user control and client scripting Pin
Guffa25-Feb-07 3:47
Guffa25-Feb-07 3:47 
View the source of the page, and you will see that the id of the element is not just "element", but the name of other controls has been prepended to the name.

Use the ClientID property to get the full id that you can use in client code.

I recommend that you use the document.getElementById method instead of just referring to the elements as if they were global variables. It works in most browser in most of the cases, but not always.

A common shorthand for the getElementById is the $ function:

function $(id) { return document.getElementById(id); }

---
single minded; short sighted; long gone;

GeneralRe: ASP user control and client scripting Pin
wilf5725-Feb-07 23:12
wilf5725-Feb-07 23:12 
AnswerRe: ASP user control and client scripting Pin
Guffa26-Feb-07 15:12
Guffa26-Feb-07 15:12 
AnswerRe: ASP user control and client scripting [modified] Pin
wilf5726-Feb-07 3:28
wilf5726-Feb-07 3:28 
AnswerRe: ASP user control and client scripting Pin
Guffa26-Feb-07 15:09
Guffa26-Feb-07 15:09 
GeneralRe: ASP user control and client scripting Pin
wilf5728-Feb-07 9:44
wilf5728-Feb-07 9:44 
GeneralRe: ASP user control and client scripting Pin
Guffa1-Mar-07 6:01
Guffa1-Mar-07 6:01 
GeneralRe: ASP user control and client scripting [modified] Pin
wilf572-Mar-07 3:35
wilf572-Mar-07 3:35 
AnswerRe: ASP user control and client scripting Pin
Guffa2-Mar-07 8:36
Guffa2-Mar-07 8:36 
GeneralRe: ASP user control and client scripting Pin
wilf572-Mar-07 11:31
wilf572-Mar-07 11:31 
AnswerRe: ASP user control and client scripting Pin
Guffa2-Mar-07 14:11
Guffa2-Mar-07 14:11 
QuestionCustom DataGrid display Pin
SunsOfFun25-Feb-07 2:11
SunsOfFun25-Feb-07 2:11 
AnswerRe: Custom DataGrid display Pin
asithangae25-Feb-07 18:13
asithangae25-Feb-07 18:13 
AnswerRe: Custom DataGrid display Pin
Venkatesh Mookkan25-Feb-07 19:35
Venkatesh Mookkan25-Feb-07 19:35 
AnswerRe: Custom DataGrid display Pin
Tuwing.Sabado25-Feb-07 21:27
Tuwing.Sabado25-Feb-07 21:27 
Questionproblem in creating runtime controls Pin
sweetrooni24-Feb-07 23:24
sweetrooni24-Feb-07 23:24 
AnswerRe: problem in creating runtime controls Pin
Guffa25-Feb-07 1:58
Guffa25-Feb-07 1:58 
AnswerRe: problem in creating runtime controls Pin
A.R.Bhagirathi25-Feb-07 18:12
A.R.Bhagirathi25-Feb-07 18:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.