<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.NET_Tutorial%2FWebPart%2FWebPart</id>
		<title>ASP.NET Tutorial/WebPart/WebPart - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.NET_Tutorial%2FWebPart%2FWebPart"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/WebPart/WebPart&amp;action=history"/>
		<updated>2026-04-30T16:02:24Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.NET_Tutorial/WebPart/WebPart&amp;diff=2535&amp;oldid=prev</id>
		<title> в 15:30, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/WebPart/WebPart&amp;diff=2535&amp;oldid=prev"/>
				<updated>2010-05-26T15:30:57Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:30, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.NET_Tutorial/WebPart/WebPart&amp;diff=2536&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/WebPart/WebPart&amp;diff=2536&amp;oldid=prev"/>
				<updated>2010-05-26T11:56:10Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Creating a custom Web Part control (C#)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
using System.Web.UI.WebControls.WebParts;&lt;br /&gt;
&lt;br /&gt;
public class StateListBox : WebPart&lt;br /&gt;
{&lt;br /&gt;
    private String _LabelStartText = &amp;quot; Enter State Name: &amp;quot;;&lt;br /&gt;
    TextBox StateInput;&lt;br /&gt;
    ListBox StateContents;&lt;br /&gt;
    public StateListBox()&lt;br /&gt;
    {&lt;br /&gt;
        this.AllowClose = false;&lt;br /&gt;
    }&lt;br /&gt;
    [Personalizable(), WebBrowsable]&lt;br /&gt;
    public String LabelStartText&lt;br /&gt;
    {&lt;br /&gt;
        get { return _LabelStartText; }&lt;br /&gt;
        set { _LabelStartText = value; }&lt;br /&gt;
    }&lt;br /&gt;
    protected override void CreateChildControls()&lt;br /&gt;
    {&lt;br /&gt;
        Controls.Clear();&lt;br /&gt;
        Label InstructionText = new Label();&lt;br /&gt;
        InstructionText.BackColor = System.Drawing.Color.LightGray;&lt;br /&gt;
        InstructionText.Font.Name = &amp;quot;Verdana&amp;quot;;&lt;br /&gt;
        InstructionText.Font.Size = 10;&lt;br /&gt;
        InstructionText.Font.Bold = true;&lt;br /&gt;
        InstructionText.Text = LabelStartText;&lt;br /&gt;
        this.Controls.Add(InstructionText);&lt;br /&gt;
        Literal LineBreak = new Literal();&lt;br /&gt;
        LineBreak.Text = &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
        this.Controls.Add(LineBreak);&lt;br /&gt;
        this.Controls.Add(StateInput);&lt;br /&gt;
        Button InputButton = new Button();&lt;br /&gt;
        InputButton.Text = &amp;quot;Input State&amp;quot;;&lt;br /&gt;
        InputButton.Click += new EventHandler(this.Button1_Click);&lt;br /&gt;
        this.Controls.Add(InputButton);&lt;br /&gt;
        Literal Spacer = new Literal();&lt;br /&gt;
        Spacer.Text = &amp;quot;&amp;lt;paragraph&amp;gt;&amp;quot;;&lt;br /&gt;
        this.Controls.Add(Spacer);&lt;br /&gt;
        this.Controls.Add(StateContents);&lt;br /&gt;
        ChildControlsCreated = true;&lt;br /&gt;
    }&lt;br /&gt;
    private void Button1_Click(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        StateContents.Items.Add(StateInput.Text);&lt;br /&gt;
        StateInput.Text = String.Empty;&lt;br /&gt;
        StateInput.Focus();&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Creating a custom Web Part control (VB)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Web&lt;br /&gt;
Imports System.Web.UI.WebControls&lt;br /&gt;
Imports System.Web.UI.WebControls.WebParts&lt;br /&gt;
&lt;br /&gt;
Public Class StateListBox&lt;br /&gt;
    Inherits WebPart&lt;br /&gt;
    Private _LabelStartText As String = &amp;quot; Enter State Name: &amp;quot;&lt;br /&gt;
    Dim StateInput As New TextBox&lt;br /&gt;
    Dim StateContents As New ListBox&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        Me.AllowClose = False&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;lt;Personalizable(), WebBrowsable()&amp;gt; _&lt;br /&gt;
    Public Property LabelStartText() As String&lt;br /&gt;
        Get&lt;br /&gt;
            Return _LabelStartText&lt;br /&gt;
        End Get&lt;br /&gt;
        Set(ByVal value As String)&lt;br /&gt;
            _LabelStartText = value&lt;br /&gt;
        End Set&lt;br /&gt;
    End Property&lt;br /&gt;
    Protected Overrides Sub CreateChildControls()&lt;br /&gt;
        Controls.Clear()&lt;br /&gt;
        Dim InstructionText As New Label&lt;br /&gt;
        InstructionText.BackColor = Drawing.Color.LightGray&lt;br /&gt;
        InstructionText.Font.Name = &amp;quot;Verdana&amp;quot;&lt;br /&gt;
        InstructionText.Font.Size = 10&lt;br /&gt;
        InstructionText.Font.Bold = True&lt;br /&gt;
        InstructionText.Text = LabelStartText&lt;br /&gt;
        Me.Controls.Add(InstructionText)&lt;br /&gt;
        Dim LineBreak As New Literal&lt;br /&gt;
        LineBreak.Text = &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;&lt;br /&gt;
        Me.Controls.Add(LineBreak)&lt;br /&gt;
        Me.Controls.Add(StateInput)&lt;br /&gt;
        Dim InputButton As New Button&lt;br /&gt;
        InputButton.Text = &amp;quot;Input State&amp;quot;&lt;br /&gt;
        AddHandler InputButton.Click, AddressOf Me.Button1_Click&lt;br /&gt;
        Me.Controls.Add(InputButton)&lt;br /&gt;
        Dim Spacer As New Literal&lt;br /&gt;
        Spacer.Text = &amp;quot;&amp;lt;paragraph&amp;gt;&amp;quot;&lt;br /&gt;
        Me.Controls.Add(Spacer)&lt;br /&gt;
        Me.Controls.Add(StateContents)&lt;br /&gt;
        ChildControlsCreated = True&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)&lt;br /&gt;
        StateContents.Items.Add(StateInput.Text)&lt;br /&gt;
        StateInput.Text = String.Empty&lt;br /&gt;
        StateInput.Focus()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>