Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: Today's date


Message #1 by =?iso-8859-1?q?sky=20limit?= <skylimit7772002@y...> on Thu, 26 Sep 2002 15:49:55 +0100 (BST)
Hi Guys 

How to get Todays date filled in text box when a form is loaded.

Actually the  problem is 

I have a form with textbox (intially should be filled with Todays date in dd/mm/yyyy Format ) and a listbox.  

Intially this textbox should be filled with todays date. The user can override the today's date. Now when user select something from
the list box my form is again submitted to populate someother list box. Now when form is again submitted the value entered by the
user is gone. For this I have use value=<%=Request.Item("txtDate")%> > to hold the value entered by the user.

Now IF I use value tag like this then how can put todays date in textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks

 




---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.

Message #2 by "Craig Flannigan" <ckf@k...> on Thu, 26 Sep 2002 16:03:09 +0100
Could you not do this...

Enter this into the Value tag of your Text Box:

<%=strSelectedDate%>


Then do an IF Statement at the top of the page.

<%
If Request.form("txtDate") = "" then
   strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>


This checks to see if the user has selected anything - if they have, it
enters this into the textbox, if not - it uses todays date.


Hope this helps
Craig.

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...]
Sent: 26 September 2002 15:50
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Hi Guys

How to get Todays date filled in text box when a form is loaded.

Actually the  problem is

I have a form with textbox (intially should be filled with Todays date in
dd/mm/yyyy Format ) and a listbox.

Intially this textbox should be filled with todays date. The user can
override the today's date. Now when user select something from the list box
my form is again submitted to populate someother list box. Now when form is
again submitted the value entered by the user is gone. For this I have use
value=<%=Request.Item("txtDate")%> > to hold the value entered by the user.

Now IF I use value tag like this then how can put todays date in textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks






---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or
show them to anyone; please reply to this email and highlight the
error.

Security Warning : Please note that this email has been created in
the knowledge that the internet is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when emailing us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with
good computing practice, the recipient should ensure they are
actually virus free.
_____________________________________________________________________
Message #3 by Marios Adamantopoulos <mario@t...> on Thu, 26 Sep 2002 16:19:40 +0100
I'm a bit confused but if u want to automatically fill in text values
depending on what the user chose from the drop down here is something I've
done.


http://www.latomi.com/html.html (the output file, you can see the javascript
better in this file)

http://www.latomi.com/asp.txt ( the actual asp file that accesses a
database, created the javascript array, etc...)

I hopee this helps

Mario

_________________________
Marios Adamantopoulos
Senior Developer

Tonic
+44 (0)20 7691 2227
+44 (0)7904 221663
www.tonic.co.uk

Recent projects
www.polydor.co.uk
www.adcecreative.org
www.sony-europe.com/pocketlife
............................................................................
....................................
Opinions, conclusions and other information in this message that do not
relate to the official business of Tonic Design Limited shall be
understood as neither given nor endorsed by them.
............................................................................
....................................


-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...] 
Sent: 26 September 2002 15:50
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Hi Guys 

How to get Todays date filled in text box when a form is loaded.

Actually the  problem is 

I have a form with textbox (intially should be filled with Todays date in
dd/mm/yyyy Format ) and a listbox.  

Intially this textbox should be filled with todays date. The user can
override the today's date. Now when user select something from the list box
my form is again submitted to populate someother list box. Now when form is
again submitted the value entered by the user is gone. For this I have use
value=<%=Request.Item("txtDate")%> > to hold the value entered by the user.

Now IF I use value tag like this then how can put todays date in textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks

 




---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #4 by =?iso-8859-1?q?sky=20limit?= <skylimit7772002@y...> on Thu, 26 Sep 2002 16:45:53 +0100 (BST)
Thanks Marios , Craig 
I like your idea Craig and I have not gone through Marios what u have sent , I will go through that also. Right know I want
something very fast.

Craig But now when  I say ' Date'  It actually picke the date in mm/dd/yyyy format.
<%
If Request.form("txtDate") = "" then
   strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>

 

What I want dd/mm/yyyy format..

 

Thanks GUYS


 
 Craig Flannigan wrote:Could you not do this...

Enter this into the Value tag of your Text Box:




Then do an IF Statement at the top of the page.

If Request.form("txtDate") = "" then
   strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>


This checks to see if the user has selected anything - if they have, it
enters this into the textbox, if not - it uses todays date.


Hope this helps
Craig.

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...]
Sent: 26 September 2002 15:50
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Hi Guys

How to get Todays date filled in text box when a form is loaded.

