WebForm
G2po0010. aspx: <% @ Register src = "UserControl/ccnListContorlascx. ascx" tagname = "ccnListContorlascx" tagprefix = "uc1" %>
<Uc1: ccnListContorlascx ID = "ccnListContorlascx1" runat = "server"/>
G2po0010. aspx. cs: public partial class g2po001: System. Web. UI. Page
WinForm
There are several text boxes on the IP Control Panle control.
IPBox. cs: public partial class IPBox: UserControl
Unverified code reference for custom paging controls
UCPageControl :UserControl pageSize = ; nMax = ; pageCount = ; nCurrent = ; pageCurrent = ; = = ; DataTable dtInfo = dt; ( dtInfo != && dtInfo.Rows.Count>== (nMax / pageSize); ((nMax % pageSize) > ) pageCount++ nStartPos = ; nEndPos = ; = dtInfo.Clone(); (pageCurrent == pageCount) == pageSize * pageCurrent; = nCurrent; labSum.Text = + pageCount + ; labCurrent.Text = + Convert.ToString(pageCurrent) + ; ( i = nStartPos; i <nEndPos; i++ nCurrent++= linkLast_LinkClicked(-- (pageCurrent <= , = pageSize * linkNext_LinkClicked(++ (pageCurrent >= pageSize * IsNumeric(= System.Text.RegularExpressions.Regex( linkLabel1_LinkClicked( (!String.IsNullOrEmpty(textGo.Text.Trim()) && IsNumeric(textGo.Text.Trim())) = pageSize *