This has very little to do with ASP.NET 2 (or ASP.NET at all, really)...
since most of what you will do is in client-side Javascript. Add an
onfocus and onblur event to the textbox's attributes collection, that will
trigger a function to show and hide the calendar:
myTextBox.Attributes.Add("onfocus", "showHideCalendar(true);")
myTextBox.Attributes.Add("onblur", "showHideCalendar(false);")
then write a Javascript function to do the work:
<script language="Javascript">
function showHideCalendar(bVisible) {
var myCalendar = document.getElementById("theIDofTheCalendarContainer");
if(bVisible) { myCalendar.style.visibility = "visible"; }
else { myCalendar.style.visibility = "hidden"; }
}
</script>
That's basically it; you may have to tweak a few things for your
situation.
Cheers,
Peter
On 3/27/06, shyms05 <[EMAIL PROTECTED]> wrote:
>
> hi
>
> i actually have a textbox in which on having cursor on it, a calendar
> must be visible,then after selecting the date, the calendar must not
> be visible.
>
> hope u all have understood my question. plz help.
>
> Thanking u all in advance.
>
> regards
> shyms
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNet2/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/