help-- why scheduler wont show up in content page asp.net

hello, can i get some help here…i try to put the scheduler in the content page in my asp.net but nothing was show up.what happen:?: . here my code:

[code]<%@ Page Title=“About Us” Language=“C#” MasterPageFile=“~/Site.master” AutoEventWireup=“true”
CodeBehind=“About.aspx.cs” Inherits=“Why.About” %>

<asp:Content ID=“HeaderContent” runat=“server” ContentPlaceHolderID=“HeadContent”>

</asp:Content>
<asp:Content ID=“BodyContent” runat=“server” ContentPlaceHolderID=“MainContent”>

 
 
		<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
		<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
		<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
	</div>
	<div class="dhx_cal_header">
	</div>
	<div class="dhx_cal_data">
	</div>
</div>        

</asp:Content>
[/code]

and its show nothing…


then i tried to move the

tag like this:

[code]



 

 


		<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
		<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div></div>
		<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
	
	<div class="dhx_cal_header">
	</div>
	<div class="dhx_cal_data">
	</div>
</div>        [/code]

and its working…at least it shows something…


please somebody help me…i don’t understand why its not showing up. its work fine when i put the schedule in a page that not using a masterPage but not in the contentPage :frowning:
really appreciate your help people…

There are two places where problem can occur

style=‘width:100%; height:100%;’ in the scheduler’s container.
Those sizes will be calculated from the parent container, not from the whole window. So it possible that due to some css style it will result in zero width or zero height.
You can try to replace percents with pixel based sizes.

function init() {
I don’t see from which place it called ?
To be sure that it is called after document loading you can place next after it

dhtmlxEvent(window, “load”, init);

hi, thank you so much for replying me. really appreciate it :slight_smile:

You’re right! the problem came from style=‘width:100%; height:100%;’
that’s the problem…i can see the scheduler now…thanks a lot!

oh! and by the way, the function init(){ was called in my on_Load() method where i put it in my codebehind here:

[code]using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Why
{
public partial class About : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
HtmlGenericControl body = this.Master.FindControl(“body”) as HtmlGenericControl;
body.Attributes.Add(“onLoad”, “init();”);

    }
}

}[/code]
its working and i tested it.so i don’t think its a problem :slight_smile:

again, thank you so much for helping me out! :smiley: