473,545 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I allow them to choose a date WITHOUT a postback?

Hello,

I have an app where the user needs to fill in details about an event,
including the date and time of the event. I want a clean way to allow
them to pick the date and time. In the old days (ASP Classic), I would
have used three comboboxes for the date, one for the day, one for the
month and one for the year. I'm sure ASP.NET has a better way of doing
it. I have seen the calendar control, but all the examples I have seen
involve a postback as soon as you click anything on the calendar. I
don't want that, I want them to be able to pick a date whilst they are
filling in the form and then click a button when they are done to post
the info back to the server.

Anyone any suggestions how I would do this? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #1
3 1891
Check out this article, here you wont do a postback when you want to show a
calendar. Instead you will open a new window where you can show a calendar.
http://www.microsoft.com/india/msdn/...ndarinASP.aspx

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"Alan Silver" <al*********@no spam.thanx> wrote in message
news:30******** ******@nospamth ankyou.spam...
Hello,

I have an app where the user needs to fill in details about an event,
including the date and time of the event. I want a clean way to allow
them to pick the date and time. In the old days (ASP Classic), I would
have used three comboboxes for the date, one for the day, one for the
month and one for the year. I'm sure ASP.NET has a better way of doing
it. I have seen the calendar control, but all the examples I have seen
involve a postback as soon as you click anything on the calendar. I
don't want that, I want them to be able to pick a date whilst they are
filling in the form and then click a button when they are done to post
the info back to the server.

Anyone any suggestions how I would do this? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #2
Create a simple page, Calendar.aspx, that has a calendar on it. I believe
you can use the asp calendar control.

Open the Calendar.aspx as a modal dialog. Take the return value from the
Calendar.aspx and put it into the text box.

<input type="text" id="txtDate" name="txtDate" />
<button value="lookup" onclick="docume nt.all['txtDate'].value =
window.showModa lDialog( 'Calendar.aspx' );" >

Or something along those lines.

bill

"Alan Silver" <al*********@no spam.thanx> wrote in message
news:30******** ******@nospamth ankyou.spam...
Hello,

I have an app where the user needs to fill in details about an event,
including the date and time of the event. I want a clean way to allow
them to pick the date and time. In the old days (ASP Classic), I would
have used three comboboxes for the date, one for the day, one for the
month and one for the year. I'm sure ASP.NET has a better way of doing
it. I have seen the calendar control, but all the examples I have seen
involve a postback as soon as you click anything on the calendar. I
don't want that, I want them to be able to pick a date whilst they are
filling in the form and then click a button when they are done to post
the info back to the server.

Anyone any suggestions how I would do this? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #3
Thanks to both of you, that seems quite sensible.
Create a simple page, Calendar.aspx, that has a calendar on it. I believe
you can use the asp calendar control.

Open the Calendar.aspx as a modal dialog. Take the return value from the
Calendar.asp x and put it into the text box.

<input type="text" id="txtDate" name="txtDate" />
<button value="lookup" onclick="docume nt.all['txtDate'].value =
window.showMod alDialog( 'Calendar.aspx' );" >

Or something along those lines.

bill

"Alan Silver" <al*********@no spam.thanx> wrote in message
news:30******* *******@nospamt hankyou.spam...
Hello,

I have an app where the user needs to fill in details about an event,
including the date and time of the event. I want a clean way to allow
them to pick the date and time. In the old days (ASP Classic), I would
have used three comboboxes for the date, one for the day, one for the
month and one for the year. I'm sure ASP.NET has a better way of doing
it. I have seen the calendar control, but all the examples I have seen
involve a postback as soon as you click anything on the calendar. I
don't want that, I want them to be able to pick a date whilst they are
filling in the form and then click a button when they are done to post
the info back to the server.

Anyone any suggestions how I would do this? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)



--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #4

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

Similar topics

3
10031
by: Bruno BAGUETTE | last post by:
Hello, I'm looking for a way to convert a unix timestamp to a PostgreSQL date without using ::abstime which seems to be deprecated. Currently, I do that query : levure=> select 1063147331.843::int4::abstime; abstime ------------------------
1
2011
by: ashfaq Gul via DotNetMonster.com | last post by:
Please help me.... i want to update record in datagrid without postback ....and the main thing that the confirmation of record updation should be from server not client ...because overwritting problem may occur if more than one user are updating the same record.... Please help.. -- Message posted via http://www.dotnetmonster.com
1
4644
by: John Mason | last post by:
Hi, I am trying to figure out how to do a client-side calculation based on textbox values, using asp.net, without performing a postback. I have 2 textboxes... <asp:textbox runat="server" CssClass="ddclass" ID="txtTotal" onBlur="calculate()" />
9
21805
by: Martin Randall | last post by:
Can anyone tell me if it is possible to get the TreeView control in ASP.Net 2.0 to allow node selection without triggering a postback? Thanks! Martin Randall
3
5581
by: vinay | last post by:
Hi All I have a page in which i using user control .on user control i using javascript to pop up a message .when i choose wrong date in user control & submits the page it alerts the message of javascript but page refrehes. I want to use javascript without page refresh or without postback . Is this possible to use javascript without page...
26
8485
by: JJ | last post by:
Is there any way you can expand a parent node on the treeview control _without a postback_ by clicking on the node text (NOT clicking the expand image URL) ? I want to format the treeview node to look like a column of buttons that expand to show the child nodes (if there are child nodes) qithout a postback. I don't want to display the...
1
2177
by: Tor Inge Rislaa | last post by:
I am using a DropDownList in my web page. I simply need to put the text of the selected index into a sql query, when the user click a save button. The problem is that the change of text in the DropDownList does not occur unless AutoPostBack = True. My problem is, as soon as the page is in PostBack mode all other changes done are set to the...
2
9125
by: wildman | last post by:
RE: Gridview textbox has data check without postback.. javascript? I have a gridview with a textbox. I can set the textbox to autopostback and check for a value in a prerender event to decide if I should make a button on the grid row visible. However, the problem with autopostback on a textbox is the postback occurrs when you select another...
2
3675
by: Anisht79menon | last post by:
I want to convert a DATE with time stamp(stored in a column of a table of data type as DATE ) to a DATE without time stamp. I have a constraint also, I can't use TO_CHAR function. Example. Date needs to be converted , START_DATE = '31/12/9999 11:42:27' Covert this date to '31/12/9999'.
2
1862
by: kirankumarn | last post by:
I want to use Client-Callback without postback what is the advantages & how i can use. Thanks in advance
0
7475
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7918
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7436
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5981
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5341
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4958
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
715
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.