🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #21417

Re: [asp.net] dynamiczne tworzenie kontrolek i przypisanie wartości

#21417
From: 3P
Date: Tue, 16 Mar 2010 22:30
15 lines
1406 bytes
WebControl kontrolka = null;
             if (Request.QueryString["tekst"] == "Label")
             {
                 kontrolka = new Label();

             }
             else if (Request.QueryString["tekst"] == "TextBox")
             {
                 kontrolka = new TextBox();
             }

             ((ITextControl)kontrolka).Text = Request.QueryString["tekst"];
             kontrolka.ID = "KontrolkaUzytkownika";
             kontrolka.ForeColor = System.Drawing.Color.FromName(kolor);
Technical Details
Message-ID: <op.u9ol46hjmsp0fz@mcs>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
References: <hnlshe$mfm$1@nemesis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
From: 3P <nospam@serwer.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: [asp.net] dynamiczne tworzenie kontrolek i przypisanie
 wartości
Date: Tue, 16 Mar 2010 23:30:32 +0100
Organization: http://onet.pl
Lines: 15
Message-ID: <op.u9ol46hjmsp0fz@mcs>
References: <hnlshe$mfm$1@nemesis.news.neostrada.pl>
NNTP-Posting-Host: plastcom.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1268778670 27918 83.238.46.138 (16 Mar 2010 22:31:10 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Tue, 16 Mar 2010 22:31:10 +0000 (UTC)
User-Agent: Opera Mail/10.10 (Win32)
X-Antivirus: avast! (VPS 100316-0, 2010-03-16), Outbound message
X-Antivirus-Status: Clean
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit