Search:
Namespaces
Discussions
.NET v1.1
Feedback
Question about FSO and codebehind
Messages
Related Types
This message was discovered on
ASPFriends.com 'ngfx-io' list
.
Williams, Sean (CCI-Atlanta)
Hello all... I'm trying to create a page of thumbnail images. Hopefully this is a lot easier than the way I'm doing it.
Here's a quick code rundown of what I'm doing:
Thumbs.ascx.vb:
=================================
Dim files as String()
Dim file as String
Dim strOutPutHTML as String
For Each file in files
strOutPutHTML += "...HTML code here..."
strOutPutHTML += "<img src=""/images/" & File & """>"
strOutPutHTML += "...more HTML code here..."
Next
thumbnailLiteral.text = strOutPutHTML
Thumbs.ascx
=================================
... HTML code ...
<asp:literal id="thumbnailLiteral" runat="server" />
... more HTML code ...
So, as you can see I'm just doing the same thing that I would have done with traditional ASP (using FSO), but dropping the code into an ASP:Literal instead of doing a response.write.
Now, I love the ASP:repeaters that I can use with SQL access... is there something similar I can do with the FSO?
Thanks!!
Sean Williams
Web Application Development - CM
Reply to this message...
Andy Smith
Hello all... I'm trying to create a page of thumbnail images. Hopefully this is a lot easier than the way I'm doing it.
Here's a quick code rundown of what I'm doing:
Thumbs.ascx.vb:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Dim files as String()
Dim file as String
Dim strOutPutHTML as String
For Each file in files
strOutPutHTML +=3D "...HTML code here..."
strOutPutHTML +=3D "<img src=3D""/images/" & File & """>"
strOutPutHTML +=3D "...more HTML code here..."
Next
thumbnailLiteral.text =3D strOutPutHTML
Thumbs.ascx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
... HTML code ...
<asp:literal id=3D"thumbnailLiteral" runat=3D"server" />
... more HTML code ...
So, as you can see I'm just doing the same thing that I would have done with traditional ASP (using FSO), but dropping the code into an ASP:Literal instead of doing a response.write.
Now, I love the ASP:repeaters that I can use with SQL access... is there something similar I can do with the FSO?
Thanks!!
Sean Williams
Web Application Development - CM
Reply to this message...
Williams, Sean (CCI-Atlanta)
Hello all... I'm trying to create a page of thumbnail images. Hopefully this is a lot easier than the way I'm doing it.
Here's a quick code rundown of what I'm doing:
Thumbs.ascx.vb:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Dim files as String()
Dim file as String
Dim strOutPutHTML as String
For Each file in files
strOutPutHTML +=3D "...HTML code here..."
strOutPutHTML +=3D "<img src=3D""/images/" & File & """>"
strOutPutHTML +=3D "...more HTML code here..."
Next
thumbnailLiteral.text =3D strOutPutHTML
Thumbs.ascx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
... HTML code ...
<asp:literal id=3D"thumbnailLiteral" runat=3D"server" />
... more HTML code ...
So, as you can see I'm just doing the same thing that I would have done
with traditional ASP (using FSO), but dropping the code into an ASP:Literal instead of doing a response.write.
Now, I love the ASP:repeaters that I can use with SQL access... is there
something similar I can do with the FSO?
Thanks!!
Sean Williams
Web Application Development - CM
Reply to this message...
System.Collections.ArrayList
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com