Actually the problem is

I have a form with textbox (intially should be filled with Todays date in
dd/mm/yyyy Format ) and a listbox.

Intially this textbox should be filled with todays date. The user can
override the today's date. Now when user select something from the list box
my form is again submitted to populate someother list box. Now when form is
again submitted the value entered by the user is gone. For this I have use
value= > to hold the value entered by the user.

Now IF I use value tag like this then how can put todays date in textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks






---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or
show them to anyone; please reply to this email and highlight the
error.

Security Warning : Please note that this email has been created in
the knowledge that the internet is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when emailing us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with
good computing practice, the recipient should ensure they are
actually virus free.
_____________________________________________________________________


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.

Message #5 by Marios Adamantopoulos <mario@t...> on Thu, 26 Sep 2002 17:02:05 +0100
I use the following
<%=day(date)%>/<%=month(date)%>/<%=year(date)%>";


Mario

_________________________
Marios Adamantopoulos
Senior Developer

Tonic
+44 (0)20 7691 2227
+44 (0)7904 221663
www.tonic.co.uk

Recent projects
www.polydor.co.uk
www.adcecreative.org
www.sony-europe.com/pocketlife
............................................................................
....................................
Opinions, conclusions and other information in this message that do not
relate to the official business of Tonic Design Limited shall be
understood as neither given nor endorsed by them.
............................................................................
....................................

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...] 
Sent: 26 September 2002 16:46
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Thanks Marios , Craig 
I like your idea Craig and I have not gone through Marios what u have sent ,
I will go through that also. Right know I want something very fast.

Craig But now when  I say ' Date'  It actually picke the date in mm/dd/yyyy
format. <% If Request.form("txtDate") = "" then
   strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>

 

What I want dd/mm/yyyy format..

 

Thanks GUYS


 
 Craig Flannigan wrote:Could you not do this...

Enter this into the Value tag of your Text Box:




Then do an IF Statement at the top of the page.

If Request.form("txtDate") = "" then
   strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>


This checks to see if the user has selected anything - if they have, it
enters this into the textbox, if not - it uses todays date.


Hope this helps
Craig.

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...]
Sent: 26 September 2002 15:50
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Hi Guys

How to get Todays date filled in text box when a form is loaded.

Actually the problem is

I have a form with textbox (intially should be filled with Todays date in
dd/mm/yyyy Format ) and a listbox.

Intially this textbox should be filled with todays date. The user can
override the today's date. Now when user select something from the list box
my form is again submitted to populate someother list box. Now when form is
again submitted the value entered by the user is gone. For this I have use
value= > to hold the value entered by the user.

Now IF I use value tag like this then how can put todays date in textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks






---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in error
you must take no action based on them, nor must you copy or show them to
anyone; please reply to this email and highlight the error.

Security Warning : Please note that this email has been created in the
knowledge that the internet is not a 100% secure communications medium. We
advise that you understand and observe this lack of security when emailing
us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with good
computing practice, the recipient should ensure they are actually virus
free. _____________________________________________________________________


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #6 by "Craig Flannigan" <ckf@k...> on Thu, 26 Sep 2002 16:54:25 +0100
You can change that on your server - using the Date command will display
according to your Locale setting.

A quick way is to do this then ....

Change:
  strSelectedDate = Date

To:
  strSelectedDate = Day(Date) & "/" & Month(date) & "/" & Year(date)


Hope this helps
Craig.

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...]
Sent: 26 September 2002 16:46
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Thanks Marios , Craig
I like your idea Craig and I have not gone through Marios what u have sent ,
I will go through that also. Right know I want something very fast.

Craig But now when  I say ' Date'  It actually picke the date in mm/dd/yyyy
format.
<%
If Request.form("txtDate") = "" then
   strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>



What I want dd/mm/yyyy format..



Thanks GUYS



 Craig Flannigan wrote:Could you not do this...

Enter this into the Value tag of your Text Box:




Then do an IF Statement at the top of the page.

If Request.form("txtDate") = "" then
   strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>


This checks to see if the user has selected anything - if they have, it
enters this into the textbox, if not - it uses todays date.


Hope this helps
Craig.

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...]
Sent: 26 September 2002 15:50
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Hi Guys

How to get Todays date filled in text box when a form is loaded.

Actually the problem is

I have a form with textbox (intially should be filled with Todays date in
dd/mm/yyyy Format ) and a listbox.

