|
Hi,
First save your image to Sql Server 2005[Database] in Byte Format.And then receive it as a Byte array format at server side. NOw you have to cast this image into Stream and then into write this Stream into another UserControl.
But I am suggesting you not to store Your Image into DataBase, store it into FileSystem.
Naresh Patel
|
|
|
|
|
Hello
Yes You are right.But This is requirement is like that we have to store 2 images in sql server database.I have stored image in database successfully.I am facing problem in showing this image in gridview.
Sujit
|
|
|
|
|
Hi Please wait i am giving you the code for it.
Naresh Patel
|
|
|
|
|
Hi, Please view the atricle for Displaying And Storing Image to Database at
http://www.codeproject.com/useritems/Image.asp
Naresh Patel
|
|
|
|
|
Hello
Yes yours code is good.i have already done this.only problem i am facing to displaying those images in grid view.i can easily show this in aspx page by retrieving image from sql server.
Sujit
|
|
|
|
|
Hey man.
We were having the same problem. Try do this. When you store it in the database...store the full url of where the picture can be found within your project.
For example...our image is stored inside a folder called "Properties" which is inside a folder called "Images"
So it finally worked when we saved it in the DB field as:
~\Images\Properties\officeblock1.jpg
Hope that helps
peace
Dazz
|
|
|
|
|
Yea
You are right.I am generally follow yours methods.That is quite good.but i have to store this in sql server.i am trying to do this.
Sujit
|
|
|
|
|
I want to send personal information to the CardInformation page
and then send total information ...
So, how transfer complete page data to the next page ..
Plz reply
Thanks
ajai
|
|
|
|
|
You mean you want to access the Controls of one page to another page with its last value?
Naresh Patel
|
|
|
|
|
Dear Frnd,
Just use the repose.redirect statement
check out following link
http://msdn2.microsoft.com/en-us/library/ms524309.aspx[^]
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
hi friends
how to authenticate connection string using asp.net 2.0
without write any encryption and decryption code in codebehind.
regards
saravanan
|
|
|
|
|
saravanan05 wrote: how to authenticate connection string using asp.net 2.0
What do you mean by authenticating connection string ? What is there to authenticate in connection string ?
|
|
|
|
|
i need to encrypt web config connection string without write any code in codebehind.
Is this possible
|
|
|
|
|
You will have to put some code in your codebehind - at least in a seperate page to handle the encryption. Put you connection string in as normal, and then call this code once from some temporary button on a page to protect it.
The code that uses the connection string wont know any different.
<br />
Public Sub EncryptConnStr<br />
'Open the web config<br />
Dim config As Configuration = ConfigurationManager.OpenWebConfiguration(Request.ApplicationPath)<br />
<br />
'Grab the section<br />
Dim section As ConfigurationSection = config.Sections("connectionStrings")<br />
<br />
'Specify the DPAPI provider<br />
section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider")<br />
<br />
'Save the new config<br />
config.Save()<br />
End Sub<br />
|
|
|
|
|
i have date in string x=2007-08-24T00;00;00+5:30 Format.
I need in mm/dd/yyyy format in C#
plz help
CARE CAREER
|
|
|
|
|
string x=2007-08-24T00;00;00+5:30
Use,
string []array=x.split("-");
Output:
Here you have
array[0]="2007";
array[1]="08";
array[2]="24T00;00;00+5:30
Now you can concate the string and use it as you wish.
Naresh Patel
|
|
|
|
|
DateTime d = DateTime.Parse(x);
d.ToString("MM/dd/yyyy");
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
I am working in asp.net 2.0
I am using SQL-Server 2000 OS
I am need a reports using crystal report.
How to implement a crystal report. Could you please help me and give a samples using vb coding.
thanking you
berkmans
|
|
|
|
|
|
http://sarith.wordpress.com/treasure/
Hope this vl help u
Sarith...
|
|
|
|
|
How to use the variable value in html tag in asp.net form?
example:
My String as = <%=myvariable%> |
in above example myvariable is call from .vb files of the particular aspx form.
In above technique applied my form but result not show and no display the error message.
Please help me to above problem at earliest.
thanking you.
berkmans
|
|
|
|
|
Your variable should be public in the class
|
|
|
|
|
hi frnd,
make your "myvariable" as public
and
abglorie wrote: My String as = <%=myvariable%>
OR
try it
My String as = <#=myvariable#>regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi i am using Mozila browser i am getting error in oveflow CSS property , here oveflow is not working . please help for this one
Reg
nantha
|
|
|
|
|
Use the latest version of Mozilla.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|