Click here to Skip to main content
15,911,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to display in html textboxes Pin
Abhijit Jana20-Mar-09 1:42
professionalAbhijit Jana20-Mar-09 1:42 
QuestionDynamic Controls problem, need some help Pin
alex_p0pa20-Mar-09 0:51
alex_p0pa20-Mar-09 0:51 
QuestionHow to Remove Dot(.) in Url Pin
MallikarjunaGupta20-Mar-09 0:02
MallikarjunaGupta20-Mar-09 0:02 
AnswerRe: How to Remove Dot(.) in Url Pin
Fayu20-Mar-09 9:35
Fayu20-Mar-09 9:35 
QuestionCustome HTTP Handlers and Handler Instance Specifics Pin
Brady Kelly19-Mar-09 23:27
Brady Kelly19-Mar-09 23:27 
Questionuse db(sql server2000) for storing images Pin
Subin Alex19-Mar-09 23:21
Subin Alex19-Mar-09 23:21 
AnswerRe: use db(sql server2000) for storing images Pin
Christian Graus19-Mar-09 23:44
protectorChristian Graus19-Mar-09 23:44 
AnswerRe: use db(sql server2000) for storing images Pin
rajmca.g20-Mar-09 0:52
rajmca.g20-Mar-09 0:52 
if u store those images in a folder it will very easy. but some complexity also there if somebody delete that folder.

or else u can store images in database that is difficult but more flexible and relable.
so my suggetion is to store in database directly.
use below code to store the images in database.

If fileImgUpload.PostedFile.ContentLength = 0 Then
lblmsg.Visible = True
lblmsg.Text = "Please Browse for the New Image/Photo......."
lblmsg.ForeColor = Drawing.Color.Red
Exit Sub
End If
openAccessConnection()
Dim imageSize As Int64
Dim imageType As String
Dim imageStream As Stream

' Gets the Size of the Image
imageSize = fileImgUpload.PostedFile.ContentLength

' Gets the Image Type
imageType = fileImgUpload.PostedFile.ContentType

' Reads the Image stream
imageStream = fileImgUpload.PostedFile.InputStream

Dim imageContent(imageSize) As Byte
Dim intStatus As Integer
intStatus = imageStream.Read(imageContent, 0, imageSize)

Dim cmd As New OleDbCommand("insert into tblImg(img_title,img_type,img_stream) values(@img_title,@img_type,@img_stream)", myAccessConnection)
cmd.CommandType = CommandType.Text
cmd.Parameters.Add("@img_title", OleDbType.VarChar).Value = txt_title.Text.Replace(",", """")
cmd.Parameters.Add("@img_type", OleDbType.VarChar).Value = imageType
cmd.Parameters.Add("img_stream", OleDbType.LongVarWChar).Value = Convert.ToBase64String(imageContent)
cmd.ExecuteNonQuery()
closeAccessConnection()
txt_title.Text = ""
lblmsg.Visible = True
lblmsg.ForeColor = Drawing.Color.Green
lblmsg.Text = "Photo Uploaded Successfully......"
displayImages()
AnswerRe: use db(sql server2000) for storing images Pin
Abhijit Jana20-Mar-09 1:39
professionalAbhijit Jana20-Mar-09 1:39 
Questionasp:menu Samples Pin
Brendan Vogt19-Mar-09 22:50
Brendan Vogt19-Mar-09 22:50 
AnswerRe: asp:menu Samples Pin
tech60320-Mar-09 17:10
tech60320-Mar-09 17:10 
GeneralRe: asp:menu Samples Pin
Brendan Vogt20-Mar-09 20:01
Brendan Vogt20-Mar-09 20:01 
Questionvalidation summary in modalpopup extender Pin
sandhya1419-Mar-09 22:40
sandhya1419-Mar-09 22:40 
QuestionEditing item in GridView----Problem ------PLEASE HELP Pin
Member 322226419-Mar-09 22:35
Member 322226419-Mar-09 22:35 
AnswerRe: Editing item in GridView----Problem ------PLEASE HELP Pin
Herman<T>.Instance19-Mar-09 23:11
Herman<T>.Instance19-Mar-09 23:11 
GeneralRe: Editing item in GridView----Problem ------PLEASE HELP Pin
Member 322226420-Mar-09 2:11
Member 322226420-Mar-09 2:11 
GeneralRe: Editing item in GridView----Problem ------PLEASE HELP Pin
Herman<T>.Instance20-Mar-09 3:52
Herman<T>.Instance20-Mar-09 3:52 
AnswerRe: Editing item in GridView----Problem ------PLEASE HELP Pin
Christian Graus19-Mar-09 23:11
protectorChristian Graus19-Mar-09 23:11 
QuestionDatalist Pin
indian2219-Mar-09 22:18
indian2219-Mar-09 22:18 
QuestionDialog Box(created using InputBox function) is hidden behind web form, Pls help Pin
she-Developer19-Mar-09 22:00
she-Developer19-Mar-09 22:00 
AnswerRe: Dialog Box(created using InputBox function) is hidden behind web form, Pls help Pin
Christian Graus19-Mar-09 22:14
protectorChristian Graus19-Mar-09 22:14 
GeneralRe: Dialog Box(created using InputBox function) is hidden behind web form, Pls help Pin
she-Developer19-Mar-09 22:20
she-Developer19-Mar-09 22:20 
AnswerRe: Dialog Box(created using InputBox function) is hidden behind web form, Pls help Pin
Abhishek Sur19-Mar-09 22:15
professionalAbhishek Sur19-Mar-09 22:15 
AnswerRe: Dialog Box(created using InputBox function) is hidden behind web form, Pls help Pin
Subin Alex19-Mar-09 22:23
Subin Alex19-Mar-09 22:23 
Questionupload flash file to the webserver Pin
Subin Alex19-Mar-09 21:54
Subin Alex19-Mar-09 21:54 

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.