Intially this textbox should be filled with todays date. The user can
override the today's date. Now when user select something from the list box
my form is again submitted to populate someother list box. Now when form is
again submitted the value entered by the user is gone. For this I have use
value= > to hold the value entered by the user.

Now IF I use value tag like this then how can put todays date in textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks






---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or
show them to anyone; please reply to this email and highlight the
error.

Security Warning : Please note that this email has been created in
the knowledge that the internet is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when emailing us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with
good computing practice, the recipient should ensure they are
actually virus free.
_____________________________________________________________________


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or
show them to anyone; please reply to this email and highlight the
error.

Security Warning : Please note that this email has been created in
the knowledge that the internet is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when emailing us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with
good computing practice, the recipient should ensure they are
actually virus free.
_____________________________________________________________________
Message #7 by =?iso-8859-1?q?sky=20limit?= <skylimit7772002@y...> on Thu, 26 Sep 2002 17:43:07 +0100 (BST)
Thanks Marios, Craig
 
I think this should work.
You are really nice guys.
Thanks A lot for now.
 
 Marios Adamantopoulos wrote:I use the following
//";


Mario

_________________________
Marios Adamantopoulos
Senior Developer

Tonic
+44 (0)20 7691 2227
+44 (0)7904 221663
www.tonic.co.uk

Recent projects
www.polydor.co.uk
www.adcecreative.org
www.sony-europe.com/pocketlife
............................................................................
....................................
Opinions, conclusions and other information in this message that do not
relate to the official business of Tonic Design Limited shall be
understood as neither given nor endorsed by them.
............................................................................
....................................

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...] 
Sent: 26 September 2002 16:46
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Thanks Marios , Craig 
I like your idea Craig and I have not gone through Marios what u have sent ,
I will go through that also. Right know I want something very fast.

Craig But now when I say ' Date' It actually picke the date in mm/dd/yyyy
format.    strSelectedDate = Date
Else
   strSelectedDate = Request.form("txtDate")
End If
%>



What I want dd/mm/yyyy format..



Thanks GUYS



Craig Flannigan wrote:Could you not do this...

Enter this into the Value tag of your Text Box:




Then do an IF Statement at the top of the page.

If Request.form("txtDate") = "" then
strSelectedDate = Date
Else
strSelectedDate = Request.form("txtDate")
End If
%>


This checks to see if the user has selected anything - if they have, it
enters this into the textbox, if not - it uses todays date.


Hope this helps
Craig.

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...]
Sent: 26 September 2002 15:50
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date



Hi Guys

How to get Todays date filled in text box when a form is loaded.

Actually the problem is

I have a form with textbox (intially should be filled with Todays date in
dd/mm/yyyy Format ) and a listbox.

Intially this textbox should be filled with todays date. The user can
override the today's date. Now when user select something from the list box
my form is again submitted to populate someother list box. Now when form is
again submitted the value entered by the user is gone. For this I have use
value= > to hold the value entered by the user.

Now IF I use value tag like this then how can put todays date in textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks






---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 


_____________________________________________________________________
Kingfield Heath Ltd. Email Disclaimer

Confidentiality : This email and its attachments are intended for the
above-named only and may be confidential. If they have come to you in error
you must take no action based on them, nor must you copy or show them to
anyone; please reply to this email and highlight the error.

Security Warning : Please note that this email has been created in the
knowledge that the internet is not a 100% secure communications medium. We
advise that you understand and observe this lack of security when emailing
us.

Viruses : Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that, in keeping with good
computing practice, the recipient should ensure they are actually virus
free. _____________________________________________________________________


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.

Message #8 by "Drew, Ron" <RDrew@B...> on Thu, 26 Sep 2002 17:15:09 -0400
value=3D"<%=3D FormatDateTime(now(),2)%>"

-----Original Message-----
From: sky limit [mailto:skylimit7772002@y...]
Sent: Thursday, September 26, 2002 10:50 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Today's date


Hi Guys

How to get Todays date filled in text box when a form is loaded.

Actually the  problem is

I have a form with textbox (intially should be filled with Todays date
in dd/mm/yyyy Format ) and a listbox. 

Intially this textbox should be filled with todays date. The user can
override the today's date. Now when user select something from the list
box my form is again submitted to populate someother list box. Now when
form is again submitted the value entered by the user is gone. For this
I have use value=3D<%=3DRequest.Item("txtDate")%> > to hold the value
entered by the user.

Now IF I use value tag like this then how can put todays date in
textbox.

If not like this then how can I hold the value enetred by the user.

And how to put todays date in text box when intially form is loaded..

I hope u guys understand this.
thanks






---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20

  Return to Index