I use the same dataadapters and datasets on a few aspx pages. Currently I
create these data controls on each page. Is it possible to create these
controls only once and then use them on the different pages?
Thanks. 3 1066
Everything is torn down and rebuilt with each new page, so the only way to
"create once" is to persist them across the pages--i.e. use session
variables. For a dataadapter, that's likely not worth the trouble, but for a
dataset it might be (depending on how large it is, how intense the i/o,
whether you want to keep it at the application level, etc.).
"Vik" wrote: I use the same dataadapters and datasets on a few aspx pages. Currently I create these data controls on each page. Is it possible to create these controls only once and then use them on the different pages?
Thanks.
I meant reusing the data controls in design time, not in run time. That is
creating the data controls in one place and referring to them in other
pages. Now if I redesign a table in a database I have to recreate the
dataadapters and datasets in all the pages that use that table. I'm looking
for a way to make these changes only once in one place.
Vik
"Bill Borg" <Bi******@discu ssions.microsof t.com> wrote in message
news:29******** *************** ***********@mic rosoft.com... Everything is torn down and rebuilt with each new page, so the only way to "create once" is to persist them across the pages--i.e. use session variables. For a dataadapter, that's likely not worth the trouble, but for
a dataset it might be (depending on how large it is, how intense the i/o, whether you want to keep it at the application level, etc.).
"Vik" wrote:
I use the same dataadapters and datasets on a few aspx pages. Currently
I create these data controls on each page. Is it possible to create these controls only once and then use them on the different pages?
Thanks.
Sorry, I'm not much help there. I always roll my own dataadapters at
run-time, and I don't strongly type the data.
"Vik" wrote: I meant reusing the data controls in design time, not in run time. That is creating the data controls in one place and referring to them in other pages. Now if I redesign a table in a database I have to recreate the dataadapters and datasets in all the pages that use that table. I'm looking for a way to make these changes only once in one place.
Vik
"Bill Borg" <Bi******@discu ssions.microsof t.com> wrote in message news:29******** *************** ***********@mic rosoft.com... Everything is torn down and rebuilt with each new page, so the only way to "create once" is to persist them across the pages--i.e. use session variables. For a dataadapter, that's likely not worth the trouble, but for a dataset it might be (depending on how large it is, how intense the i/o, whether you want to keep it at the application level, etc.).
"Vik" wrote:
I use the same dataadapters and datasets on a few aspx pages. Currently I create these data controls on each page. Is it possible to create these controls only once and then use them on the different pages?
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Oleg Paraschenko |
last post by:
Hello,
I'd like to introduce an article which might be of some interest:
Reusing XML Processing Code in non-XML Applications
HTML: http://uucode.com/texts/genxml/genxml.html
PDF: http://uucode.com/texts/genxml/genxml.pdf
<abstract>
|
by: CHARLES GANTZ |
last post by:
I have an exisiting VC++ 6.0 application. When recompiled into .net, the
program works fine, but I would like redo the program to use all the
VC++.net functionality. But I want to reuse the existing interface.
I created a new VC++.net application, then went to my original 6.0 dialog
resource, and copied all the controls. But when I go to my new .net form,
the paste icon is grayed out so I can't paste the controls into my new app.
Is...
|
by: glenn354 |
last post by:
I have a form I would like to use in front of several queries. For
example, I want to use frmA but only looking at the records retrieved
by qryX. Then I want to use frmA again, but only looking at the records
retrieved by qryY. Then be able to reuse frmA to view records from
qryZ. My reasoning is that if the form changes, I don't have to
manipulate multiple forms. There will be approximately 20 such queries.
Has anyone done something...
|
by: Thomas Scheiderich |
last post by:
I have 2 dropdowns that are exactly the same and I don't want to re-read
for each.
Is there a way to do something like below where I read the data, bind to
depCity1 and then bind to destCity2. I find that the second one always
is blank. I assume this is because the DataReader is read-forward only.
********************************************************
connect.open()
cmdSelect = New OleDbCommand("exec populateCities 'North...
|
by: Zodiac |
last post by:
Hi all,
I've been studying ASP.Net for a couple of weeks now.And it's starting to
come to me. For me the next step is trying to figure out what is the best
way to reuse code and webforms.
For example I wrote a logon page, in combination with a user management
page(edit, create, delete, password, ...). So when I start a new project in
wich I want to use these pages and the code behind modules i want to off
course reuse these pages. How...
| |
by: dauphian |
last post by:
Greetings,
I am using a user control to do the work, and have figured most of it
out so far, cept the below:
I am currently trying to do the following:
- query to get a count of items in a db
- for each item, query a different table and display results
|
by: garyusenet |
last post by:
Dear Professionals,
I have recently been using the wonderful krypton toolkit and am trying
to use them in my small hobby application. I include this bit of info
as an aside really because i'm sure my question can be extrapolated to
the more general case, so here goes!
I have a box standard windows forms project. (File, New Project,
Windows Application, OK)
|
by: =?Utf-8?B?RGlmZmlkZW50?= |
last post by:
Hello All,
I have a base usercontrol which has a datagrid and a virtual method to
populate the datagrid. I developed a child usercontrol which inherits the
base usercontrol and also overrides the virtual method.
I have a page on which I placed these usercontrols together. The base
usercontrol's datagrid gets populated fine however in the override method of
the child usercontrol it is throwing an exception when I am trying to bind
the...
|
by: jehugaleahsa |
last post by:
Hello:
Is it me, or is handling the Validating event for every control on a
form extremely annoying? It is especially annoying when my business
logic repeats most of the validation. Some things you can handle in
the business logic. But other things, like ensuring a textbox
represents a number or null, requires a developer's intervention.
I am asking whether or not there is an easier way of doing validation
for data bound controls.
|
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: 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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |