473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Date Time .ASPX (old .asp used <%now%>)

In ASP I used to be able to use <% now %> to pass the date and time. How is
this achieved in .ASPX? I cannot seem to figure this one out.. Thanks in
advance!
Oct 3 '05 #1
2 3854
It was likely <%=now()%> and it still works... (= is a shortcurt for
Response.Write).

The prefered method though in ASP.NET is likely to use a control such as a
label and to fill its text property (IE. a programming model that is similar
to that of a Win32 application).

--
Patrice

"Joshua C. Clark" <Jo**@NetworkMedics.Com> a écrit dans le message de
news:uM**************@TK2MSFTNGP14.phx.gbl...
In ASP I used to be able to use <% now %> to pass the date and time. How is this achieved in .ASPX? I cannot seem to figure this one out.. Thanks in
advance!

Oct 3 '05 #2
Works thank you!

"Patrice" <no****@nowhere.com> wrote in message
news:Oq*************@tk2msftngp13.phx.gbl...
It was likely <%=now()%> and it still works... (= is a shortcurt for
Response.Write).

The prefered method though in ASP.NET is likely to use a control such as a
label and to fill its text property (IE. a programming model that is similar to that of a Win32 application).

--
Patrice

"Joshua C. Clark" <Jo**@NetworkMedics.Com> a écrit dans le message de
news:uM**************@TK2MSFTNGP14.phx.gbl...
In ASP I used to be able to use <% now %> to pass the date and time. How

is
this achieved in .ASPX? I cannot seem to figure this one out.. Thanks in
advance!


Oct 3 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gerry | last post by:
Help needed with this: I have had a guestbook-page in Europe and will now have to move it to a US based-server. This makes the time-function showing time 6 hours wrong. The time should be GMT...
4
by: Gerry | last post by:
As I'm not a PHP-prgrammer at all, I just need Help with this: I have had a guestbook-page in Europe and will now have to move it to a US based-server. This makes the time-function showing time...
59
by: Haines Brown | last post by:
I've not had a clear definition in my mind of "citation," and so have avoided it. For example, if I suggest that the reputation of the New York Times has suffered, is that a citation? I suppose...
15
by: kernel.lover | last post by:
Hello, i want to know to have multiple clients connects to same server program does following is correct code #include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include...
2
by: Joshua C. Clark | last post by:
In ASP I used to be able to use <% now %> to pass the date and time. How is this achieved in .ASPX? I cannot seem to figure this one out.. Thanks in advance!
9
by: Eric Lindsay | last post by:
I can't figure how to best display little snippets of shell script using <pre>. I just got around to organising to bulk validate some of my web pages, and one of the problems occurs with Bash...
2
by: clintonG | last post by:
I haven't done this since ASP and though we could use some sort of "expression" to process code inline. I did some searching and reading but haven't found anything specific. What's up? <%=...
14
by: dananrg | last post by:
Been using the ODBC module for Python 2.1 (Win32) and had another question. When I return data from date columns, it's in a strange object form, e.g. <something or other> (don't have the output in...
3
by: janzon | last post by:
Hi! Sorry for the bad subject line... Here's what I mean. Suppose we deal with C++ standard integers lists (the type is indifferent). We have a function f, declared as list<intf(int); Now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.