Click here to Skip to main content
15,904,416 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Invalid_Viewstate_Client_Disconnected Pin
_AK_7-Aug-06 20:56
_AK_7-Aug-06 20:56 
GeneralRe: Invalid_Viewstate_Client_Disconnected Pin
Bimal Kothari2-Oct-08 3:56
Bimal Kothari2-Oct-08 3:56 
QuestionRead XML Pin
Vipin Venugopal7-Aug-06 20:35
Vipin Venugopal7-Aug-06 20:35 
AnswerRe: Read XML [modified] Pin
coolestCoder7-Aug-06 22:15
coolestCoder7-Aug-06 22:15 
Questionrefresh opner window Pin
mbbisht7-Aug-06 20:25
mbbisht7-Aug-06 20:25 
AnswerRe: refresh opner window Pin
Guffa7-Aug-06 20:41
Guffa7-Aug-06 20:41 
AnswerRe: refresh opner window [modified] Pin
Guffa8-Aug-06 8:09
Guffa8-Aug-06 8:09 
Questionphoto album prob (array to datalist , repeater)in image Pin
Pravin H7-Aug-06 19:31
Pravin H7-Aug-06 19:31 
Hello,

I am making a photoalbum in asp.net (vbcode). All the pictures should be pickedup from particular directory. I have added a datalist with image and also a repeater control also with image and an array. The codes are as follows.



sub getphoto

Dim photo As String() = System.IO.Directory.GetFiles("C:\pravin\b\shkecellphone", "*.jpg")
Dim dir As System.IO.DirectoryInfo = New System.IO.DirectoryInfo("C:\b")

Dim i As Integer = System.IO.Directory.GetParent("C:\b").FullName.Length
Dim ix As Integer = 0
'Image2.ImageUrl = "C:\pravin\b\shkecellphone\p.jpg"
Dim p As New ArrayList
Dim obd As New PagedDataSource

Do While ix > photo.Length
photo(ix) = photo(ix).Substring(i + 1)
' photo(ix) = photo(ix).Replace("\\", "/")
p.Add(photo(ix))
ix += 1
Loop
Image2.ImageUrl = photo(2)
Label1.Text = photo(ix).ToString
'DataList1.DataSource = photo.CopyTo(DataList1.Items)
obd.DataSource = photo

'datalist2.datasource = photo
'even this is not working this also show then the image empty
DataList2.DataSource = dir.GetFiles("*.jpg")
Repeater1.DataSource = dir.GetFiles("*.jpg")
Repeater1.DataBind()
DataList2.DataBind()

End Sub

The Problem is when i am running it I am not able to see the picture, its is able to count and show the same no of image icon and also the path but its all empty.

kindly let me know whats wrong in this code or what is lacking and any other way the datalist item image or repeater image show the images. Pls feel free to ask me if you want to know more about.

Thanks in advance

QuestionshowModalDialog fires Page_Load only on first click Pin
Tarakeshwar Reddy7-Aug-06 19:15
professionalTarakeshwar Reddy7-Aug-06 19:15 
Questionlocal resources Pin
NasimKaziS7-Aug-06 19:06
NasimKaziS7-Aug-06 19:06 
Questionhandling keyboard event of data grid on client side Pin
24891287-Aug-06 18:43
24891287-Aug-06 18:43 
AnswerRe: handling keyboard event of data grid on client side Pin
Muhammad Chitrali7-Aug-06 22:46
Muhammad Chitrali7-Aug-06 22:46 
GeneralRe: handling keyboard event of data grid on client side Pin
24891288-Aug-06 1:32
24891288-Aug-06 1:32 
Questionhow to link menus with javascript in asp.net Pin
Ramu.e7-Aug-06 18:12
Ramu.e7-Aug-06 18:12 
QuestionECHO Pin
Tiger4567-Aug-06 17:48
Tiger4567-Aug-06 17:48 
QuestionHow to call/execute window application from web application ? Pin
lethanhtri7-Aug-06 17:20
lethanhtri7-Aug-06 17:20 
AnswerRe: How to call/execute window application from web application ? Pin
ravikiranreddydharmannagari7-Aug-06 18:46
ravikiranreddydharmannagari7-Aug-06 18:46 
GeneralRe: How to call/execute window application from web application ? Pin
Muhammad Chitrali7-Aug-06 22:51
Muhammad Chitrali7-Aug-06 22:51 
QuestionAdding Items To Cart Pin
kjosh7-Aug-06 15:50
kjosh7-Aug-06 15:50 
AnswerRe: Adding Items To Cart Pin
Not Active7-Aug-06 16:37
mentorNot Active7-Aug-06 16:37 
AnswerRe: Adding Items To Cart Pin
Tim Kohler7-Aug-06 16:40
Tim Kohler7-Aug-06 16:40 
AnswerRe: Adding Items To Cart Pin
NasimKaziS8-Aug-06 2:16
NasimKaziS8-Aug-06 2:16 
QuestionServer side ms mail merge Pin
tmoney1017-Aug-06 14:16
tmoney1017-Aug-06 14:16 
AnswerRe: Server side ms mail merge Pin
minhpc_bk7-Aug-06 15:23
minhpc_bk7-Aug-06 15:23 
QuestionPasswordRecovery control Pin
Clickok7-Aug-06 13:21
Clickok7-Aug-06 13:21 

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.