Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Render twice
pgeza1
#1 Posted : Monday, January 16, 2012 2:49:19 PM(UTC)
Rank: Newbie
Groups: Registered

Joined: 10/25/2011(UTC)
Posts: 9
Location: Budapest
I have a Layout name "master" with a position (placeholder) named "main".
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	@Html.FrontHtml().HtmlTitle()
	@Html.FrontHtml().Meta()
	@Html.FrontHtml().RegisterStyles()
</head>
<body>
@Html.FrontHtml().Position("main")
</body>
</html>

I put a view in this placeholder with this code:

Code:
@{
  Response.Write(DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK") + "<br/>");
}


As i run the page the date is rendered twice, with different times. Do anybody knows why? is it an mvc issue or kooboo?

Thanks in advance,
Géza
jifeng
#2 Posted : Wednesday, January 18, 2012 1:08:57 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Please check if you add the view into the position twice?
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
pgeza1
#3 Posted : Wednesday, January 18, 2012 8:27:19 PM(UTC)
Rank: Newbie
Groups: Registered

Joined: 10/25/2011(UTC)
Posts: 9
Location: Budapest
I checked it. It is only once.
I made a whole empty site from the downloaded package.
Added a new view "test" with the content mentioned before


http://kooboo.edonette.net/test
feel free to login and do anything

thanks in advance
jifeng
#4 Posted : Thursday, January 19, 2012 2:35:18 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China

oops, it is a bug. Fixed at:http://kooboo.codeplex.com/SourceControl/list/changesets

Thanks a lot!
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
1 user thanked jifeng for this useful post.
pgeza1 on 1/19/2012(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.055 seconds.