On an Asp.Net webpage, what's the best way to go about managing a list of
items?
When editing a library title I display a DataGrid of authors to which I'd
like to be able to add and remove. Ideally, I'd like to be able to work with
the list within a single page and not save the list until pressing an OK
button.
Should I keep a list of record IDs in a Session variable? Or postback the
list of IDs in the Request? Is there a way to hang onto a DataTable between
postbacks?
Thanks for any help,
Todd. 2 1168
"Todd" <To**@discussio ns.microsoft.co mwrote in message
news:1D******** *************** ***********@mic rosoft.com...
On an Asp.Net webpage, what's the best way to go about managing a list of
items?
Database. SQL Express is one that is free.
When editing a library title I display a DataGrid of authors to which I'd
like to be able to add and remove. Ideally, I'd like to be able to work
with
the list within a single page and not save the list until pressing an OK
button.
You can store the datatable in ViewState or Session between clicks./
Should I keep a list of record IDs in a Session variable?
No,.
Or postback the
list of IDs in the Request?
No need
>Is there a way to hang onto a DataTable between
postbacks?
Yes, in ViewState. Be careful that you do not run into the native way
ViewState works, however, or you will delete records only to have them
reappear and visa/versa.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA http://gregorybeamer.spaces.live.com
*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
Thanks a bunch. Works great!
"Cowboy (Gregory A. Beamer)" wrote:
>
"Todd" <To**@discussio ns.microsoft.co mwrote in message
news:1D******** *************** ***********@mic rosoft.com...
On an Asp.Net webpage, what's the best way to go about managing a list of
items?
Database. SQL Express is one that is free.
When editing a library title I display a DataGrid of authors to which I'd
like to be able to add and remove. Ideally, I'd like to be able to work
with
the list within a single page and not save the list until pressing an OK
button.
You can store the datatable in ViewState or Session between clicks./
Should I keep a list of record IDs in a Session variable?
No,.
Or postback the
list of IDs in the Request?
No need
Is there a way to hang onto a DataTable between
postbacks?
Yes, in ViewState. Be careful that you do not run into the native way
ViewState works, however, or you will delete records only to have them
reappear and visa/versa.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA http://gregorybeamer.spaces.live.com
*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** **** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shaun |
last post by:
Hello!
I can't seem to get paths and variables working together:
import os
a = 'books'
os.chdir( '/test')
os.mkdir("/test/"a)
the last line does not seem to work. os.mkdir(a) makes the directory
|
by: special_agent69 |
last post by:
Not sure if this is a stoopid question or not. If it is, my apologies.
I'd like to have an ASP form performing a relatively simple calculation.
For example, if I wanted to create a simple order form where someone enters
a quantity of tickets, the form would automatically calculate the total cost
in a second text box based on the number (qty) entered times the cost of a
single ticket. Such that, if the user entered "2" in one text box,...
|
by: Aristotelis E. Charalampakis |
last post by:
Hi all, this is a newbie question :-)
I was wondering if there was a way to use the switch statement in a manner
that each case statement includes more that a simple value. i.e.:
switch ( myFloat )
{
case >0: // ??? how do i write this ???
|
by: Capt_Ron |
last post by:
Sorry to have to ask this but...
I have a form that asks for SQL connection information. I want to close the
form when I click Save and then open the login form.
I can Hide the form but it keeps the form open. If i try and use
form.close() then it ends the program even though I've used newForm.Show()
and newForm.Activate() before the form.Close().
Thank you for your time.
|
by: jimi_xyz |
last post by:
Hi,
I current have a from with 12 textboxes, and want to index all of them,
i keep getting this error..
'System.Windows.Forms.Control.ControlCollection' does not contain a
definition for 'IndexOfKey'
I figure its because the the function IndexOfKey is not defined.. here
is the code..
| |
by: mailtralala |
last post by:
hello, i have such problem
function show_countrymap(parameter)
{
map.setCenter(new GLatLng(0.0, 0.0), 12);
}
this is working, but in parameter i have for example "(22.22, 22.22)"
(without " " of course) and i want to use this parameter instead of
"(0.0, 0.0)", how to do it ?
|
by: Bit Byte |
last post by:
I have several years programming experience (C/C++) and have only
recently started looking at developing web apps - after playing with PHP
for a while, I decided there weren't enough tools etc to get me up and
running quickly enough, so I turned to look at ASP.Net
ASP.Net looks like it has the development tools that I expect of any
serious proposition, but I am confused between the apparent availability
of two options:
1. Web...
|
by: lg |
last post by:
Hello,
I'm pretty new to usenet and totally new to python, so.. hopefully i
won't offend anyone with my naivete. I work at a non-profit
organization where we use mailman for our email lists, and i've
inhereted the task of being list administrator from my
sadly-recently-and-unjustly-terminated coworker.
Anyway, I'd to know more about working with mailman from the command
line. For example, I know it must not be toooo complex to have...
|
by: qazplm114477 |
last post by:
lets say i have 1 table called Inventory and another table called itemType
Inventory
-itemID -PK
-Desc
-itemID- FK
itemType
-ItemID - PK with relation to inventory.itemID - FK
-ItemName
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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?
| |