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

ASP.NET

 
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 
GeneralRe: ASP user control and client scripting [modified] Pin
wilf572-Mar-07 3:35
wilf572-Mar-07 3:35 
Ok I got that. I read about it in the help too.

<form id="frmSuchen" runat="server" method="post">
<asp:TextBox ID="artnr" runat="server"></asp:TextBox>
<ucSod:sodat ID="sodatum" runat="server"/>
</form>

Now I tried this in the client script:
document.getElementById("<%=artnr.ClientID%>").value
document.getElementById("<%=sodatum.ClientID%>").value

the first statement with the textbox works fine, the second one with the user control doesn't it says:

document.getElementById("<%=sodatum.ClientID%>")is not an object.
and indeed when I execute on the server side (in page_load() or even aftzer loading in a button event:
Msgbox me.sodatum.ClientID
it always prints 'sodatum' and not 'sodatum_sodat' as I'd have expected.

any explainations?

Thanks for your patience

Wilfried




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 
AnswerRe: how to refresh the grid every 5 mins Pin
shirish7825-Feb-07 23:36
shirish7825-Feb-07 23:36 

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.