By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,877 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,877 IT Pros & Developers. It's quick & easy.

Getting values from dynamically created control.

P: n/a
Jen
Hi

I have created some controls (HtmlInputText, HtmlGenericControl, TextBox) dynamically. But I have problem getting the values from these controls to save them. Is there a way to do that?

Regards and Many thanks
Jen
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
A suggestion, which may not be the best way, is to write the values to DB
from the client side.

--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
--------------------
Thread-Topic: Getting values from dynamically created control.
thread-index: AcQoOasVlN8Cs8zqRKuFkUJeYvqmQQ==
X-WN-Post: microsoft.public.dotnet.framework.aspnet
From: =?Utf-8?B?SmVu?= <fr********@hotmail.com>
Subject: Getting values from dynamically created control.
Date: Thu, 22 Apr 2004 00:16:02 -0700
Lines: 8
Message-ID: <61**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa10.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:228195
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi
I have created some controls (HtmlInputText, HtmlGenericControl, TextBox)
dynamically. But I have problem getting the values from these controls to
save them. Is there a way to do that?

Regards and Many thanks,
Jen



Nov 18 '05 #2

P: n/a
> I have created some controls (HtmlInputText, HtmlGenericControl, TextBox)
dynamically. But I have problem getting the values from these controls to
save them. Is there a way to do that?


Jen, are you certain you are recreating these controls on every postback
to the page? If so, you should be able to programmatically reference
them after they have been created and read their property values.

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Nov 18 '05 #3

P: n/a
Jen
Hi Scott,

I manage to get the values and save them successfully after recreating the controls on every postback. Thanks.

But it seems that this has slow my saving process. I need about 1min to save any changes in that form. Do you know of any way, I can resolve this. I currently have to dynamically create 250 columns on each postback.

Thanks.
Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.