Hi dnn experts,
I am developing a module using DotnetNuke4 and Asp.net2.0.My problem is in accessing the end date of tab.Whenever i access the Startdate and Enddate of tab,it shows following on printing it
Start date:1/1/0001
End date:31/12/9999
But the problem arises when i try to access the Startdate and Enddate of its child node(which i have calculated by using GetTabsByParentId(tId2) stored procedure where tId2 is tabid of parent tab,it shows
Start date:1/1/0001
End date:1/1/0001
My problem is where are these dates coming from when there is null entry in database,are these values hard coded anywhere in DNN coding.
Secondly why is end date different in case of parent tab and child tab.I want to set access rights on basis of this end date.Can anybody help....................A part of my coding is given below for your reference
Response.Write("--Parent--" + tabInfo2.EndDate.ToString() + "<br>");//Here the result comes out to be 12/31/9999
if (tab.HasChildren)//check if children present
{
DotNetNuke.Entities.Tabs.TabController tabController2 = new DotNetNuke.Entities.Tabs.TabController();
//get all children of this parent
foreach (DotNetNuke.Entities.Tabs.TabInfo tabInfo2 in tabController2.GetTabsByParentId(tab.TabId))
{
Response.Write("--Child--" + tabInfo2.EndDate.ToString() + "<br>");//Here the result is 1/1/0001