Page History: Html.RenderControl
Compare Page Revisions
Page Revision: 2011/04/05 10:12
Description
Html.RenderControl good for pages' splitting up or anything you want to separate
Bonghwa tour -> main page - but it is used inside MainWidgets.cs
main-page - also used inside MainWidgets.cs
if you check
http://ycg.kr/open.content/ko/administrative/policy/
you can see inside default.aspx such things
<%:Html.RenderControl("test.ascx")%>
inside
test.ascx you put html and init function
http://ycg2011.wyou.co.kr/open.content/ko/weather.ascx for example
like include in asp
but you also can write
Init() function
if you have dynamic html, like in case of
weather.ascx
<script runat="server">
void Init()
{
//blah-blah-blah
}
</script>
like Page_Load
Class
- Package:
- Defined In : index.ashx
- Class: AssetsTextToImage
- Subclasses:
- Extends:
Config Options
<config divider="" background="" contrast="">
<span margin="" font="" style="" size="" color="" />
<span margin="" font="" style="" size="" color="" />
</config>
Public Properties
- divider : like "^"
- background : like "background.png"
- contrast : like "12"
- margin : like "0,1,0,0"
- font : like "Gothic.ttf"
- style : like "bold"
- size :like "14"
- color : like "#222222"
Public Methods
<%=Html.Subject("SUBJECT") %>
when using divider
<%=Html.Subject("SUB^JECT") %>
Public Events
subjectimage folde : /assets/dynamic/subject/cache/
though delete in cache file, the image'll automaticly generate in cacahe folder
Example
example