Click here to Skip to main content
16,006,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to unit test the methods???? Pin
chaitu.chinna28-May-08 6:33
chaitu.chinna28-May-08 6:33 
QuestionUpdating CheckBoxList control Pin
Ekjon28-May-08 6:22
Ekjon28-May-08 6:22 
Questionvalidation summary Pin
Mogaambo28-May-08 4:57
Mogaambo28-May-08 4:57 
AnswerRe: validation summary Pin
Zoltan Balazs28-May-08 9:28
Zoltan Balazs28-May-08 9:28 
QuestionHow to show javascript funtion returns value to Label box? Pin
bijeshputhalath28-May-08 4:15
bijeshputhalath28-May-08 4:15 
AnswerRe: How to show javascript funtion returns value to Label box? Pin
led mike28-May-08 4:19
led mike28-May-08 4:19 
GeneralRe: How to show javascript funtion returns value to Label box? Pin
bijeshputhalath28-May-08 4:34
bijeshputhalath28-May-08 4:34 
GeneralRe: How to show javascript funtion returns value to Label box? Pin
led mike28-May-08 5:59
led mike28-May-08 5:59 
bijeshputhalath wrote:
Not in HTML Page.I need to show in aspx page .

Wow, I thought I was in a different forum, my fault. Blush | :O

This asp.Label

<asp:Label ID="labelTest" runat="server" Text="Label"></asp:Label>


Becomes the following in the browser (you can see this by using the browsers "View Source" menu item)

<span id="labelTest"><span id="labelTest">Label</span></span>


So for IE Browser (I don't know about a cross browser solution) the script would be:

document.getElementById("labelTest").innerText = "Hello World";


Keep in mind that ASP can alter names if they are nested inside ASP container controls so using the View Source is a way to determine that.


led mike

GeneralRe: How to show javascript funtion returns value to Label box? Pin
bijeshputhalath28-May-08 19:36
bijeshputhalath28-May-08 19:36 
GeneralRe: How to show javascript funtion returns value to Label box? Pin
Vasudevan Deepak Kumar28-May-08 18:39
Vasudevan Deepak Kumar28-May-08 18:39 
AnswerRe: How to show javascript funtion returns value to Label box? Pin
Vasudevan Deepak Kumar28-May-08 18:38
Vasudevan Deepak Kumar28-May-08 18:38 
GeneralRe: How to show javascript funtion returns value to Label box? Pin
bijeshputhalath28-May-08 19:33
bijeshputhalath28-May-08 19:33 
QuestionGridView in ASP.NET 2.0 & C# Pin
Jacob Dixon28-May-08 4:02
Jacob Dixon28-May-08 4:02 
QuestionMicrosoft JScript runtime error: Object doesn't support this property or method Pin
eyeseetee28-May-08 3:00
eyeseetee28-May-08 3:00 
AnswerRe: Microsoft JScript runtime error: Object doesn't support this property or method Pin
Imran Khan Pathan28-May-08 3:06
Imran Khan Pathan28-May-08 3:06 
GeneralRe: Microsoft JScript runtime error: Object doesn't support this property or method Pin
eyeseetee28-May-08 3:21
eyeseetee28-May-08 3:21 
GeneralRe: Microsoft JScript runtime error: Object doesn't support this property or method Pin
eyeseetee28-May-08 4:36
eyeseetee28-May-08 4:36 
Questiongridview problem Pin
Miss Maheshwari28-May-08 2:44
Miss Maheshwari28-May-08 2:44 
AnswerRe: gridview problem Pin
eyeseetee28-May-08 2:54
eyeseetee28-May-08 2:54 
QuestionAltering File Names On Download Pin
Sam Heller28-May-08 2:01
Sam Heller28-May-08 2:01 
AnswerRe: Altering File Names On Download Pin
Vasudevan Deepak Kumar28-May-08 2:28
Vasudevan Deepak Kumar28-May-08 2:28 
GeneralRe: Altering File Names On Download Pin
Sam Heller28-May-08 2:39
Sam Heller28-May-08 2:39 
GeneralRe: Altering File Names On Download Pin
Vasudevan Deepak Kumar28-May-08 2:40
Vasudevan Deepak Kumar28-May-08 2:40 
GeneralRe: Altering File Names On Download Pin
Sam Heller28-May-08 4:42
Sam Heller28-May-08 4:42 
GeneralRe: Altering File Names On Download Pin
Sam Heller28-May-08 5:16
Sam Heller28-May-08 5:16 

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.