add this style
.ajax__calendar_container { z-index : 1004 ; }
add this javascript
function dateEditor_OnShown(dateControl, emptyEventArgs)
{
var shimWidth = dateControl._width;
var shimHeight = dateControl._height;
// Open current popup
// Create the popup element
var dateEditorShim;
dateEditorShim = document.getElementById("dateEditorShim");
dateEditorShim.style.width = dateControl._popupDiv.offsetWidth;
dateEditorShim.style.height = dateControl._popupDiv.offsetHeight;
dateEditorShim.style.top = dateControl._popupDiv.style.top;
dateEditorShim.style.left = dateControl._popupDiv.style.left;
dateControl._popupDiv.style.zIndex = 999;
dateEditorShim.style.zIndex = 998;
dateEditorShim.style.display = "block";
}
// Function: dateEditor_OnShown
// Summary: Handles the OnShown event of the dateEditor control.
// Inputs: dateControl -> The date control object
// emptyEventArgs -> Empty event arguments raised by the date control
// Remarks: Make sure to insert a shim of an empty iframe underneath the calendar popup container
function dateEditor_OnHiding(dateControl, emptyEventArgs)
{
var shimWidth = 0;
var shimHeight = 0;
// Open current popup
// Create the popup element
var dateEditorShim;
dateEditorShim = document.getElementById("dateEditorShim");
dateEditorShim.style.width = 0;
dateEditorShim.style.height = 0;
dateEditorShim.style.top = 0;
dateEditorShim.style.left = 0;
dateEditorShim.style.display = "none";
}
//add this in code
calDOB.OnClientShown = "dateEditor_OnShown";
calDOB.OnClientHiding = "dateEditor_OnHiding";
Wednesday, November 26, 2008
Tuesday, November 25, 2008
Error in Calendar Extender because the master page has asp tag <%%>
Today, I just annoyed with this error.
Every form which using Calendar extension works fine before.
and somehow after I change the master page, it start to show an error said :
=================
System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. ).
=================
Luckily, with Tom's Help, I found the problem.
It was on the master page on the header java script which use <%= ... %> to get the content from server....
Every form which using Calendar extension works fine before.
and somehow after I change the master page, it start to show an error said :
=================
System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. ).
=================
Luckily, with Tom's Help, I found the problem.
It was on the master page on the header java script which use <%= ... %> to get the content from server....
Thursday, November 20, 2008
Wednesday, November 19, 2008
Url Rewriting VS Postback
To Resolve a problem in postback for url rewriting,
you can use control adaptor and rewrite the form.
public class FormRewriter : System.Web.UI.Adapters.ControlAdapter
more information : visit : http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
you can use control adaptor and rewrite the form.
public class FormRewriter : System.Web.UI.Adapters.ControlAdapter
more information : visit : http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
Thursday, October 23, 2008
EnableSortingAndPagingCallback Issue With LinqDataSource
Today, I found an issue with EnableSortingAndPagingCallback and LinqDataSource
I enable the EnableSortingAndPagingCallback on my GridView and using LinqDataSource.
Somehow after I tested, I always get error on deleting the row after move to the next page.
====
The solutions which work well is Use Update panel instead of EnableSortingAndPagingCallback.
I think it's better to use Update Panel rather then enableSortingAndPagingCallback, it some reason, it's faster and also include editing and deleting as well.
I enable the EnableSortingAndPagingCallback on my GridView and using LinqDataSource.
Somehow after I tested, I always get error on deleting the row after move to the next page.
====
The solutions which work well is Use Update panel instead of EnableSortingAndPagingCallback.
I think it's better to use Update Panel rather then enableSortingAndPagingCallback, it some reason, it's faster and also include editing and deleting as well.
Monday, October 13, 2008
SWF Library to convert image
I just find library to convert SWF to image. it's called SWFToImage.dll from bytescout.
but it is activeX. which we don't want to use.
and I find others called swfdotnet-1.0 but unfortunately, it only support swf version 7.
Any other library for this ?
Thanks.
but it is activeX. which we don't want to use.
and I find others called swfdotnet-1.0 but unfortunately, it only support swf version 7.
Any other library for this ?
Thanks.
LINQ will arround the DateTime.MaxValue
Today, I just fixed the bugs which is interesting.
if we use linq to filter data with this DateTime.MaxValue.TimeOfDay.ToString();-
which will be appear show the time 23:59:59.9999999
Linq will add up to the next day.
so the solution never use the MaxValue.TimeOfDay.. just use simple string 23:59:59 and it's enough.
(o,o)
if we use linq to filter data with this DateTime.MaxValue.TimeOfDay.ToString();-
which will be appear show the time 23:59:59.9999999
Linq will add up to the next day.
so the solution never use the MaxValue.TimeOfDay.. just use simple string 23:59:59 and it's enough.
(o,o)
Subscribe to:
Posts (Atom)