Re: Accessing dynamically created controls from code-behind

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: avnrao (avn_at_newsgroups.com)
Date: 05/06/04


Date: Thu, 6 May 2004 20:11:57 +0530

You can use Request.Form["controlName"] to access them. this is for just
reading the value.

Av.

"Steve Black" <Steve_Black@EagleCCI.com> wrote in message
news:7da91665.0405060619.3143c6ef@posting.google.com...
> Hello,
>
> I am dynamically creating checkboxes on my web page based on data in a
> SQL Server table. Therefore, these checkboxes do not exist at design
> time and I cannot refer to them in my server-side code at design time.
>
> Once the page is submitted, how can I access these checkboxes in my
> code-behind?
>
> Thanks for the help,
>
> Steve



Relevant Pages

  • Re: how to add table and all its index for replication
    ... select teh elipsis button in EM and on the article ... properties, snapshot tab, you'll see the corresponding ... checkboxes. ... Paul Ibison SQL Server MVP, ...
    (microsoft.public.sqlserver.replication)
  • Filter by form problem with Yes/No Data and SQL Server
    ... SQL Server 2005 Back end: ... I have a complex form that has lots of data fields including about ... thirty or so checkboxes storing Yes/No data that I would like my users ... This works perfectly fine when I filter on a text field. ...
    (comp.databases.ms-access)
  • Re: Going into an infinite loop
    ... > Now, when I check All Object Types, all the other checkboxes take on the ... What I want to happen is when one of the> other check boxes are checked, I want the chkAllObjectTypes checkbox to change> state to ... > Looking for a SQL Server replication book? ...
    (microsoft.public.dotnet.languages.csharp)
  • Form error????
    ... I just added two checkboxes on my main form and on the MS SQL server I also ... added two fields as “bit” format. ... "The record has been changed by another user since you started editing it. ... When I delete those two checkboxes it works fine?????? ...
    (microsoft.public.access.forms)
  • Re: default value after replication
    ... AFAIR if you select the checkboxes on the article properties, ... Paul Ibison SQL Server MVP, ...
    (microsoft.public.sqlserver.replication)