473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Gobal and Session Dataset

Hi,

How can I create a global and session dataset using in the web applicaton ?

I have defined in Global class without luck.

e.g.
public DataSet ds_applicaton;
public DataSet ds_session;

protected void Application_Start(object sender, EventArgs e)
{
ds_application = new DataSet();
..... do something ....
}

protected void Session_onStart(object sender, EventArgs e)
{
ds_session = new DataSet();
..... do something ....
}
Thanks
Wilson
Jun 17 '06 #1
3 1842
What is the purpose of putting the dataset in global?

chanmm

"Wilson" <Wi****@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
Hi,

How can I create a global and session dataset using in the web applicaton
?

I have defined in Global class without luck.

e.g.
public DataSet ds_applicaton;
public DataSet ds_session;

protected void Application_Start(object sender, EventArgs e)
{
ds_application = new DataSet();
..... do something ....
}

protected void Session_onStart(object sender, EventArgs e)
{
ds_session = new DataSet();
..... do something ....
}
Thanks
Wilson

Jun 17 '06 #2
Store information. not just several variables.

"chanmm" wrote:
What is the purpose of putting the dataset in global?

chanmm

"Wilson" <Wi****@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
Hi,

How can I create a global and session dataset using in the web applicaton
?

I have defined in Global class without luck.

e.g.
public DataSet ds_applicaton;
public DataSet ds_session;

protected void Application_Start(object sender, EventArgs e)
{
ds_application = new DataSet();
..... do something ....
}

protected void Session_onStart(object sender, EventArgs e)
{
ds_session = new DataSet();
..... do something ....
}
Thanks
Wilson


Jun 17 '06 #3
Hello Wilson,

Use Cache or Session for this

W> Store information. not just several variables.
W>
W> "chanmm" wrote:
W>
What is the purpose of putting the dataset in global?

chanmm

"Wilson" <Wi****@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
Hi,

How can I create a global and session dataset using in the web
applicaton ?

I have defined in Global class without luck.

e.g.
public DataSet ds_applicaton;
public DataSet ds_session;
protected void Application_Start(object sender, EventArgs e)
{
ds_application = new DataSet();
..... do something ....
}
protected void Session_onStart(object sender, EventArgs e)
{
ds_session = new DataSet();
..... do something ....
}
Thanks
Wilson

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 17 '06 #4

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

Similar topics

18
by: MuZZy | last post by:
Hi, I got a situation here :) an dwonder if someone can help me. I have an MDI app and say, the child form has a button, clicking on which calls a database transaction - grabbing a lot of tables...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
6
by: Vik | last post by:
A dataset is saved in session state. Then the dataset is filled out with the new records using a dataadapter. It appears then that the dataset saved in session state contains the new records even...
2
by: VS | last post by:
HOW TO RECREATE 1) Create a Dataset 2) Apply a sort expression to the DefaultView of the first table in the DataSe Ex: __dataSet.Tables.DefaultView.Sort = "EMP_NAME" 3). Save the DataSet in the...
14
by: Venkat Chellam | last post by:
I have a peculiar problem. I have a simple web application which loads some data from the oracle table and display in the datagrid in the webpage and datagrid has page enabled which shows 10 rows...
2
by: Stuart | last post by:
Hi there I am using several processes within an .asp application that store variables in to session - typically: Session("UniqueName") = Value I am having a hell of a time overwriting the...
7
by: Spencer H. Prue | last post by:
Hello!, I have a using system.web.sessionstate directive one the top of each of two web pages. On the first page I have the dataadapter, dataconnection, and dataset (also in the component tray)....
2
by: Gavin Lyons via .NET 247 | last post by:
Hello, I'm writing a newsletter application which uses backgroundthreading. I'm using Session variable to report on progresswhile it loops through a dataset. The 'Status.aspx' pagerefreshes every...
3
by: Aaron | last post by:
Why do my session values return to nothing on post back? I want to click a button and have the row, as in: dataset.table(0).rows(THIS ROW NUMBER IS WHAT I AM TALKING ABOUT), either increment or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
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...

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.