R
rbutch
hey guys, i may be totally in left field on this, but i'll try to explain.
using a web form and VB.net.
a simple text box control.
and added an 'onclick' event to bring up another aspx form with a calendar.
works fine.
txtCal.Attributes.Add("onclick", "window.open('MyCalendar.aspx',null,'height=200,width=250,top=200,left=200,status=no,resizable=no,scrollbars=no,toolbar=no,location=no,menubar=no');")
what im trying to do is after the (floating calendar) comes up and the user chooses a date, the calendar should close.
and it does.
i added that to the "selectionChanged" event.
Calendar1.Attributes.Add("onclick", "window.close('MyCalendar.aspx');")
now, my goal here is to have that date populate the original Default Form.
i can add it to the session state.
Session("mydate") = Calendar1.SelectedDate
and that works fine as well and the calendar closes.
now to the real question. there is nothing on the original form to trigger that update since it's just sitting there on the screen.
and using.
Response.Redirect("Default.aspx")
doesnt work either since it brings the "Default.aspx" up in the actual calendar window.
but i can refresh that "Default" screen and the value is there, it's just simply showing the same state as what it was when i brought the calendar up.
so, am i way off base on trying to do it this way?
do i need to go the javascript route on this?
it seems so close if only there was some event that would trigger the original form to show the session variable.
thanks again for any help
rik
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
using a web form and VB.net.
a simple text box control.
and added an 'onclick' event to bring up another aspx form with a calendar.
works fine.
txtCal.Attributes.Add("onclick", "window.open('MyCalendar.aspx',null,'height=200,width=250,top=200,left=200,status=no,resizable=no,scrollbars=no,toolbar=no,location=no,menubar=no');")
what im trying to do is after the (floating calendar) comes up and the user chooses a date, the calendar should close.
and it does.
i added that to the "selectionChanged" event.
Calendar1.Attributes.Add("onclick", "window.close('MyCalendar.aspx');")
now, my goal here is to have that date populate the original Default Form.
i can add it to the session state.
Session("mydate") = Calendar1.SelectedDate
and that works fine as well and the calendar closes.
now to the real question. there is nothing on the original form to trigger that update since it's just sitting there on the screen.
and using.
Response.Redirect("Default.aspx")
doesnt work either since it brings the "Default.aspx" up in the actual calendar window.
but i can refresh that "Default" screen and the value is there, it's just simply showing the same state as what it was when i brought the calendar up.
so, am i way off base on trying to do it this way?
do i need to go the javascript route on this?
it seems so close if only there was some event that would trigger the original form to show the session variable.
thanks again for any help
rik
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...