STEVESKI07
Member
- Joined
- Sep 12, 2007
- Messages
- 17
- Programming Experience
- 1-3
Hi everyone,
I've done some searching about this and haven't found the solution I need. I need to set a labels text property via javascript. This is how I'm currently doing it:
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I've also tried using the innerHTML property.
The value shows up on the screen correctly, but the problem is when I do a postback after that and try to do something with lblDate.Text it is returning a null. I know its because when I'm calling the innerText property that its just changing the HTML and not changing the asp controls text property, but does anybody know how I would go around this problem?
Thanks in advance.
	
		
			
		
		
	
				
			I've done some searching about this and haven't found the solution I need. I need to set a labels text property via javascript. This is how I'm currently doing it:
			
				VB.NET:
			
		
		
		function setDate(strDate){
           document.getElementById("lblDate").innerText = strDate;  
}I've also tried using the innerHTML property.
The value shows up on the screen correctly, but the problem is when I do a postback after that and try to do something with lblDate.Text it is returning a null. I know its because when I'm calling the innerText property that its just changing the HTML and not changing the asp controls text property, but does anybody know how I would go around this problem?
Thanks in advance.
 
	 
 
		 
 
		 
 
		 
 
		