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

ASP.NET

 
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 
GeneralRe: ASP user control and client scripting Pin
wilf5725-Feb-07 23:12
wilf5725-Feb-07 23:12 
Thanks for answering.

Sorry probably my description was not precise. I used the normal access methods already. My user control has the ID sodatum, so I try to access it by:

sodatum.value or
document.getElementById("sodatum").value

but it both returns null. There is another textbox on the same page, named 'artnr' and even another listbox too, both of them accessible.

It must be, because it's a user control. It's implemented in the following way:

<%@ Register TagPrefix="ucSod" TagName="sodat" Src="~/uc/sodatum.ascx" %>
<%@ Page Language="VB" CodeFile="Suche.aspx.vb" Inherits="Suche" %>

<script type ="text/ecmascript">
    alert(document.getElementById("artnr").value;
    alert(document.getElementById("sodatum").value;
</script>

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


I used '|' instead of '<' here, because otherwise it's not properly displayed in this forum message. In the code there are '<' of course.
The first alert works, the second doesn't.

Wilfried
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 
GeneralRe: problem in creating runtime controls Pin
sweetrooni25-Feb-07 18:57
sweetrooni25-Feb-07 18:57 

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.