473,748 Members | 9,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can images be saved to Session State and retrieved?

Hello -

I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is
there any way to temporarily save an image to a session object, and after
running some other operations, later retrieve the image from the session
object, convert it back to an image, and re-save it to the database?

Thanks?
Nov 19 '05 #1
9 9779
Why not? Check out the Bitmap class.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello -

I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
is there any way to temporarily save an image to a session object, and
after running some other operations, later retrieve the image from the
session object, convert it back to an image, and re-save it to the
database?

Thanks?


Nov 19 '05 #2
Hi,

Why not covert the Image to Binary and then store it in session with the Img
format?
Is this a bad idea?

++Vijay R
"Brock Allen" wrote:
Why not? Check out the Bitmap class.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello -

I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
is there any way to temporarily save an image to a session object, and
after running some other operations, later retrieve the image from the
session object, convert it back to an image, and re-save it to the
database?

Thanks?


Nov 19 '05 #3
Thanks Vijay,

As simple as this might sound, it's taking me forever. Could you pls point
me to some sample code?

The sample code i find, requires that i know the size and file type of the
image (bitmap) in the database, which i might not... I don't seem to find a
sample which is as "simple" as your solution seems to imply.

thanks

"Vijay" wrote:
Hi,

Why not covert the Image to Binary and then store it in session with the Img
format?
Is this a bad idea?

++Vijay R
"Brock Allen" wrote:
Why not? Check out the Bitmap class.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello -

I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
is there any way to temporarily save an image to a session object, and
after running some other operations, later retrieve the image from the
session object, convert it back to an image, and re-save it to the
database?

Thanks?


Nov 19 '05 #4
Thanks Brock,

The bitmap class requires that i know that width and height of the image, to
first declare and instantiate the bitmap. Can this be done w/out know this
info? And, i'm also quite new at this, can you point me to some examples. I
have not found an example which enables me to save to session state and
retrieve. Only to save to file system... or retreive via stream with all of
the information coming from the stream object, which is difficult for me to
manipulate into an example that's right for me.

thanks,

"Brock Allen" wrote:
Why not? Check out the Bitmap class.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello -

I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
is there any way to temporarily save an image to a session object, and
after running some other operations, later retrieve the image from the
session object, convert it back to an image, and re-save it to the
database?

Thanks?


Nov 19 '05 #5
Hi,

I think this should work just for converting the bitmap to a byte stream:
--------------------------------------------------------------------
FileStream Fs = new
FileStream(Text Box2.Text.Trim( ),FileMode.Open ,FileAccess.Rea d);
byte[] RawData = new byte[Fs.Length];

Fs.Read(RawData ,0,Convert.ToIn t32(Fs.Length)) ;
Fs.Close();

Session.Add("Fi leData",RawData );
-------------------------------------------------------------------

Now assuming that the file format is always bmp, we have to work on
converting it back into bmp.
will work on this :-)

++Vijay R
"charliewes t" wrote:
Thanks Vijay,

As simple as this might sound, it's taking me forever. Could you pls point
me to some sample code?

The sample code i find, requires that i know the size and file type of the
image (bitmap) in the database, which i might not... I don't seem to find a
sample which is as "simple" as your solution seems to imply.

thanks

"Vijay" wrote:
Hi,

Why not covert the Image to Binary and then store it in session with the Img
format?
Is this a bad idea?

++Vijay R
"Brock Allen" wrote:
Why not? Check out the Bitmap class.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Hello -
>
> I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
> is there any way to temporarily save an image to a session object, and
> after running some other operations, later retrieve the image from the
> session object, convert it back to an image, and re-save it to the
> database?
>
> Thanks?
>

Nov 19 '05 #6
Hi Charlie,

I wanted to ask,
How is the bitmap stored in the database? as a Blob or in bytes?
if it is stored in bytes, then I feel that Blob/Image is the better option.

you can insert the byte array as I mentioned before in the Image field of
the database.
For retrieving and displaying the image, put the byte array into a stream
and then create a bitmap file from the stream.

