Click here to Skip to main content
15,915,513 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Which controls to use Pin
Mycroft Holmes12-Dec-09 18:12
professionalMycroft Holmes12-Dec-09 18:12 
AnswerRe: Which controls to use Pin
Abhishek Sur13-Dec-09 11:22
professionalAbhishek Sur13-Dec-09 11:22 
GeneralRe: Which controls to use Pin
Mycroft Holmes13-Dec-09 13:14
professionalMycroft Holmes13-Dec-09 13:14 
GeneralRe: Which controls to use Pin
Abhishek Sur13-Dec-09 21:53
professionalAbhishek Sur13-Dec-09 21:53 
GeneralRe: Which controls to use Pin
Mycroft Holmes13-Dec-09 22:38
professionalMycroft Holmes13-Dec-09 22:38 
QuestionLoading an Image from Database to ImageBox Pin
bharanidharanit12-Dec-09 10:34
bharanidharanit12-Dec-09 10:34 
AnswerRe: Loading an Image from Database to ImageBox Pin
Abhishek Sur13-Dec-09 11:18
professionalAbhishek Sur13-Dec-09 11:18 
AnswerRe: Loading an Image from Database to ImageBox Pin
Nerv1017-Dec-10 21:26
Nerv1017-Dec-10 21:26 
Hello.

Ive Tried your given code but im having errors that my insert statement is not correct .. i cant find what is not correct with my statement .. here is my code

If PhotoUpload.HasFile Then

          Dim photoStream As Stream = PhotoUpload.PostedFile.InputStream
          Dim photoLength As Integer = PhotoUpload.PostedFile.ContentLength
          Dim photoMime As String = PhotoUpload.PostedFile.ContentType
          Dim photoName As String = Path.GetFileName(PhotoUpload.PostedFile.FileName)
          Dim photoData() As Byte = New Byte((photoLength) - 1) {}
          photoStream.Read(photoData, 0, photoLength)
          Dim cnn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\TestImage.mdb; Persist Security Info=True")
          Dim cmd As New OleDbCommand("INSERT INTO ImageTable(ImageName,Image) VALUES(?,?)", cnn)
          cmd.Parameters.AddWithValue("", photoName)
          cmd.Parameters.AddWithValue("", photoData)
          cnn.Open()
          cmd.ExecuteNonQuery()
          Response.Write("Image Added")

      End If

hope you can help me
QuestionEncrypting & Decrypting a text Pin
bharanidharanit12-Dec-09 10:32
bharanidharanit12-Dec-09 10:32 
AnswerRe: Encrypting & Decrypting a text Pin
Abhishek Sur13-Dec-09 10:13
professionalAbhishek Sur13-Dec-09 10:13 
QuestionHow do i make the menu selected item have a different color? tabbed menu ASP.NET MVC Pin
basilmir12-Dec-09 7:51
basilmir12-Dec-09 7:51 
AnswerRe: How do i make the menu selected item have a different color? tabbed menu ASP.NET MVC Pin
m-khansari12-Dec-09 22:05
m-khansari12-Dec-09 22:05 
AnswerRe: How do i make the menu selected item have a different color? tabbed menu ASP.NET MVC Pin
Jim G6-Apr-10 15:13
Jim G6-Apr-10 15:13 
QuestionAzure and Web Controls Pin
#realJSOP12-Dec-09 4:15
professional#realJSOP12-Dec-09 4:15 
AnswerRe: Azure and Web Controls Pin
Oakman12-Dec-09 8:49
Oakman12-Dec-09 8:49 
AnswerRe: Azure and Web Controls Pin
Abhishek Sur12-Dec-09 9:57
professionalAbhishek Sur12-Dec-09 9:57 
QuestionPrinting in ASP.NET Pin
tunsten12-Dec-09 2:33
tunsten12-Dec-09 2:33 
AnswerRe: Printing in ASP.NET Pin
m-khansari12-Dec-09 3:40
m-khansari12-Dec-09 3:40 
GeneralRe: Printing in ASP.NET Pin
tunsten15-Dec-09 5:13
tunsten15-Dec-09 5:13 
GeneralRe: Printing in ASP.NET Pin
m-khansari15-Dec-09 23:02
m-khansari15-Dec-09 23:02 
QuestionGetting Server control Id with JavaScript code... Pin
tunsten12-Dec-09 2:03
tunsten12-Dec-09 2:03 
AnswerRe: Getting Server control Id with JavaScript code... Pin
Abhijit Jana12-Dec-09 2:13
professionalAbhijit Jana12-Dec-09 2:13 
GeneralRe: Getting Server control Id with JavaScript code... Pin
tunsten12-Dec-09 2:25
tunsten12-Dec-09 2:25 
AnswerRe: Getting Server control Id with JavaScript code... Pin
Iman Ebadi12-Dec-09 2:45
Iman Ebadi12-Dec-09 2:45 
GeneralRe: Getting Server control Id with JavaScript code... Pin
tunsten12-Dec-09 2:58
tunsten12-Dec-09 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.