Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I want to postback my page when date is selected from the date control:

Sample Code:
HTML
<asp:TextBox ID="txtToDate" runat="server" TabIndex="2" AutoPostBack="true" AutoCompleteType="Disabled" CssClass="clsText" MaxLength="10" name="txtFromDate" onblur="javascript:fncValidateDateUKformat('txtToDate');"   onkeypress="fncInputDateOnly()" Width="96px"></asp:TextBox>
<a href="javascript:void(0)" tabindex="3" onclick="if(self.gfPop)gfPop.fPopCalendar(document.frmClaimReceipt.txtToDate);return false;">
<img alt="" border="0" name="PopcalTrigger" src="../../../Images/calbtn.gif" style="vertical-align: top" width="34" id="Img2" /></a> 
<iframe id="gToday:normal:agenda.js" style="z-index: 999; left: -500px; visibility: visible; position: absolute; top: 0px" name="gToday:normal:agenda.js" src="../../../Calendar/ipopeng.htm" frameborder="0" width="199" scrolling="no" height="178"></iframe>


Thanks,
Minal Shah.

UPDATE SM: Kindly format the code and put it in PRE tag next time when you post a query.
Posted
Updated 2-May-10 19:16pm
v2

1 solution

You have not mentioned what type of Calendar control you are using.
If you are using ASP.NET server side calendar control, you will be having an attribute AutoPostBackOnSelect.

If it's a Javascript one then you need to write for postback on Select of the date like:__doPostBack(id,"");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900