----------------------------------------------------------------------
MemoryStream stream = new MemoryStream(Ra wData, true);
stream.Write(Ra wData, 0, RawData.Length) ;

Bitmap bmp = new Bitmap(stream);
stream.close();
---------------------------------------------------------------------

Hope this helped

++Vijay R
"Vijay" wrote:
Hi,

I think this should work just for converting the bitmap to a byte stream:
--------------------------------------------------------------------
FileStream Fs = new
FileStream(Text Box2.Text.Trim( ),FileMode.Open ,FileAccess.Rea d);
byte[] RawData = new byte[Fs.Length];

Fs.Read(RawData ,0,Convert.ToIn t32(Fs.Length)) ;
Fs.Close();

Session.Add("Fi leData",RawData );
-------------------------------------------------------------------

Now assuming that the file format is always bmp, we have to work on
converting it back into bmp.
will work on this :-)

++Vijay R
"charliewes t" wrote:
Thanks Vijay,

As simple as this might sound, it's taking me forever. Could you pls point
me to some sample code?

The sample code i find, requires that i know the size and file type of the
image (bitmap) in the database, which i might not... I don't seem to find a
sample which is as "simple" as your solution seems to imply.

thanks

"Vijay" wrote:
Hi,

Why not covert the Image to Binary and then store it in session with the Img
format?
Is this a bad idea?

++Vijay R
"Brock Allen" wrote:

> Why not? Check out the Bitmap class.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
> > Hello -
> >
> > I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
> > is there any way to temporarily save an image to a session object, and
> > after running some other operations, later retrieve the image from the
> > session object, convert it back to an image, and re-save it to the
> > database?
> >
> > Thanks?
> >
>
>
>
>

Nov 19 '05 #7
Vijay,

First, i really appreciate your help sticking with this. I think i'm almost
there, but the examples i find (and that you provide) assume i pull the image
directly from the Web Form, and save the image to the Session State, and
then, pull the image from the session state. Where and how does the database
fit in?

I've been trying to do the following with zero luck:

byte[] RawData = new
byte[Convert.ToInt32 (ds.Tables["Client"].Rows[0]["ImageSize"])];
MemoryStream stream = new MemoryStream(ds .Tables["Client"].Rows[0]["Image"],
FileMode.Open, FileAccess.Read );
Fs.Read(RawData , 0, Convert.ToInt32 (Fs.Length));
Fs.Close();
Session["ImageByte"] = RawData;

And then....

Byte[] RawData = new byte[Convert.ToInt32 (Session["ImageSize"].ToString())];
MemoryStream stream = new MemoryStream(Ra wData, true);
stream.Write(Ra wData, 0, RawData.Length) ;
Bitmap bmp = new Bitmap(stream);
stream.Close();

This is really going nowhere... i really am not catching how this conversion
between images, bytes and bitmaps is working....

If you could provide any insight on how the image is somehow saved to the a
session state var directly from the database, and how this is read from a
session state var... (which i think you've already provide in a former
response) that would be frankly amazing...

thanks,

"Vijay" wrote:
Hi Charlie,

I wanted to ask,
How is the bitmap stored in the database? as a Blob or in bytes?
if it is stored in bytes, then I feel that Blob/Image is the better option.

you can insert the byte array as I mentioned before in the Image field of
the database.
For retrieving and displaying the image, put the byte array into a stream
and then create a bitmap file from the stream.

----------------------------------------------------------------------
MemoryStream stream = new MemoryStream(Ra wData, true);
stream.Write(Ra wData, 0, RawData.Length) ;

Bitmap bmp = new Bitmap(stream);
stream.close();
---------------------------------------------------------------------

Hope this helped

++Vijay R
"Vijay" wrote:
Hi,

I think this should work just for converting the bitmap to a byte stream:
--------------------------------------------------------------------
FileStream Fs = new
FileStream(Text Box2.Text.Trim( ),FileMode.Open ,FileAccess.Rea d);
byte[] RawData = new byte[Fs.Length];

Fs.Read(RawData ,0,Convert.ToIn t32(Fs.Length)) ;
Fs.Close();

