.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification