Click here to Skip to main content
16,005,552 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: javascript Pin
RichardGrimmer1-Jun-07 4:32
RichardGrimmer1-Jun-07 4:32 
GeneralRe: javascript Pin
Fred_Smith1-Jun-07 4:37
Fred_Smith1-Jun-07 4:37 
GeneralRe: javascript Pin
RichardGrimmer1-Jun-07 4:55
RichardGrimmer1-Jun-07 4:55 
AnswerRe: javascript Pin
Not Active1-Jun-07 3:05
mentorNot Active1-Jun-07 3:05 
GeneralRe: javascript Pin
RichardGrimmer1-Jun-07 4:33
RichardGrimmer1-Jun-07 4:33 
GeneralRe: javascript Pin
Not Active1-Jun-07 4:57
mentorNot Active1-Jun-07 4:57 
GeneralRe: javascript Pin
RichardGrimmer1-Jun-07 5:36
RichardGrimmer1-Jun-07 5:36 
AnswerRe: javascript Pin
Christian Graus1-Jun-07 10:40
protectorChristian Graus1-Jun-07 10:40 
kvijayajyothy wrote:
alert(Text1.value)}


This doesn't work for two reasons:

1 - Text1 exists on the server, not the client
2 - If Text1 is a server side control, the framework generates it's own Id for the client.

This will work:


function getlabel()
{

var controlId = '<%=Text1.ClientID%>';

var control = document.getElementByID(controlID);

if (control)
{
alert(control.value);
}





<div class="ForumSig">Christian Graus - Microsoft MVP - C++
<a href='http://blog.metalmusings.com/'>Metal Musings</a> - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )</div>
QuestionError in uploading a file in asp.net application Pin
Prakash_Mishra1-Jun-07 1:55
Prakash_Mishra1-Jun-07 1:55 
AnswerRe: Error in uploading a file in asp.net application Pin
Fred_Smith1-Jun-07 2:31
Fred_Smith1-Jun-07 2:31 
QuestionGridView Pin
Bennyzhang1-Jun-07 1:16
Bennyzhang1-Jun-07 1:16 
QuestionHashed Password Pin
TheEagle1-Jun-07 0:29
TheEagle1-Jun-07 0:29 
AnswerRe: Hashed Password Pin
Christian Graus1-Jun-07 0:38
protectorChristian Graus1-Jun-07 0:38 
GeneralRe: Hashed Password Pin
TheEagle1-Jun-07 1:12
TheEagle1-Jun-07 1:12 
AnswerRe: Hashed Password Pin
Kartik Rathi1-Jun-07 0:40
Kartik Rathi1-Jun-07 0:40 
AnswerRe: Hashed Password Pin
Guffa1-Jun-07 0:41
Guffa1-Jun-07 0:41 
GeneralRe: Hashed Password Pin
Christian Graus1-Jun-07 0:44
protectorChristian Graus1-Jun-07 0:44 
GeneralRe: Hashed Password Pin
Guffa1-Jun-07 4:54
Guffa1-Jun-07 4:54 
GeneralRe: Hashed Password Pin
TheEagle1-Jun-07 1:17
TheEagle1-Jun-07 1:17 
GeneralRe: Hashed Password Pin
Christian Graus1-Jun-07 1:38
protectorChristian Graus1-Jun-07 1:38 
GeneralRe: Hashed Password Pin
TheEagle1-Jun-07 4:07
TheEagle1-Jun-07 4:07 
AnswerRe: Hashed Password Pin
Guffa1-Jun-07 4:50
Guffa1-Jun-07 4:50 
Questionhow to disable form controls on the form when some popup is visible using javascript?? Pin
yogita charhate1-Jun-07 0:04
yogita charhate1-Jun-07 0:04 
AnswerRe: how to disable form controls on the form when some popup is visible using javascript?? Pin
Christian Graus1-Jun-07 0:35
protectorChristian Graus1-Jun-07 0:35 
AnswerRe: how to disable form controls on the form when some popup is visible using javascript?? Pin
RichardGrimmer1-Jun-07 4:37
RichardGrimmer1-Jun-07 4:37 

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.