Session.Add("Fi leData",RawData );
-------------------------------------------------------------------

Now assuming that the file format is always bmp, we have to work on
converting it back into bmp.
will work on this :-)

++Vijay R
"charliewes t" wrote:
Thanks Vijay,

As simple as this might sound, it's taking me forever. Could you pls point
me to some sample code?

The sample code i find, requires that i know the size and file type of the
image (bitmap) in the database, which i might not... I don't seem to find a
sample which is as "simple" as your solution seems to imply.

thanks

"Vijay" wrote:

> Hi,
>
> Why not covert the Image to Binary and then store it in session with the Img
> format?
> Is this a bad idea?
>
> ++Vijay R
>
>
> "Brock Allen" wrote:
>
> > Why not? Check out the Bitmap class.
> >
> > -Brock
> > DevelopMentor
> > http://staff.develop.com/ballen
> >
> >
> >
> > > Hello -
> > >
> > > I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
> > > is there any way to temporarily save an image to a session object, and
> > > after running some other operations, later retrieve the image from the
> > > session object, convert it back to an image, and re-save it to the
> > > database?
> > >
> > > Thanks?
> > >
> >
> >
> >
> >

Nov 19 '05 #8
Hi Charlie,

Okay I thought I had explained that, must have missed it somewhere.
here is the code to retrieve the image from the database.
Assuming that the column in the database table is defined as Image [image]
NULL in the table "Table1".

---------------------------------------------------------------------------------------------
//Retrieve Image from database
string strCmd = String.Format(" SELECT Image FROM Table1 WHERE id = '1'",
SqlCommand Sqlcmd = new SqlCommand(strC md, sqlConn);

byte[] bytImg = (byte[])Sqlcmd.Execute Scalar();

//Store retrieved image in session

Session.Add("Ra wData",bytImg)

//Creating memory stream with the raw image data
System.IO.Memor yStream MemStrm = new System.IO.Memor yStream(bytImg, true);
MemStrm .Write(bytImg, 0, bytImg.Length);

//creating bitmap with the memory stream
Bitmap bmp = new Bitmap(MemStrm) ;
MemStrm.close() ;

------------------------------------------------------------------------------------------------
Hope this helped.

Regarding your code, I think you are missing something.
Firstly you created a byte array "RawData" filled it with the contents of
the dataset, where the col name was Imagesize. ->Now why is the image size a
byte? and why is it stored in the database? (okay giving you that you need
the image size)
Secondly you created a memory stream from another col of the dataset which
seems to be the Image. ->the image if stored in the database (in bytes)
should be retrieved to the byte array and then put into a memory stream.
Next you have used the file stream to read the "Rawdata" which now contains
the Image Size. -> why do you need a file stream to read the byte array? also
the byte array contains the image size!
lastly you are storing the image size (RawData) in the session ->assuming
you need the file size in the session, so what happened to the image in byte
form which was to be stored in the session? and which was in the memory
stream?

I understand what you want, but your code seems wrong or probably I am
missing something.
anyway try the code I gave you.
--
--Vijay R
"charliewes t" wrote:
Vijay,

First, i really appreciate your help sticking with this. I think i'm almost
there, but the examples i find (and that you provide) assume i pull the image
directly from the Web Form, and save the image to the Session State, and
then, pull the image from the session state. Where and how does the database
fit in?

I've been trying to do the following with zero luck:

byte[] RawData = new
byte[Convert.ToInt32 (ds.Tables["Client"].Rows[0]["ImageSize"])];
MemoryStream stream = new MemoryStream(ds .Tables["Client"].Rows[0]["Image"],
FileMode.Open, FileAccess.Read );
Fs.Read(RawData , 0, Convert.ToInt32 (Fs.Length));
Fs.Close();
Session["ImageByte"] = RawData;

And then....

Byte[] RawData = new byte[Convert.ToInt32 (Session["ImageSize"].ToString())];
MemoryStream stream = new MemoryStream(Ra wData, true);
stream.Write(Ra wData, 0, RawData.Length) ;
Bitmap bmp = new Bitmap(stream);
stream.Close();

This is really going nowhere... i really am not catching how this conversion
between images, bytes and bitmaps is working....

If you could provide any insight on how the image is somehow saved to the a
session state var directly from the database, and how this is read from a
session state var... (which i think you've already provide in a former
response) that would be frankly amazing...

thanks,

"Vijay" wrote:
Hi Charlie,

I wanted to ask,
How is the bitmap stored in the database? as a Blob or in bytes?
if it is stored in bytes, then I feel that Blob/Image is the better option.

you can insert the byte array as I mentioned before in the Image field of
the database.
For retrieving and displaying the image, put the byte array into a stream
and then create a bitmap file from the stream.

----------------------------------------------------------------------
MemoryStream stream = new MemoryStream(Ra wData, true);
stream.Write(Ra wData, 0, RawData.Length) ;

Bitmap bmp = new Bitmap(stream);
stream.close();
---------------------------------------------------------------------

Hope this helped

++Vijay R
"Vijay" wrote:
Hi,

I think this should work just for converting the bitmap to a byte stream:
--------------------------------------------------------------------
FileStream Fs = new
FileStream(Text Box2.Text.Trim( ),FileMode.Open ,FileAccess.Rea d);
byte[] RawData = new byte[Fs.Length];

Fs.Read(RawData ,0,Convert.ToIn t32(Fs.Length)) ;
Fs.Close();

Session.Add("Fi leData",RawData );
-------------------------------------------------------------------

Now assuming that the file format is always bmp, we have to work on
converting it back into bmp.
will work on this :-)

