View Complete Post
I am using a Jquery datepicker in my project.There are a lot of pages where I use this date picker and w henever I select any date
from that ,am getting an error "length is null or not an object error on line 173"
The HMML for my datepicker control is
<input type="text" id="dpAgreementExpDate" runat="server" maxlength="10" />
Hello, I have the most frustrating problem and being new to JQuery does make it more difficult. I have an ASP.NET web user control with an ASP.NET box which I want to apply a JQuery date picker to, then of course I have server side code which takes the date and processes it etc. The date picker will not work. I can achieve a working JQuery date picker with an ASP.NET textbox if there is no user control involved, or within the user control I use a html text box instead, but once I add runat="server" to the text box, it does not work. Is there a way I can achieve this? (the web user control will be wrapped in an update panel too which at the moment will work with the html control/web user control without the server side functionality)
<%@ Register TagPrefix="TE" TagName="JobHistory" Src="test.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I'm at my wits end!
When previewing a report on one of our machines, the date format for a parameter insists that en-GB dates are invalid (dd-mm-yyyy-). Instead, it requires en-US (mm-dd-yyyy). When deploying the report, it goes back to the correct format of en-GB.
Bear in mind, this works on all of the rest of our development machines exactly as required. Only this one machine doesn't work.
I've tried: -
I'm trying to do date validation on a date and time picker through code (i want to make sure that the date is later than today and that the next date is at least one day later than that).
But when i try to get the value in the chagned event, i keep getting empty string as value.
What am i doing wrong here??
This is the code:
public void LeaveRequestFrom_Changed(object sender, XmlEventArgs e)
// Write your code here to change the main data source.
XPathNavigator xroot = MainDataSource.CreateNavigator();
XPathNavigator fromdate = xroot.SelectSingleNode(
if (fromdate.Value != "")
//Make sure the from date is in the future
if (DateTime.Parse(fromdate.Value) < DateTime.Today.AddDays(1))
I have a simple date field on form, it puts the date picker way out there, i.e., not next to the date field. This is happening to all forms to capture data for lists. How do I bring this right next to the date field?
I've searched the forum and net but can't find anything tht exactly explains how I can fix my problem. The closest I've come is this thread
I'm using Datepicker to pass date parameters to an MDX query.
The Date Picker uses the format YYYY-MM-DDTHH:MI:SS e.g 2010-01-01T00:00:00
My Key is 20100101
I've tried various things but can't get it to transform the datepicker date correctly. Two examples below. Does anyone have any insight in to what else I could try.
STRTOMEMBER("[Date].[Date].&[" + Format(CDate(@StartDateParam), "yyyyMMdd") + "]") :
My Data was created by retrieving ODBC data - using PowerPivot for Excel 2010, and has Birthdate defined as a Data Type = "Date". This was uploaded to SharePoint, and a New Dataset was created to point at it.
I'm using Microsoft SQL Server 2008 R2 Report Builder 3.0. I tried to filter this data on Birthdate, but when I go into the Filter, and specify the field that was defined as DataType = "Date" in PowerPivot - Report Builder changes the type to "Text",
and gray's out the field so that I can't change it to "Date".
If I create an Expression as Cdate(Birthdate.Value), it lets me change the Data Type to "Date", and works appropriately, but we don't want to have to do this with every date field.
Why doesn't Report Builder see this field as a Date ?
I have an application that uses a time date picker control to display a date from a sql (sql 2000) table. Casting from the table to the control works fine, but writing a selected date from the control back to the database does not, I was under the impression that a datatype 'date' in VB would be compatible with SQL datetime datatime, and obviously it is from sql to vb as the date is correctly displayed in the control reading from the table. How do I need to convert the value from the date time picker control to write into sql ?