tentavarious
asked on
Free client side calendar control asp.net
Hello experts, up until now I have created a popup calendar using a little bit of javascript to call a window passing the textfield to an asp.net calendar control. It works fine, but eats up server resources and I have problems with users minimizing the window, containing the calendar, and forgetting about it. When they click the image to bring up the calendar it doesnt work, because the window is already open. I want to implement a client side calendar control that can interact with my asp.net textfields. Does anyone know of a free control, or something I can implement strictly client side?
Here is what I am currently doing to simulate a popup calendar
'Page that calls calpopup.aspx page.
<script language="javascript">
//-----------Popup windows functions for calendars and cellnames
function start()
{
window.open('calpopup.aspx ?textbox=t xtsdate',' cal','widt h=200,heig ht=200,lef t=200,top= 215')
}
function enddate()
{
window.open('calpopup.aspx ?textbox=t xtedate',' cal','widt h=200,heig ht=200,lef t=200,top= 215')
}
</script>
<a onclick="start()"><img id="imgstart" src="images\smallcalendar. gif" /></a>
'Popup calendar page codebehind
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
control.Value = Request.QueryString("textb ox").ToStr ing()
End Sub
Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim strScript As String = "<script>window.opener.doc ument.form s(0)." + control.Value + ".value = '"
' strScript += calDate.SelectedDate.ToStr ing("yyyy/ MM/dd")
strScript += calDate.SelectedDate
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock( "anything" , strScript)
End Sub
Here is what I am currently doing to simulate a popup calendar
'Page that calls calpopup.aspx page.
<script language="javascript">
//-----------Popup windows functions for calendars and cellnames
function start()
{
window.open('calpopup.aspx
}
function enddate()
{
window.open('calpopup.aspx
}
</script>
<a onclick="start()"><img id="imgstart" src="images\smallcalendar.
'Popup calendar page codebehind
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
control.Value = Request.QueryString("textb
End Sub
Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim strScript As String = "<script>window.opener.doc
' strScript += calDate.SelectedDate.ToStr
strScript += calDate.SelectedDate
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock(
End Sub
ASKER
Its pretty good, but its very similiar to what I have. It loads a new window containing the calender. I was thinking of a calendar more like on travelocity and orbitz where the calendar is within the same page.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That calender looks really cool, but it looks like its only free at a minimal service. But thats the type of popup I am looking for.
http://www.softcomplex.com/products/tigra_calendar/demo1.html