++Vijay R
"charliewes t" wrote:

> Thanks Vijay,
>
> As simple as this might sound, it's taking me forever. Could you pls point
> me to some sample code?
>
> The sample code i find, requires that i know the size and file type of the
> image (bitmap) in the database, which i might not... I don't seem to find a
> sample which is as "simple" as your solution seems to imply.
>
> thanks
>
> "Vijay" wrote:
>
> > Hi,
> >
> > Why not covert the Image to Binary and then store it in session with the Img
> > format?
> > Is this a bad idea?
> >
> > ++Vijay R
> >
> >
> > "Brock Allen" wrote:
> >
> > > Why not? Check out the Bitmap class.
> > >
> > > -Brock
> > > DevelopMentor
> > > http://staff.develop.com/ballen
> > >
> > >
> > >
> > > > Hello -
> > > >
> > > > I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
> > > > is there any way to temporarily save an image to a session object, and
> > > > after running some other operations, later retrieve the image from the
> > > > session object, convert it back to an image, and re-save it to the
> > > > database?
> > > >
> > > > Thanks?
> > > >
> > >
> > >
> > >
> > >

Nov 19 '05 #9
Vijay,

First, thanks a ton for your help. This has not been fun i know. I've
managed to figure it out thanks to you. I don't know what i was trying to do
before so your comments are all well taken, but i've just followed what
you've suggested. There's still one thing i cannot do, but it's no longer an
issue: I can now pull the image from the db, and save to the session state,
as well as convert to a bitmap. But i still cannot pull the image from the
session state object and convert to bitmap. there's clearly something that
i'm missing... here's how my code that works looks:

//Retrieve Image from database
string strCmd = String.Format(" SELECT Image FROM mClient WHERE (ClientId = "
+ Session["iClientId"].ToString() + ")");
using (SqlConnection cn = utils.GetConnec tion())
{
cn.Open();
SqlCommand Sqlcmd = new SqlCommand(strC md, cn);
byte[] bytImg = (byte[])Sqlcmd.Execute Scalar();

//Creating memory stream with the raw image data
System.IO.Memor yStream MemStrm = new System.IO.Memor yStream(bytImg, true);
MemStrm.Write(b ytImg, 0, bytImg.Length);

//creating bitmap with the memory stream
Bitmap bmp = new Bitmap(MemStrm) ;
MemStrm.Close() ;

myData = bytImg;

cn.Close();
}

Thanks agian!

"Vijay" wrote:
Hi Charlie,

