Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind form textbox to calendar control 1

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
Guys,

when doing in asp...lets say i have something like this:

<input type="text" name="FromDate" onfocus="showCalendarControl(this);" >

how can do the similar thing using asp.net textbox...what is the equivalent of onfocus...

i tried
<asp:textbox id="subdate" onfocus="showCalendarControl(this);" runat="server">

and obviously it did not work...i have the corresponding css and js files included in the project...

any suggestions...

-DNG
 
is there a work around like adding a place holder and make it invisible and when the textbox is focussed make it visible and show the calendar??

or else i will go ahead and open the calendar in new window.

-DNG
 
i think these two lines in the js file are displaying the calendar...

document.write("<iframe id='CalendarControlIFrame' src='javascript:false;' frameBorder='0' scrolling='no'></iframe>");
document.write("<div id='CalendarControl'></div>");

is there any work around...or do i need to open a new window..

any code suggestions...

thanks

-DNG
 
I think using a popup would be better in this case. Like I said , it would not require you to hard code where the calendar goes. As for the javascript involved. You may need to to the the js forum for that. I don't have my sample code available to me.
 
All this help and no stars..... tsk tsk

Have some on me guys, and keep up the good work.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
kaht...thanks for giving them stars...i was about to award them which i always do...

i was just busy dealing with other datagrid problem...and Jim is the one who is helping me again on this...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top