Welcome Guest Search | Active Topics | Sign In | Register

Datepicker Options
Sherice
Posted: Monday, October 5, 2009 1:09:47 PM
Rank: Newbie
Groups: Member

Joined: 10/5/2009
Posts: 1
I am very new when it comes to using your control in an asp page. I am trying to use the datepicker function to insert a from and to date into a sql statement but not having any luck to get it to work. First this is possible and if so any insight on getting it to work would be greatly appreciated. Do I have to define the function as form fields?
eo_support
Posted: Monday, October 5, 2009 1:30:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I am not sure if you are using Classic ASP or ASP.NET. Classic ASP were widely used before ASP.NET was introduced in 2002. While ASP.NET is meant to replace Classic ASP, these two are very different. Our control is for ASP.NET, not Classic ASP.

If you do mean ASP.NET, then the best way for you start with is probably to try with a standard TextBox control first and get that working. That will help you understand what our DatePicker does and what it does not do.

When you use a textbox, user will enter a date into that textbox. When the page posts back (for example, when user clicks "Save" button), your server side code is fired and you would use something like TextBox1.Text to retrieve whatever use entered and then save it to your database with whatever SQL statement you may use.

DatePicker works very similar, it's basically an advanced textbox for you that will only allow you to enter date, and also provide you a drop down so that user can pick a date directly. Just like a textbox, you will need other controls to submit the page and additional code to write whatever user has entered (in this case a date) into your database. For DatePicker, you will need to use SelectedDate property instead of Text property (so the code will be something like DatePicker1.SelectedDate instead of TextBox.Text). Another thing that is also different is SelectedDate property is a DateTime object, where as Text is a String object.

Our online documentation contains guides about how to customize the DatePicker and complete reference about the control:

http://doc.essentialobjects.com/library/1/calendar/overview.aspx
http://doc.essentialobjects.com/library/1/eo.web.datepicker.aspx

Please keep in mind that if you are not familiar with general ASP.NET programming, you may want to familiar yourself with that first. Otherwise we maybe get the product working for you, but we may not be able to help you if you run into any problems. Our support doesn’t troubleshoot user code error.

Hope this helps.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.