Okay I thought I had explained that, must have missed it somewhere.
here is the code to retrieve the image from the database.
Assuming that the column in the database table is defined as Image [image]
NULL in the table "Table1".

---------------------------------------------------------------------------------------------
//Retrieve Image from database
string strCmd = String.Format(" SELECT Image FROM Table1 WHERE id = '1'",
SqlCommand Sqlcmd = new SqlCommand(strC md, sqlConn);

byte[] bytImg = (byte[])Sqlcmd.Execute Scalar();

//Store retrieved image in session

Session.Add("Ra wData",bytImg)

//Creating memory stream with the raw image data
System.IO.Memor yStream MemStrm = new System.IO.Memor yStream(bytImg, true);
MemStrm .Write(bytImg, 0, bytImg.Length);

//creating bitmap with the memory stream
Bitmap bmp = new Bitmap(MemStrm) ;
MemStrm.close() ;

------------------------------------------------------------------------------------------------
Hope this helped.

Regarding your code, I think you are missing something.
Firstly you created a byte array "RawData" filled it with the contents of
the dataset, where the col name was Imagesize. ->Now why is the image size a
byte? and why is it stored in the database? (okay giving you that you need
the image size)
Secondly you created a memory stream from another col of the dataset which
seems to be the Image. ->the image if stored in the database (in bytes)
should be retrieved to the byte array and then put into a memory stream.
Next you have used the file stream to read the "Rawdata" which now contains
the Image Size. -> why do you need a file stream to read the byte array? also
the byte array contains the image size!
lastly you are storing the image size (RawData) in the session ->assuming
you need the file size in the session, so what happened to the image in byte
form which was to be stored in the session? and which was in the memory
stream?

I understand what you want, but your code seems wrong or probably I am
missing something.
anyway try the code I gave you.
--
--Vijay R
"charliewes t" wrote:
Vijay,

First, i really appreciate your help sticking with this. I think i'm almost
there, but the examples i find (and that you provide) assume i pull the image
directly from the Web Form, and save the image to the Session State, and
then, pull the image from the session state. Where and how does the database
fit in?

I've been trying to do the following with zero luck:

byte[] RawData = new
byte[Convert.ToInt32 (ds.Tables["Client"].Rows[0]["ImageSize"])];
MemoryStream stream = new MemoryStream(ds .Tables["Client"].Rows[0]["Image"],
FileMode.Open, FileAccess.Read );
Fs.Read(RawData , 0, Convert.ToInt32 (Fs.Length));
Fs.Close();
Session["ImageByte"] = RawData;

And then....

Byte[] RawData = new byte[Convert.ToInt32 (Session["ImageSize"].ToString())];
MemoryStream stream = new MemoryStream(Ra wData, true);
stream.Write(Ra wData, 0, RawData.Length) ;
Bitmap bmp = new Bitmap(stream);
stream.Close();

This is really going nowhere... i really am not catching how this conversion
between images, bytes and bitmaps is working....

If you could provide any insight on how the image is somehow saved to the a
session state var directly from the database, and how this is read from a
session state var... (which i think you've already provide in a former
response) that would be frankly amazing...

thanks,

"Vijay" wrote:
Hi Charlie,

I wanted to ask,
How is the bitmap stored in the database? as a Blob or in bytes?
if it is stored in bytes, then I feel that Blob/Image is the better option.

you can insert the byte array as I mentioned before in the Image field of
the database.
For retrieving and displaying the image, put the byte array into a stream
and then create a bitmap file from the stream.

----------------------------------------------------------------------
MemoryStream stream = new MemoryStream(Ra wData, true);
stream.Write(Ra wData, 0, RawData.Length) ;

Bitmap bmp = new Bitmap(stream);
stream.close();
---------------------------------------------------------------------

Hope this helped

++Vijay R
"Vijay" wrote:

> Hi,
>
> I think this should work just for converting the bitmap to a byte stream:
> --------------------------------------------------------------------
> FileStream Fs = new
> FileStream(Text Box2.Text.Trim( ),FileMode.Open ,FileAccess.Rea d);
> byte[] RawData = new byte[Fs.Length];
>
> Fs.Read(RawData ,0,Convert.ToIn t32(Fs.Length)) ;
> Fs.Close();
>
> Session.Add("Fi leData",RawData );
> -------------------------------------------------------------------
>
> Now assuming that the file format is always bmp, we have to work on
> converting it back into bmp.
> will work on this :-)
>
> ++Vijay R
>
>
> "charliewes t" wrote:
>
> > Thanks Vijay,
> >
> > As simple as this might sound, it's taking me forever. Could you pls point
> > me to some sample code?
> >
> > The sample code i find, requires that i know the size and file type of the
> > image (bitmap) in the database, which i might not... I don't seem to find a
> > sample which is as "simple" as your solution seems to imply.
> >
> > thanks
> >
> > "Vijay" wrote:
> >
> > > Hi,
> > >
> > > Why not covert the Image to Binary and then store it in session with the Img
> > > format?
> > > Is this a bad idea?
> > >
> > > ++Vijay R
> > >
> > >
> > > "Brock Allen" wrote:
> > >
> > > > Why not? Check out the Bitmap class.
> > > >
> > > > -Brock
> > > > DevelopMentor
> > > > http://staff.develop.com/ballen
> > > >
> > > >
> > > >
> > > > > Hello -
> > > > >
> > > > > I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#)
> > > > > is there any way to temporarily save an image to a session object, and
> > > > > after running some other operations, later retrieve the image from the
> > > > > session object, convert it back to an image, and re-save it to the
> > > > > database?
> > > > >
> > > > > Thanks?
> > > > >
> > > >
> > > >
> > > >
> > > >

