473,659 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp 2.0 DataAdapters always reset to null on page load

I found it convenient in asp.net 1.1 that you could easily define a
dataadapter through a wizard and when the page reloads the initialize
component would recreate it for you each time. Now that the initialize
component in 2.0 is only called once when the application loads each
time a call back is done or the page load is called the dataadapter is
null. Is there anyway that I don't have to create the dataadapter
manually in the pageload? I thought 2.0 is supose to be helpful and so
far I am finding it a lot more difficult. Is there a precompiled class
that contains the original dataadapters information that I can
reference. I read that the initialize component moves the objects in
to compiled classes or something along that line. Worse comes to worse
I'll just define it myself in the page load for each time it loads up,
but I figure the purpose of 2.0 is to make things easier and was hoping
there be an easier way. Please let me know.

Thanks,

David

Mar 17 '06 #1
0 975

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1295
by: Vik | last post by:
Is it possible to loop through all dataadapters on page? Thanks
1
2271
by: Lee Price | last post by:
Hi all, I have a bound datagrid which is filled with data and displayed.Now on the click of a button I need to refill the datagrid with new data but the problem is the datagrid mixes up the new data with the old data. I have stored the data in a session variable which seems to get updated although I am not altering the value of the session variable
4
5317
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label that can be ignored). When I press the button the first time, the click handler hides the textbox. Pressing the button a second time unhides the textbox. The text box is maintaining its value when hidden via view state. (The value is NOT being...
3
9804
by: WT | last post by:
Hello, I am trying to reset the content of mainy gridviews when some line is selected. All these gridviews have viewstate enabled Using C# and asp.net, I try changing the datasource to null in the chnaged even and do a DataBind but it has no effect the content seems to stay in the viewstate ?? How to reset this display ? Thanks
22
1669
by: Vagif Abilov | last post by:
We have several Web projects where we suddenly began experiencing various problems after porting them to .NET 2.0. I debugged one of them and here's what I've found: In one of referenced assemblies there was a class with static members of other class: class A { ...
3
4313
by: nuchphasu | last post by:
Hi I have a problem on Dropdownlist that connect database and retrieve data by Ajax.I write javascript like this ------------------------------------------------------------------------- function ManageYear_onchange(machinetype) { var iManageYear=document.forms.ddlManageYear.selectedIndex; var vManageYear=document.forms.ddlManageYear.value;
11
2909
by: tdmailbox | last post by:
I have a website that I subscribe to that allows me to track tasks. I have an extra computer with a big monitor that i want to always display the task list. the problem is after so many hours I get logged out. I need to need to reload that sign in url every few hours If I load this url it logs me and resets my session variable and redirects me...
0
952
balabaster
by: balabaster | last post by:
I have my SQL database with the following structure: Table1( PrimaryKey Int Not Null Identity(1, 1) Primary Key, TextData Varchar(50) Not Null ) Table2( PrimaryKey Int Not Null(Identity(1, 1) Primary Key, ForeignKey Int Not Null Foreign Key References Table1(PrimaryKey),
3
1708
by: artev | last post by:
if in a page I have a search form and I want use the method reset() for reinsert the default values, I notice that after a research, for the method reset(), the default values aren't more that first time loaded in the form but that of the form set for the search (I think so); see that the form is inner the same result's page, pheraphs the reset() 'see' how default values only the last form and not those that is loaded initially;
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8337
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,...
0
8851
Oralloy
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...
0
7359
agi2029
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...
0
5650
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();...
0
4175
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...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.