How can I change the scroll bar color
Use Style Sheet to change the color of scroll-bar body { FONT-SIZE: 8pt; COLOR: #000000; background-color: #EEEEEE; scrollbar-face-color: #EEEE99; scrollbar-highlight-color: #DDDDDD; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #FF6600; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; }
How to change a Label element’s text in javascript
document.getElementById(‘Label1’).innerText = ‘Changed Text’;
Can I modify WebUIValidation.js
Extract from MSDN : You are encouraged to read the script to see more of what is going on. However, it is not recommended that you modify these scripts, because their function is very closely tied to a particular version of the run time. If the run time is updated, the scripts may need a corresponding update, and you will have to either lose your changes or face problems with the scripts not working. If you must change the scripts for a particular project, take a copy of the files and point your project to them by overriding the location of the files with a private web.config file.It is perfectly fine to change this location to be a relative or absolute reference. For more details refer ASP.NET Validation in Depth
How to hide or show Controls in server side code?
In any appropriate event write VB.NET TextBox1.Visible =not TextBox1.Visible C# TextBox1.Visible =!TextBox1.Visible ;
How to resolve the error message ‘Cannot implicitly convert type ‘string’ to ‘System.DateTime’ ‘ when using a DataReader
Try VB.NET dim dt as DateTime = ctype( dr(‘hiredate’).ToString(), DateTime) C# DateTime dt= ((DateTime) dr[‘hiredate’]).ToString();