Hi,
I remember in classic ASP when you had a webpage with a large number of
textboxes and you needed to perform an update sql statement you could loop
through all of the fields and dynamically create a sql statement. I have a
webform with over 200 textboxes and I need to perform a sql update. Is
there a way to do this in ASP.NET?
Thanks,
Andy 2 1129
You can still loop through the Request.Forms collection. I'd arge against
this, given that this will probabaly leave you open to a SQL injection attack.
-Brock
DevelopMentor http://staff.develop.com/ballen Hi,
I remember in classic ASP when you had a webpage with a large number of textboxes and you needed to perform an update sql statement you could loop through all of the fields and dynamically create a sql statement. I have a webform with over 200 textboxes and I need to perform a sql update. Is there a way to do this in ASP.NET?
Thanks,
Andy
Here is a function that allows you to loop through all the textboxes in a
..NET form: http://SteveOrr.net/faq/ControlTreeRecursion.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Andy Sutorius via DotNetMonster.c om" <fo***@nospam.D otNetMonster.co m> wrote
in message news:77******** *************** *******@DotNetM onster.com... Hi,
I remember in classic ASP when you had a webpage with a large number of textboxes and you needed to perform an update sql statement you could loop through all of the fields and dynamically create a sql statement. I have a webform with over 200 textboxes and I need to perform a sql update. Is there a way to do this in ASP.NET?
Thanks,
Andy This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kiyomi |
last post by:
Hello,
I create a Table1 dynamically at run time, and at the same time, I would
like to create LinkButton controls, also dynamically, and insert them into
each line in my Table1. I would then like that, when clicking the
LinkButton, the user can be navigated to another page, carrying a variable.
I would like to use server.transfer method instead of QueryString as I don't
want the carried variable to be visible for the user.
|
by: RSB |
last post by:
Hi Every one
Having tuff time creating web controls Dynamically. All i am trying to do is
read a table and generate a list of ASP TEXT Box.
So how do i create this Control dynamically and where do i add the
EventHandler to it.
Thanks
RSB
|
by: tommy |
last post by:
hello everybody,
i haved read a few articles about, how to create controls in asp.net
dynamically!
i have tested it -- all works fine.... but....now it comes--> HOW
create controls dynamically using a html-table....
i want to display dynamically on each row one button, and dont use
datagrid.
|
by: serge calderara |
last post by:
Dear all,
I need to build a web application which collects data from an SQL server
database.
SQL server database tables fields can be dynamically created or extended
depending on my customer request and can be different customers to customers.
Ideally what I would like to build is a web application frame which covers
any request and display any data. This without rebuilding my application but
more by applying a kind of configuration...
|
by: jesper_lofgren |
last post by:
Hi there,
I have some webcontrols that i want to add dynamically on a page. I
have stored the path / namespace in database (ex
MyNameSpace.WebControls.Control1) to the class/webcontrol.
Lets say i have a column in database that looks like this.
| |
by: yeltsin27 |
last post by:
I need some advice on handling dynamically added controls in a
GridView.
My app takes an uploaded CSV file containing addresses, converts it to
a DataTable, databinds the DataTable to a GridView, accepts information
via dropdowns embedded in the first row of the GridView about which
incoming fields should go to which database fields, and writes the data
to the database.
The incoming data has an arbitrary number of columns so I create...
|
by: mike |
last post by:
I help manage a large web site, one that has over
600 html pages... It's a reference site for ham radio
folks and as an example, one page indexes over
1.8 gb of on-line PDF documents.
The site is structured as an upside-down tree, and
(if I remember correctly) never more than 4 levels.
The site basically grew (like the creeping black blob) ...
all the pages were created in Notepad over the last
|
by: Richard Gromstein |
last post by:
Hello, I have an exercise that I need to finish very soon and I really
need help understanding what to do and how exactly to do it. I am
working on reading the chapter right now and working on it myself, but
I have a feeling I won't get far. Please help me complete the
exercise. I am posting what needs to be done and will be updating
with pieces of code that I come up with. Thank you all for your
attention.
...
|
by: Alexander Vasilevsky |
last post by:
Hi!
How to create the coloured mouse cursor dynamically?
--
http://www.alvas.net - Audio tools for C# and VB.Net developers
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |