473,386 Members | 1,786 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.

Want to initialise text box on basis of...

I have two textbox server control.

1. Registration Date
2. Expiry Date.

Expiry Date is calculated automatically from table on the basis of
scheme which was selected by user from Scheme DropDown
ListBox control.

eg.
User had selected "scheme 30 days" scheme. So I want to automatically
add 30 days in Expiry Date from the date of

Registration.

Date of Registration is by default initialise with current date.

Will you please tell me how to add 30 days in Expiry Date. Expiry date
is ReadOnly.
Thank You

Nov 19 '05 #1
1 938
Are you trying to do this ClientSide or ServerSide?
If server just do something like

Dim expDate as DateTime = System.DateTime.Now
if(ddlType.SelectedValue = "30Days") then
expDate = System.DateTime.Now.AddDays(30)
end if
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"zo****@yahoo.com" wrote:
I have two textbox server control.

1. Registration Date
2. Expiry Date.

Expiry Date is calculated automatically from table on the basis of
scheme which was selected by user from Scheme DropDown
ListBox control.

eg.
User had selected "scheme 30 days" scheme. So I want to automatically
add 30 days in Expiry Date from the date of

Registration.

Date of Registration is by default initialise with current date.

Will you please tell me how to add 30 days in Expiry Date. Expiry date
is ReadOnly.
Thank You

Nov 19 '05 #2

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

Similar topics

7
by: Santah | last post by:
hi I'm new to C++ and I'm currently working on Visual C++ 6.0 I'm trying to open a text file, and read some data from it part of the text file looks like this: --------
9
by: iceColdFire | last post by:
HI, I have a function as void f(int p) { return p++; } now I have created a function pointer as
10
by: giancarlodirisioster | last post by:
Can someone help me modify this for future Usenet archival and to help me solve what I don't know? <form name="addform" method="POST" action="./submit.php"> <input type="text" name="Box 1"...
14
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari...
7
by: John Salerno | last post by:
Hi everyone. I thought I might do a little experiment with XML and type up some rules for syntax formatting for a programming language. But I'm a little confused about how to format the XML file....
1
by: lled | last post by:
I have a text file which I import on a daily basis - it goes into the same table, is set up exactly the same each time. The only thing that is different is the file name. Is there anything more...
2
by: ielamrani | last post by:
Hi everyone, I need help on the following issue. I have 2 text boxes and a labelin a report linked to a query. All together they form a sentence like this: 1001 basis point on Total of $415 ...
2
by: ielamrani | last post by:
Hi, the following text box works: = & " " & "Basis Points on total assets of" & " " & The result is: 11.75 Basis point on total assets of 5267618.65 5267618.65 is the text box
1
by: saravanatmm | last post by:
i want script code for the hover onn the text or images like this url http://www.istockphoto.com/file_search.php?action=file&lightboxID=2351475 Or double click on the text it shows the...
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:
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.