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

ASP.NET

 
GeneralRe: Please help with Viewstate and nested webcontrol !!! Pin
Abhijit Jana7-Jun-09 20:49
professionalAbhijit Jana7-Jun-09 20:49 
GeneralRe: Please help with Viewstate and nested webcontrol !!! Pin
dwfresh8-Jun-09 5:29
dwfresh8-Jun-09 5:29 
Questioncheck if record exist Pin
hahii7-Jun-09 18:33
hahii7-Jun-09 18:33 
AnswerRe: check if record exist Pin
Christian Graus7-Jun-09 19:02
protectorChristian Graus7-Jun-09 19:02 
GeneralCustom web controls Pin
Juvil John7-Jun-09 16:53
Juvil John7-Jun-09 16:53 
Questionhow to save gridview contents in cache at runtime Pin
ashutosh_karna7-Jun-09 11:33
ashutosh_karna7-Jun-09 11:33 
AnswerRe: how to save gridview contents in cache at runtime Pin
Christian Graus7-Jun-09 12:06
protectorChristian Graus7-Jun-09 12:06 
QuestionHow to show image from ms access to gridview Pin
Pratheepa7-Jun-09 3:26
Pratheepa7-Jun-09 3:26 
my database Ms Access has 3 fields as folllows;

id- number
imageName- text
imageURL- text
...................................................

I have a fileupload tool and a button names btnUpload which helps to upload images to a folder and that path gets saved in database field names imageURL.
.........................................................




Inherits System.Web.UI.Page
Dim constr As String = "Provider=Microsoft.jet.OLEDB.4.0; Data Source=D:\imgupload\db1.mdb;Persist Security Info=False;"
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
If FileUpload1.HasFile Then
FileUpload1.SaveAs(IO.Path.Combine(Server.MapPath("Image"), FileUpload1.FileName))
fnSaveFile(IO.Path.GetFileName(FileUpload1.FileName), IO.Path.Combine(Server.MapPath("Image"), FileUpload1.FileName))
End If
End Sub
Public Sub fnSaveFile(ByVal FileName As String, ByVal FileURL As String)
Dim cmd As New OleDb.OleDbCommand
Dim con As New OleDb.OleDbConnection(constr)
Try
Dim strSql As String = "insert into tbl_Image(ImageName,ImageURL) values('" & FileName & "','" & FileURL & "')"
'------------"
con.Open()
cmd.Connection = con
cmd.CommandText = strSql
cmd.ExecuteNonQuery()
Catch ex As Exception
Response.Write(ex.Message)
Finally
cmd.Dispose()
con.Dispose()
End Try
End Sub
................................................................


my image uploading is working well. cud anyone sugesst me a way to add a gridview and show the image other than showing the path of the image.
AnswerRe: How to show image from ms access to gridview Pin
Abhijit Jana7-Jun-09 3:42
professionalAbhijit Jana7-Jun-09 3:42 
GeneralRe: How to show image from ms access to gridview Pin
Pratheepa7-Jun-09 3:54
Pratheepa7-Jun-09 3:54 
GeneralRe: How to show image from ms access to gridview Pin
Christian Graus7-Jun-09 11:10
protectorChristian Graus7-Jun-09 11:10 
GeneralRe: How to show image from ms access to gridview Pin
Abhijit Jana7-Jun-09 17:40
professionalAbhijit Jana7-Jun-09 17:40 
AnswerRe: How to show image from ms access to gridview Pin
Matt Cavanagh7-Jun-09 22:39
Matt Cavanagh7-Jun-09 22:39 
GeneralRe: How to show image from ms access to gridview Pin
Pratheepa13-Jun-09 21:10
Pratheepa13-Jun-09 21:10 
QuestionChess Engine Pin
owolabi Victor6-Jun-09 18:51
owolabi Victor6-Jun-09 18:51 
AnswerRe: Chess Engine Pin
Abhijit Jana6-Jun-09 19:12
professionalAbhijit Jana6-Jun-09 19:12 
AnswerRe: Chess Engine Pin
Christian Graus7-Jun-09 0:06
protectorChristian Graus7-Jun-09 0:06 
QuestionHow to setup sidebar menu to the height of the page contents? Pin
boggs6-Jun-09 16:13
boggs6-Jun-09 16:13 
AnswerRe: How to setup sidebar menu to the height of the page contents? Pin
Abhijit Jana6-Jun-09 17:55
professionalAbhijit Jana6-Jun-09 17:55 
GeneralRe: How to setup sidebar menu to the height of the page contents? Pin
boggs7-Jun-09 8:34
boggs7-Jun-09 8:34 
GeneralRe: How to setup sidebar menu to the height of the page contents? Pin
Abhijit Jana7-Jun-09 17:41
professionalAbhijit Jana7-Jun-09 17:41 
Questionauto. generated code for Dataset Pin
bolly-816-Jun-09 11:35
bolly-816-Jun-09 11:35 
AnswerRe: auto. generated code for Dataset Pin
AlexeiXX36-Jun-09 12:27
AlexeiXX36-Jun-09 12:27 
GeneralRe: auto. generated code for Dataset Pin
bolly-817-Jun-09 4:55
bolly-817-Jun-09 4:55 
Questionhow to make a gridview editable [modified] Pin
ashutosh_karna6-Jun-09 9:46
ashutosh_karna6-Jun-09 9:46 

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.