alert(<%= DateTime.Now.ToString() %>'); in my embed resource javascript
-
-
Dear Sir and Madam I have an embed resource javascript in my Web Control Library. The javascript has function below function test() { alert('<%= DateTime.Now.ToString() %>'); } The problem is the function alert incorrect result. Please help me. Thank You.
god4k wrote:
The problem is the function alert incorrect result.
What is the incorrect result shown by the alert?
-
Dear Sir and Madam I have an embed resource javascript in my Web Control Library. The javascript has function below function test() { alert('<%= DateTime.Now.ToString() %>'); } The problem is the function alert incorrect result. Please help me. Thank You.
-
Dear Sir and Madam I have an embed resource javascript in my Web Control Library. The javascript has function below function test() { alert('<%= DateTime.Now.ToString() %>'); } The problem is the function alert incorrect result. Please help me. Thank You.
god4k wrote:
alert('<%= DateTime.Now.ToString() %>');
god4k wrote:
The problem is the function alert incorrect result.
What is the actaul error?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
Dear Sir and Madam I have an embed resource javascript in my Web Control Library. The javascript has function below function test() { alert('<%= DateTime.Now.ToString() %>'); } The problem is the function alert incorrect result. Please help me. Thank You.
god4k wrote:
The problem is the function alert incorrect result
If you want to get the time on client machine, use the date object [^]of Javascript.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.