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

ASP.NET

 
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 
wilf57 wrote:
I wrote a public property (Text) in the user control, so I can read and write the listbox(the one in the user control) on the server side but that doesn't help on the page client side, right?!


The property is not for use on the client side, but on the server side.

wilf57 wrote:
So you say in the page client script I cannot access the listbox inside the user control by its ClientID property , only by the hard coded ID.


You can never access a control from the client side, regardless of where it is. The control only exists on the server side, the only thing that is left of it on the client side is the html elements that it renders.

The concept of a user control doesn't exist on the client side. You can access any element in the page, regardless of how the code for it is created on the server.

What you have to do is simply get access to the right control so that you can get the ClientID for it, then you can use that in the client code to access the control without problem.

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

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 
GeneralRe: problem in creating runtime controls Pin
sweetrooni25-Feb-07 18:57
sweetrooni25-Feb-07 18:57 
GeneralRe: problem in creating runtime controls Pin
Venkatesh Mookkan25-Feb-07 19:39
Venkatesh Mookkan25-Feb-07 19:39 
AnswerRe: problem in creating runtime controls Pin
A.R.Bhagirathi26-Feb-07 17:59
A.R.Bhagirathi26-Feb-07 17:59 
Questionhow to refresh the grid every 5 mins Pin
ramyasangeet24-Feb-07 20:21
ramyasangeet24-Feb-07 20:21 
AnswerRe: how to refresh the grid every 5 mins Pin
coolestCoder24-Feb-07 20:59
coolestCoder24-Feb-07 20:59 
AnswerRe: how to refresh the grid every 5 mins Pin
Snews25-Feb-07 19:05
Snews25-Feb-07 19:05 
AnswerRe: how to refresh the grid every 5 mins Pin
shirish7825-Feb-07 23:36
shirish7825-Feb-07 23:36 
QuestionTo get Tooltip in the radgrid Pin
chatrathi24-Feb-07 16:38
chatrathi24-Feb-07 16:38 
AnswerRe: To get Tooltip in the radgrid Pin
Christian Graus25-Feb-07 9:14
protectorChristian Graus25-Feb-07 9:14 
Questioncom1\ASPNET LOG ON FAILED !!! Please help! Pin
Qobil24-Feb-07 7:50
Qobil24-Feb-07 7:50 

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.