AJAX :: Add Dropdown For Selecting Month And Year
Mar 24, 2011Is it possible to add dropdown for selecting month and year within ajax calender.
View 5 RepliesIs it possible to add dropdown for selecting month and year within ajax calender.
View 5 RepliesI have a application where in on selection of Month and year, the datagrid should be display, username and the dates, the username and number of leaves from the database. UserName 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19..
Sam P P
Susi U
P - Planned Leave
U - Unplanned Leave
In database i have only Username, leave start and end date.
1.How to display the dates in column in datagrid based on month and year selection.
2.How to map the dates in the datagrid with the start and end date from sql server database
Is there a way to show year and month drop down on the calendar extender like the jquery ui calendar, If so could you kindly post it for me. If not would you be willing to show me how to do the jquery ui calender with Start Theme.
View 3 RepliesIs there any way that we can make year and Month as DropDown in Web Calender.
View 8 RepliesI have asp.net calender control on my form and I have dropdown for month and year. and one button When I select month and year from dropdown and then when i click Button then I want to be able to go the specified month and year on my calender?
View 5 RepliesI am trying to display results based on both dropdown list selection.If a user selects Jan from 1st ddl and 2013 from 2ns ddl then results of Jan 2013 will be displayed to the user,everything works fine,I wanted to confirm the query that I have used is correct or not.
Store Procedure
Create proc usp_monthwisedata
@month int,
@year int
[Code].....
My concerns are:
1.Is the way of writing the Sp is correct to achieve the result.
2.Is it correct to set the onselectedindexchanged of both the ddls to 1 method i.e onselectedindexchanged="DropDownList1_SelectedIndexChanged"
3.Over all Performance wise is it correct.
I am having one table in whic there is monthyear column and amount column..i want the data in gridview of monthyear less than current monthyear ...
my table entry is like this
Monthyear Amount
December 2013 10000
January 2014 20000
February 2014 60000
March 2013 40000
lblperiod.Text = " period " + "01/" + drpsmon.SelectedValue + "/" + drpsyr.SelectedItem.Text + "---" + System.DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month) + "/" + drpsmon.SelectedValue + "/" + drpsyr.SelectedValue;
i want the daate ie the 1st to the end of month when page is loaded i get the current months 01/06/2012 - 30/06/2012 but i want it on dropdown changed
i mean whever the user selcts in dropdown for month & year i want the period for the same
Is it real and how can I think about it.To make so the user will select only the month and year, not date, because he need a period on full month, not some date. here is simple control ...
<asp:TextBox ID="TextBox3" runat="server" />
<asp:CalendarExtender ID="TextBox3_CalendarExtender" runat="server"
Enabled="True" TargetControlID="TextBox3" />
but Calendar selects the day ... I need select the month.
My question first I use ajax calender in textbox1 and i want only month and year to other textbox2 from texbox1 automatically ...
View 1 RepliesI have two drops downs one for dislaying month & other for year till the current year
Here all months & year from 1900 till current year is displayed
I need to display the month or make user select the month & year only till one year back , not beyond that current month is june 2012
The user should be able to select months from may 2011 to june 2012 only
Same thing I need to accomplish with calendar control....
I am having an application which should contains a datepicker with drop down list for year and month. So how can I insert Drop down list into an ajax calendar extender control. I can't use 3rd party .dll like Calendar extender plus or 3rd party tools like jquery.
View 1 Replieshow i can get current month and year and show it in a lable in asp.net
View 4 RepliesI am developing a project in asp.net using c# coding. I m new to this field.
I need to add day/month/year to a text box in asp.net.
I hv 3 drop-down list. when i m selecting 3 dropdown list, its value must de shown in a text box.
how to get the days for particular month and year
Given the following method:
GetDaysPerMonth(string monthName, string year);
And the values "1" and "2010", how can I return the number of days within the specified month?
DateTime ExpMonth = Convert.ToInt32(ddExpMonth); ---- DropDown(user selects a month)
DateTime ExpYear = Convert.ToInt32(ddExpYear); ---- Dropdown(user selects year)
Datetime ExpDate = ///// I want this part to be saved as Datetime 02/2012
How is this possible?
I have a column in report that should display month and year together i.e single column will have both month and year(this is the first column of the table).
Ex: JAN/11
FEB/11
.
.
DEC/11
How can I do this?
I am using HoverMenuExtender on a label LinkButton .The Popup control is a Panel, that contains a DropDownList with some listitems inserted in it. Everything is going well, when i hover over linkButton that Panel and along with that that DropDownList appears.
Now problem is that when i hover over list items of DropDown , suddenly that Panel disappears before selecting any value.Panel disappears means that DropDownList also disappears. One rubbish solution is to increase the popup delay time to 3-4 seconds.
I have 2 button links and 1 text like this:
Previous JULY Next
Every time i press Previous, a variable mymonth subtracts 1 , and when if i press
Next , the variable mymonth adds 1.
Previous LINK: <%# mymonth - 1 %>
Next LINK: <%# mymonth + 1 %>
All the schedule from the DB is shown, using the following SQL:
SELECT DISTINCT day(mydate) FROM schedule WHERE month(mydate)=" + mymonth + " AND year(mydate)=" + myyear + " ORDER BY day(mydate) ASC"
But my problems are:
- i want to show 3 months backwards from th actual month
- when mymonth is 1 (January) 2011 for example, it would show December, November and October from 2010
- If for example, we are in JULY, it would show until APRIL backwards, and when on APRIL it wouldnt show the PREVIOUS button.
I am building an array by month and year. Present format is mm/yyyy. I need the format to be mm/yy.
Code:
Dim myNewdate As DateTime
Dim myMonthArray(11) As String
Dim i As Integer = 1
[code]....
DateTime dayStart;
DateTime dateEnd;
TimeSpan ts = dateEnt - dateStart;
Print : ... Year(s) and ... Month(s)
how can I calculate it?.net framework 2.0c# asp.net project.
I want to date format like this 1-Apr-2010 in asp.net (1st date followed by month in string and followed by current year....).
View 4 RepliesI have a textbox that gets the date from an AJAX Calendar extender. What I need to do is extract the "month," "day," and "year," and put them into seperate string variables to use in my code to do various things based on the month, day or year respectively.
Here is what I have so far:
[code]....
But I don't want the year NOW, I want the year from the textbox.
I have a date and I need to populate a drop-down with the months/years between that date and today. For instance, if that date is 10/14/2010 then the drop-down should contain October 2010, November 2010, December 2010, January 2010.
The way I'm thinking of doing this is to pass that date to a function, loop from today backwards step 1 month while adding each month to a collection until we reach that date and finally return a collection of strings. Then, populate the drop-down control on page load. Finally, use some ajax with a page method to parse back the string and trigger a partial page reload.
I have a requirement that I have to retrieve data base on month and year.I am using the below query
<pre lang="sql">SELECT SUM(areasft),DATEPART(year, sdate),DATEPART(month, sdate) FROM storedata
GROUP BY DATEPART(year, sdate) ,DATEPART(month, sdate)
ORDER BY DATEPART(year, sDate) ,DATEPART(month, sDate)</pre>
The above query is retrieve data like below.
SUM YEAR MONTH
51013 2000
1
30970 2007
1
NULL 2007
3
900 2007
6
807 2007
8
NULL 2007
9
1756 2007
10
7535 2007
11
NULL 2008
1
1193 2008
2
4230 2008
3
350 2008
4
2200 2008
5
4660 2008
6
6685 2008
8
But I need to display including all the months of the year along with year irrespective of SUM . My query only displays only some months in a year.