 |
| ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 14th, 2007, 03:27 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Coding scrolling text with VS 2005/ASP.NET
I am working on an ASPX content page with an inline coding
to display some scrolling text from a SQL Server database.
I have tried to use StringBuilder and SqlDataReader to display
the scrolling text; but could not get it.
Any information on scrolling text for VS2005 is greatly appreciated.
TIA,
Jeffrey
__________________
C. Jeffrey Wang
|
|

August 14th, 2007, 06:48 PM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
I am unsure what you mean. Back in the day of HTML 3 we had the marquee tag that would let us scroll text across the screen, but the text had to be within the <marquee></marquee> tag of course. How exactly are you trying to do this?
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
================================================== =========
|
|

August 14th, 2007, 08:48 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Quote:
quote:Originally posted by cJeffreywang
I have tried to use StringBuilder and SqlDataReader to display
the scrolling text; but could not get it.
|
These are server-side classes, how do you expect them to produce anything useful to a web page?
-Peter
|
|

August 14th, 2007, 10:25 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Thanks. In fact, I am updating a VS 6 ASP page with the marquee tags to display the scrolling text from a Stored Procedure of the SQL Server database. The claasic ASP file used a connection control to execute the Stored Procedure to create a rs(record set) for marguee tags.
Myabe,my question is: Is there an ASP.NET 2.0 control I can use to replace the record set for marguee tags? "StringBuilder and SqlDataReader" is my first guess. How about DataTable? How to run the Stored Procedure to create a DataTable for marguee? Is marguee tag still supported by ASP.NET 2.0?
TIA,
Jeffrey
|
|

August 14th, 2007, 11:25 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Here is how the classic ASP coding utilized the marguee tags.
<%
sqlText = "getScrollingText" 'get stored procedure text
set rsScrollingText = conniTemp.Execute(sqlText)
'use connection object to get the record set
%>
<marguee......>
Response.write rsScrollingText("ScrollingText) 'get the text column
</marguee>
Because VS2005 does not support rs(record set), I tried using datareader and stringbuilder.
TIA,
Jeffrey
|
|
 |