Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
1596 Points
378 Posts
May 23, 2012 05:17 AM|LINK
What mechanism you used to display and assign value in textbox?
To display use:
document.getElementByID("TextboxID").innerHTML=Date;
TO assign value to the textbox:
document.getElementByID("TextboxID").value=Date;
To perform both,you have to use both the line:
mishra.bhupe...
Participant
1596 Points
378 Posts
Re: Not getting date from asp:textbox
May 23, 2012 05:17 AM|LINK
What mechanism you used to display and assign value in textbox?
To display use:
document.getElementByID("TextboxID").innerHTML=Date;
TO assign value to the textbox:
document.getElementByID("TextboxID").value=Date;
To perform both,you have to use both the line:
document.getElementByID("TextboxID").innerHTML=Date;
document.getElementByID("TextboxID").value=Date;