Welcome Guest, you are in: Login

MUST Creative Engineering Laboratory

RSS RSS

Navigation



Technical Doc



Search the wiki
»

MUST Corp.

MUST Corp.

www.must.or.kr

 Microsoft CERTIFIED Partner Software Development, Web Development, Data Platform

 Microsoft Small Business Specialist

Microsoft Certified IT Professional

Microsoft Certified Professional Developer

Description

Html.RenderControl good for pages' splitting up or anything you want to separate like include in asp

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://ycg.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 : Default.aspx
  • Class:
  • Subclasses:   
  • Extends:  

Public Methods

<%:Html.RenderControl("test.ascx")%>

need test.ascx file in same folder

test.ascx example
<ul>
	<li>test</li>
	<li>test2</li>
</ul>

Example

Default.aspx

<%:Html.RenderControl("test.ascx")%>
<%:Html.RenderControl("test2.ascx")%>

test.ascx

<ul>
	<li>test</li>
	<li>test2</li>
</ul>

test2.ascx

<div>new test</div>

<script runat="server">
dynamic weather;
void Init()
{
   ......content ....
}
</script>

MUST Creative Engineering Laboratory

Image Image Image Image Image

Image Image Image Image Image Image Image Image Image Image Image Image

Copyright © 2010 MUST Corp. All rights reserved. must@must.or.kr
This Program is released under the GNU General Public License v2. View the GNU General Public License v2 or visit the GNU website.