Nov 19 '05 #10

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

Similar topics

4
4006
by: John Q. Smith | last post by:
I'm trying to find out some of the details behind OOP state management with SQL Server. For instance - how long does the session object live on any server? Is it created and destoyed with each page request? - will each reading of a session variable cause a round trip to the DB server? or does the complete session live within the HttpContext object? - when asp.net session state is enabled (in any mode), after a session has been created,...
6
5128
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 without saving the updated dataset. Why does this happen? How can I preserve the dataset saved in session state from automatical updating? Thank you.
0
1250
by: Sebastian | last post by:
Hello, I've implemented an ASP.NET Application that is used by many people concurrently. Each user logs on using Forms Authentication (authentication against Active Directory). After logon succeeded, additional data are saved into the session state (Session = new CDE()) for the user that just logged on. The problem now is that, if we look at the 3 users A, B and C using the application concurrently, it happens very often that a user...
2
2183
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the relevant criteria ? is the primary criteria max expected total storage size (for all active sessions) versus max ram available on the state-server machine ? if ADO.NET objects (such as small DataTables) must be stored in session-state , is any...
1
2410
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of the differences, e.g that every object you store in SQLSession state have to be serializable, but other differences are very unfortunate.
4
2693
by: Jake | last post by:
Does cookieless session state (with the sessionid embedded into the url) interfere with the browser's retrieval of cached images from one session to the next? Does the sessionid embedded into the url effectively limit client-side image caching to the lifetime of the session? Thanks Jake
5
548
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know users or save any data. If the application crashes or user exits the program they should simply start again. Pretty basic. All interactions are stored in an array (not much going on to save to a
4
1138
by: SteveSu | last post by:
Hi! I have a few question regarding sql session state. Is the database hited only ones when the session is created and then no database hit until session expires or is there a database hit every time a new page is rendered like when using profiles? If the database is only hitted when creating the session then how is the data saved while the session is "living"? I want to use sql state cause´ my site will be hosted by a webfarm with...
3
2538
by: Michael | last post by:
Hi, If I use SQL Server to store session state, whenever I call Session is there a call to SQL Server? Even if I call Session a few times in the same Web page, or even the same code block? I'm asking because if there is one SQL Server call every time I have Session, then I should store that in a local variable, right?
0
8989
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
8828
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,...
1
9319
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,...
0
8241
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...
1
6795
isladogs
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...
0
6073
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
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.