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

ASP.NET

 
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 
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 
You are completely missing the point.

Use the ClientID property to get the name to use in the client code.

If you hard code the name, your code only works with the exact structure that your page has. If anything changes in that structure, the name changes. Also, you can only use the code for that single page, you can't put the user control in another page if it doesn't have the exact same structure.

Also, if you deply the application to a web server, it's not certain that it will use the same pattern to create the name. An update of IIS or the framework may also change the way that the name is constructed.

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

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 
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 

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.