Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Christian Graus31-Aug-09 14:02
protectorChristian Graus31-Aug-09 14:02 
GeneralRe: Dropdown list value is not retaining on page post back Pin
Abhishek Sur31-Aug-09 23:25
professionalAbhishek Sur31-Aug-09 23:25 
AnswerRe: Dropdown list value is not retaining on page post back Pin
Christian Graus31-Aug-09 14:07
protectorChristian Graus31-Aug-09 14:07 
QuestionReferencing HTML input boxes correctly Pin
dptalt31-Aug-09 5:10
dptalt31-Aug-09 5:10 
AnswerRe: Referencing HTML input boxes correctly Pin
Not Active31-Aug-09 6:44
mentorNot Active31-Aug-09 6:44 
GeneralRe: Referencing HTML input boxes correctly Pin
dptalt31-Aug-09 9:15
dptalt31-Aug-09 9:15 
GeneralRe: Referencing HTML input boxes correctly Pin
Not Active31-Aug-09 9:56
mentorNot Active31-Aug-09 9:56 
GeneralRe: Referencing HTML input boxes correctly Pin
Abhishek Sur31-Aug-09 10:44
professionalAbhishek Sur31-Aug-09 10:44 
getElementById is a javascript function that finds one element. If the ID of the textbox is Text1 when rendered to the client browser (I mean if you see id of your input as Text1 when you see Source from the browser), just use

var element = document.getElementById("Text1");

rather than

var element = document.getElementById("ctl00_ContentPlaceHolder1_TimeEntryBox1_Text2");

If you want to find the div, you can do so using

var divelement = document.getElementById("ctl00_ContentPlaceHolder1_TimeEntryBox1_Panel1");

Always remember, you can mention only those elements which are rendered to the client. ASP.NET server side Ids are different than what is rendered in the client side. Use ClientID than ID for any server control to get the actual ID generated in the client, and always call this ID through JAVASCRIPT.

Hope you got it. Thumbs Up | :thumbsup:

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

GeneralRe: Referencing HTML input boxes correctly Pin
dptalt1-Sep-09 1:35
dptalt1-Sep-09 1:35 
QuestionTimeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
ncsubbu31-Aug-09 2:47
professionalncsubbu31-Aug-09 2:47 
AnswerRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Tamer Oz31-Aug-09 2:55
Tamer Oz31-Aug-09 2:55 
AnswerRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Abhijit Jana31-Aug-09 3:06
professionalAbhijit Jana31-Aug-09 3:06 
AnswerRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Fayu31-Aug-09 6:50
Fayu31-Aug-09 6:50 
GeneralRe: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pin
Christian Graus31-Aug-09 14:19
protectorChristian Graus31-Aug-09 14:19 
Questionin 3 tier how can we access in asp.net, how can we make object of them. Pin
vaishali.terse31-Aug-09 2:16
vaishali.terse31-Aug-09 2:16 
AnswerRe: in 3 tier how can we access in asp.net, how can we make object of them. Pin
Amit Patel198531-Aug-09 2:20
Amit Patel198531-Aug-09 2:20 
AnswerRe: in 3 tier how can we access in asp.net, how can we make object of them. Pin
Abhijit Jana31-Aug-09 2:48
professionalAbhijit Jana31-Aug-09 2:48 
Questioncalendar popup Pin
ankitjain111031-Aug-09 1:59
ankitjain111031-Aug-09 1:59 
AnswerRe: calendar popup Pin
sashidhar31-Aug-09 2:22
sashidhar31-Aug-09 2:22 
GeneralRe: calendar popup Pin
ankitjain111031-Aug-09 2:45
ankitjain111031-Aug-09 2:45 
AnswerRe: calendar popup Pin
Abhijit Jana31-Aug-09 2:54
professionalAbhijit Jana31-Aug-09 2:54 
GeneralRe: calendar popup Pin
ankitjain111031-Aug-09 3:00
ankitjain111031-Aug-09 3:00 
AnswerRe: calendar popup Pin
Abhijit Jana31-Aug-09 3:14
professionalAbhijit Jana31-Aug-09 3:14 
QuestionGenerate xml file from sql server in asp.net Pin
.NET- India 31-Aug-09 1:56
.NET- India 31-Aug-09 1:56 
AnswerRe: Generate xml file from sql server in asp.net Pin
compninja2531-Aug-09 4:31
compninja2531-Aug-09 4:31 

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.