calender
-
hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????
-
hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????
use ajax control calentdar. you can get it from here. http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx
Regards Keyur Satyadev
-
hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????
-
still no luck, i have the following code :- function Calender() { var date = document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value; var cal = window.showModalDialog('Calender.aspx', date, 'resizable:off;dialogheight:250px;dialogwidth:360px'); document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value = cal; } now on child page i added (var read = window.dialogarguments;) but know i dont know how to take value from calender and return it back.... :( someone help
-
still no luck, i have the following code :- function Calender() { var date = document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value; var cal = window.showModalDialog('Calender.aspx', date, 'resizable:off;dialogheight:250px;dialogwidth:360px'); document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value = cal; } now on child page i added (var read = window.dialogarguments;) but know i dont know how to take value from calender and return it back.... :( someone help
whay you are not using the ajax control toolkit and calendar control of it. just you have to write 3 lines that enough. you don't have to make any coding.
Regards Keyur Satyadev
-
hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????
-
whay you are not using the ajax control toolkit and calendar control of it. just you have to write 3 lines that enough. you don't have to make any coding.
Regards Keyur Satyadev
how, am new at all this, and am trying to have knowledge about this so can u help ??
-
This DatePicker Control[^] is a really easy to use (free!) control. Just put it in an AJAX UpdatePanel and it should do want you need. Hope that helps.
no need to datepicker, i need code..... :(
-
how, am new at all this, and am trying to have knowledge about this so can u help ??
sorry for let response as i was left the office. download the ajax control toolkit and give referenct it into your project. put this line in aspx page at 2 line <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> now simillar to asp:Label you will get the cc1:CalendarExtender . for details of using you can also refer my previous reply and you will get that how to use it. its very simple. hope this is fine for you. let me know if you have ant doubts still.
Regards Keyur Satyadev