In this part of the walkthrough , you will create a host page for the control , and then you will add a user control to the page 在演练的此部分中,将为控件创建主页面,然后将用户控件添加到此页面。
In the second part , you will create a new asp . net page the host page , and then add the user control to the asp . net page 在第二部分中,将创建新的asp . net页(主页面) ,然后将用户控件添加到此asp . net页。
An index page at the root of the site acts as the main page of the web site , a downloads area , and an area for administrators hereafter called 把站点根目录下的索引页作为web站点、下载区域以及管理员区域的主页面。
On the main screen you will see a list . the list is divided into categories . click on the category to see what you want to look for 在主页面你会看见一张名单。名单是由各种类别组成。点击类别查看你想要的新闻内容。
A : on the main screen you will see a list . the list is divided into categories . click on the category to see what you want to look for 在主页面你会看见一张名单。名单是由各种类别组成。点击类别查看你想要的新闻内容。
Do make make sure that when a visitor clicks on a link and goes to another page , they have no way of getting back to the main of your site 确保访问者点击一个链接之后会谈出另外一个页面,并且是他们无法再返回主页面。
In the third part , you will add custom properties and methods to the user control so that you can interact with the control from the host page 在第三部分中,将自定义属性和方法添加到用户控件,以便可以从主页面与控件交互。
From the standard group in the toolbox , drag the following controls onto the table on the host page , and then set the properties as indicated 从工具箱的“标准”组中,将以下控件拖动到主页面中的表格上,然后按如下所示设置属性。
Images can slow down your web pages , though , so you might want to have a thumbnail on the main product page with a link to more and / or larger images 尽管图象能使你的网页变慢,但是你需要在主页面设置一个较小的图像从而链接到一个大图片。
Up until now , there has been no need to create any kind of communication between the parent page a web site main page in our example and included content 迄今为止,还无需创建父页面(在我们的示例中是一个网站主页面)和所包含内容之间的任何类型的通信。