Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
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
 
Old August 14th, 2007, 03:27 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default 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
 
Old August 14th, 2007, 06:48 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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

================================================== =========
 
Old August 14th, 2007, 08:48 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
 
Old August 14th, 2007, 10:25 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old August 14th, 2007, 11:25 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old August 15th, 2007, 04:05 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Jeffrey,

Take a look at my reply to your cross-post here: http://p2p.wrox.com/topic.asp?TOPIC_ID=63965

marguee is (and always has been) an IE only thing. It's not that VS 2005 doesn't support it, but it's warning you that browsers won't support it.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old August 15th, 2007, 07:28 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

A more robust option would be to use a Java Applet or a flash movie that would accept a stream of text from the database and then scroll that. Its alot better then using a browser specific tag ><

================================================== =========
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

================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending a mail from a flash with asp.net coding waikiat86 ASP.NET 2.0 Basics 3 June 28th, 2007 10:47 PM
Asp.net Disable "Back" of window wirh coding amitnet ASP.NET 2.0 Professional 4 March 2nd, 2007 12:37 AM
Scrolling on text box echovue Access VBA 2 January 3rd, 2007 03:57 PM
scrolling text box bezaman Classic ASP Basics 6 November 10th, 2005 05:26 PM
ASP.Net Code Behind & In-Line Coding vinod_pawar1 General .NET 4 October 8th, 2004 02:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.