AJAX :: CalendarExtender Cleared After Postback?
Mar 18, 2011
i desinged an page with updatepanel within that i used ajaxcalendarExtender control. now i selects the date after that click on the button based on this date then the application will read the data from the database and bind into the GV. but after this postback the calendar get cleared. i checked my page there is no place i cleared this date. but i dont know why this date has cleared. below is my code
<asp:TextBox ID="txt1" runat="server" Width="80px" CssClass="searchtext" ReadOnly="true" />
<img id="img1" src="datePic.gif" title="Date" height="20px" />
<ajaxToolkit:CalendarExtender ID="cal1" runat="server" PopupButtonID="img1" CssClass="AjaxCalendar" TargetControlID="txt1" />
<asp:CustomValidator ID="dateValidator" runat="server"></asp:CustomValidator>
View 1 Replies
Similar Messages:
Jul 8, 2010
This has been driving me nuts all day. I've seen this problem crop up here a few times, essentially I have a drop down list that populates a form below when it's changed - basic stuff. On first page load everything is fine, but when the dropdownlist is changed, it's entirely blank after postback and the SelectedIndexChanged event never fires. I believe it all points to a viewstate problem. Here's the code..
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditUser.ascx.cs" Inherits="Controls_EditUser" %>
<asp:DropDownList OnSelectedIndexChanged="SelectedIndexChanged" AutoPostBack="true" ID="UsersList" EnableViewState="true"
runat="server" DataTextField="EXTRANET_USER_EMAIL" DataValueField="EXTRANET_USER_ID">
[Code]....
View 2 Replies
Dec 6, 2010
have a change password form ..It has 3 textboxes in it ..There are corresponding 3 required field validators ..When i enter value in these textboxes and press submit button data in these textboxes are cleared ..I want these values to be retained by the textboxes ..How to do?
[Code]....
View 1 Replies
Nov 28, 2012
In my web application i am setting the EnableViewState="false" for particuler page. In that page i am having two dropdowns,this dropdown binding the data in Page_Load event. So when i am clicking the button that two dropdown values are getting celared. see the below sample code.
<%@ Page Title="" Language="C#" MasterPageFile="~/MobileMaster.master" AutoEventWireup="true"
CodeFile="ViewMapTag.aspx.cs" Inherits="ViewMapTag" EnableViewState="false" %>
<asp:DropDownList ID="ddlHashTag" EnableViewState="true"
runat="server">
</asp:DropDownList>
[CODE]...
View 1 Replies
Dec 21, 2012
I have a textbox of read only type with jquery datepicker so when the page post backs then that textbox value gets cleared. I do not want the textbox value to get clear but at the same time i need postback the page also..
View 1 Replies
Jun 15, 2013
I have created a web form in which i have used user control there is linkĀ button on different link button user control loads . i have added dynamically webcontrol to that link button . they are loading properly but when i try to save data through one of user control on click of button the user control disapper from that place but when i put static user control to my page its working
View 1 Replies
Apr 26, 2010
Cannot find an explanation of the AJAX CalendarExtender's attribute animated.
What does this do exactly?
View 3 Replies
Jun 2, 2010
when using CalendarExtender with a TextBox, when i press mouse into the TextBox, a Calendar pop-ups. I want to know, does here asynchronous communication took place for bringing this calender from server to the browser ? or initially at the time of page load itself that calendar was loaded in the browser ?
View 4 Replies
Mar 20, 2010
I am having a very weird problem with 'CalendarExtender' as Ajax control in my application.
I added this extender to one of my textbox controls, but when I run the application and click on the textbox nothing happens. It does not show any errors either.I have added all the necessary references:
'AjaxControlToolkit.dll' & 'System.Web.Ajax.dll' to the project, but it des not work for some reason. Here is and the problematic piece of code:
[code]....
View 4 Replies
Jan 21, 2010
i have a follwing code:
[code]....
basically wot i m doing is to validate the textbox that having the date but nothing happen as i dont select the date, textbox is only readonly, can any one assist me in this matter?
View 6 Replies
Feb 24, 2010
ASP.NET Ajax toolkit has a CalendarExtender control which is very cool as associate the CalendarExtender to a a TextBox. here am using two Ajax toolkit has a CalendarExtender controls with two textboxes but i want to validate of both CalenderExtenders ....... 2nd CalenderExtender Date should Greater Than 1st CalenderExtender Date.
View 2 Replies
Oct 1, 2010
I can't have my culture on CalendarExtender ? I've tryed to set Culture and UICulture to auto on the container page, but calendar still in US ?this CalendarExtender is on an Usercontrol.
View 2 Replies
Mar 12, 2010
what is the use for modeChangeAnimation property in CalendarExtender(Ajax control toolkit control).
View 1 Replies
Dec 15, 2010
When I set textbox readonly property true I'm getting textbox.Text empty value on postback
[Code]....
[Code]....
[Code]....
How to get value for CalendarExtender from readonly textbox
View 3 Replies
Dec 24, 2010
I m facing one problem whenover I use ajax calendar i m using this code at the time of file download
TargetControlID="TextBox1" & TargetControlID="TextBox2" is associated from ajax CalendarExtender
string abc = "CPCB_" + TextBox1.Text + "_" + TextBox2.Text;
Current.Response.Buffer = true;
[code]...
View 1 Replies
Sep 23, 2010
Strange problem with CalendarExtender
[Code]....
The text box is updated correctly if it is empty or if the date is invalid e.g. 9/292010.
If the current text is 9/29/2010 and a different date is clicked then the calendar stays open with the previous date selected. I get the following error message "e.getDateOnly is not a function".
View 6 Replies
Jun 9, 2010
I have the following calendarextender connected to a text box (TextBoxDate). When I choose a new date, I can see that the textbox is updated. However, when I call the text box in a vb script, run when I click a button, the text box is null. The script worked fine when I would enter the date by hand. The failure began when I added the calendarextender.
<asp:TextBox ID="TextBoxDate" runat="server" style="text-align: center" Width="93px"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server"
PopupButtonID="TextBoxDate" TargetControlID="TextBoxDate"
FirstDayOfWeek="Monday">
</asp:CalendarExtender>
View 3 Replies
Jan 12, 2010
my question is if anybody know how to execute method when select some date in calendarextender because i need get some information when i select the date
View 1 Replies
Jan 26, 2010
`I'm working with masterpages and after reading a lot of answers I can't find why my calendarextender doesn't appear Here is my code
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="DefaultAlumno.master.cs" %>
<html>
<head runat="server" id="Head1">
<title>
Gestor
</title>
</head>
<body>
<form id="form1" runat="server">
<table style="background-color:#3366FF" cellspacing="0" cellpadding="5" border="0" height="80%">
<tr height="20px">
<td style="width: 100px">
</td>
<td style="width: 100px">...................
View 8 Replies
Jul 8, 2010
If the date selected (in the calendarExtender) is not in the allowed range, I want to reset the selected date to null in the "OnClientDateSelectionChanged" event. Dont know how.
View 3 Replies
Mar 8, 2011
Is there a way to set a maximum of a CalendarExtender? Like it can't go farther than '2079-06-06' (This is the limit ouf SqlServer SMALLDATETIME). Or the only way to block the user from entering a date that is out of range is to verify manually?
View 2 Replies
Jan 11, 2011
I have two calendar controls where format is set to "d-M-yyyy". When the corresponding textboxes are filled (from calendar control or typed) i do acallback with the new value. When value from first textbox > value from second textbox I swap the values. This part works... However if i try to set the values by using calendar.set_selectedDate(value) - where value is a string in the same format as the calendar should accept - then calendar produces output in the format "MM-dd-yyyy" which is not correct!
As a result, I'm now setting values for the text-fields, which does not update the calendar..
View 1 Replies
Mar 4, 2010
how to use/call ajaxToolkit:CalendarExtender in an xslt as I have an xslt control that renders data to my page but I am using ajax for the site now and I have to update a few xslt pages so that I can use ajax controls.PS : I don't understand xslt's much but do understand that they use standard html/javascript controls.
View 1 Replies
Dec 26, 2010
Is it possible remove the last years of CalendarExtender ?
View 5 Replies
Jan 31, 2011
it seems like CalendarExtender don't have the onDayRender Event.so it means i have to use javascript? i want to disable all the dates in the past?how can i do that?
View 4 Replies