Showing posts with label boxes. Show all posts
Showing posts with label boxes. Show all posts

Saturday, March 24, 2012

calender control

well the ajax calender control goes behind the text boxes ...so whats will be the solution

Hi Asadikram02,

This question has been answered athttp://forums.asp.net/p/1153988/1893050.aspx#1893050.

This kind of issue often occurs on select control and we resolve it by identify its z-index property. Here is the Article which shows the solution. http://support.microsoft.com/default.aspx?scid=kb;en-us;177378

Best regards,

Wednesday, March 21, 2012

CalendarExtender to fill 2 date text boxes

Anybody know of a way for a single CalendarExtender to fill 2 text boxes?

I would like a single calendar to fill both a start and end date. Because the TargetControlID only takes one parameter, I'm not sure how to do this.

Spent some time on google trying to find a solution but came up empty.

Thank you.

I came up with this simple solution.

In Page_Load

If Page.IsPostBack =FalseThen

Me.txtStartDate.Attributes.Add("onchange","FillEndDate()")

End if

<scripttype="text/javascript"language="javascript">

function FillEndDate(){

document.aspnetForm.ctl00_ContentPlaceHolder1_txtEndDate.value = document.aspnetForm.ctl00_ContentPlaceHolder1_txtStartDate.value

}

</script>