Showing posts with label box. Show all posts
Showing posts with label box. Show all posts

Friday, March 23, 2012

saving an jpeg into database and displaying it into a image box

can some one help me. im using visual studio.net 2005. its a web application.

i have a database with attribute name logo. so i want to upload an image and save it into the database and than display it into the image box to preview how the image looks like.

can some one please help me as i am very new in using C# codes and visual studio.net 2005

Try to google it, you can find many examples.

For a simple example , refer toSaving and Displaying Photos in SQL Server using ASP.NET

|||

Check this article on MSDN:

http://support.microsoft.com/kb/326502/en-us

|||hey h|||

hey hi

sorry i have this errors when i run the codes u recommended me

image.Save(Response.OutputStream,ImageFormat.Jpeg);

they say the 'System.Web.UI.WebControls.Image' does not contain a definition for 'Save'

and the other error is

image =Image.FromStream(memStream);

they say the 'System.Web.UI.WebControls.Image' does not contain a definition for 'FromStream'

Can u please help me

|||You have to importEnterprise Library 2.0 Data Access Application Block if you're following the artilceSaving and Displaying Photos in SQL Server using ASP.NET. You can take a look at the MSDN article if you want to display images without using extra classes.

saving a trace to table in SQL Profiler

Hi All,
On Trace Properties General tab of SQL Server 2000, there
is a check box setting for saving a trace to a table. The
trace properties dialog box asks for the name of the
table, thus I am assuming first, I must create the table.
The question is how do i figure out how many columns and
what column names i should have in this table in which i
am going to save the trace.
Thanks,
Mitra
There is no need to create the table first. Profiler will create the table
for you. The table that is created has one column for data column you
select in you profiler session, plus it adds and identity column.
----
Need SQL Server Examples check out my website at
http://www.geocities.com/sqlserverexamples
"Mitra Fatholahi" <mitra928@.hotmail.com> wrote in message
news:12bf701c4433f$6d5f76b0$a401280a@.phx.gbl...
> Hi All,
> On Trace Properties General tab of SQL Server 2000, there
> is a check box setting for saving a trace to a table. The
> trace properties dialog box asks for the name of the
> table, thus I am assuming first, I must create the table.
> The question is how do i figure out how many columns and
> what column names i should have in this table in which i
> am going to save the trace.
> Thanks,
> Mitra
|||Mitra,
And as a For What It Is Worth: If you save the trace into a file and later
want to load a table, the fn_trace_gettable also creates the table for you.
This approach has the advantage of not putting the load of inserting tables
rows on the server and the disadvantage that you cannot query the trace data
until after the file is closed. (But this is usually fine for analyzing
problems.)
Russell Fields
"Mitra Fatholahi" <mitra928@.hotmail.com> wrote in message
news:12bf701c4433f$6d5f76b0$a401280a@.phx.gbl...
> Hi All,
> On Trace Properties General tab of SQL Server 2000, there
> is a check box setting for saving a trace to a table. The
> trace properties dialog box asks for the name of the
> table, thus I am assuming first, I must create the table.
> The question is how do i figure out how many columns and
> what column names i should have in this table in which i
> am going to save the trace.
> Thanks,
> Mitra
sql

saving a trace to table in SQL Profiler

Hi All,
On Trace Properties General tab of SQL Server 2000, there
is a check box setting for saving a trace to a table. The
trace properties dialog box asks for the name of the
table, thus I am assuming first, I must create the table.
The question is how do i figure out how many columns and
what column names i should have in this table in which i
am going to save the trace.
Thanks,
MitraThere is no need to create the table first. Profiler will create the table
for you. The table that is created has one column for data column you
select in you profiler session, plus it adds and identity column.
--
----
----
--
Need SQL Server Examples check out my website at
http://www.geocities.com/sqlserverexamples
"Mitra Fatholahi" <mitra928@.hotmail.com> wrote in message
news:12bf701c4433f$6d5f76b0$a401280a@.phx.gbl...
> Hi All,
> On Trace Properties General tab of SQL Server 2000, there
> is a check box setting for saving a trace to a table. The
> trace properties dialog box asks for the name of the
> table, thus I am assuming first, I must create the table.
> The question is how do i figure out how many columns and
> what column names i should have in this table in which i
> am going to save the trace.
> Thanks,
> Mitra|||Mitra,
And as a For What It Is Worth: If you save the trace into a file and later
want to load a table, the fn_trace_gettable also creates the table for you.
This approach has the advantage of not putting the load of inserting tables
rows on the server and the disadvantage that you cannot query the trace data
until after the file is closed. (But this is usually fine for analyzing
problems.)
Russell Fields
"Mitra Fatholahi" <mitra928@.hotmail.com> wrote in message
news:12bf701c4433f$6d5f76b0$a401280a@.phx.gbl...
> Hi All,
> On Trace Properties General tab of SQL Server 2000, there
> is a check box setting for saving a trace to a table. The
> trace properties dialog box asks for the name of the
> table, thus I am assuming first, I must create the table.
> The question is how do i figure out how many columns and
> what column names i should have in this table in which i
> am going to save the trace.
> Thanks,
> Mitra

Wednesday, March 21, 2012

saving a trace to table in SQL Profiler

Hi All,
On Trace Properties General tab of SQL Server 2000, there
is a check box setting for saving a trace to a table. The
trace properties dialog box asks for the name of the
table, thus I am assuming first, I must create the table.
The question is how do i figure out how many columns and
what column names i should have in this table in which i
am going to save the trace.
Thanks,
MitraThere is no need to create the table first. Profiler will create the table
for you. The table that is created has one column for data column you
select in you profiler session, plus it adds and identity column.
----
----
--
Need SQL Server Examples check out my website at
http://www.geocities.com/sqlserverexamples
"Mitra Fatholahi" <mitra928@.hotmail.com> wrote in message
news:12bf701c4433f$6d5f76b0$a401280a@.phx
.gbl...
> Hi All,
> On Trace Properties General tab of SQL Server 2000, there
> is a check box setting for saving a trace to a table. The
> trace properties dialog box asks for the name of the
> table, thus I am assuming first, I must create the table.
> The question is how do i figure out how many columns and
> what column names i should have in this table in which i
> am going to save the trace.
> Thanks,
> Mitra|||Mitra,
And as a For What It Is Worth: If you save the trace into a file and later
want to load a table, the fn_trace_gettable also creates the table for you.
This approach has the advantage of not putting the load of inserting tables
rows on the server and the disadvantage that you cannot query the trace data
until after the file is closed. (But this is usually fine for analyzing
problems.)
Russell Fields
"Mitra Fatholahi" <mitra928@.hotmail.com> wrote in message
news:12bf701c4433f$6d5f76b0$a401280a@.phx
.gbl...
> Hi All,
> On Trace Properties General tab of SQL Server 2000, there
> is a check box setting for saving a trace to a table. The
> trace properties dialog box asks for the name of the
> table, thus I am assuming first, I must create the table.
> The question is how do i figure out how many columns and
> what column names i should have in this table in which i
> am going to save the trace.
> Thanks,
> Mitra