473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

APSX Code Behind Form

Problem: I want a table row appear to flash.

How might i do this? I tried a do loop with a delay, but of course it is running on the server and the page does not get refreshed. Is there a way to do this without having to go back to the server

In the exe world i would just have a thread that sleeps 500 ms, then based on the current backcolor it woud change it, this would create a flashing type view.

Any ideas

Thanks Eric.
Nov 22 '05 #1
2 1713
You'll need to do this in javascript. The basic technique is to write a
routine which switches the foreground and background formats based on the
current format values, it changes them each run through in order to produce
the flashing effect, then calls itself recursively using the .setTimeout
method of the window object. For a more complete (and, I think, overly
complex) exposition, see:

Dynamic HTML Web Magic, 1998, New Riders, by Jeff Rouyer. His web site is
http://www.htmlguru.com, but he doesn't seem to have the code samples posted
any more.

"Eric" <an*******@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
Problem: I want a table row appear to flash.

How might i do this? I tried a do loop with a delay, but of course it is running on the server and the page does not get refreshed. Is there a way
to do this without having to go back to the server?
In the exe world i would just have a thread that sleeps 500 ms, then based on the current backcolor it woud change it, this would create a flashing
type view.
Any ideas?

Thanks Eric.

Nov 22 '05 #2
Hi Eric,

You can try this I used a label in this sample, however I think it would not
be that much work for you to get a table row flashing

I hope this helps?

Cor

Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim scriptString As String = _
"<script language='JavaScript'>" & _
"setFlash();" & _
"function setFlash(){" & _
"if (document.all('Label1').innerText=='') {" & _
"document.all('Label1').innerText ='I flash';}" & _
"else{ document.all('Label1').innerText=''}" & _
"setTimeout('setFlash()',500)}" & _
"</script>"
Page.RegisterStartupScript("setFlash", scriptString)
End Sub
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Eric | last post by:
Problem: I want a table row appear to flash. How might i do this? I tried a do loop with a delay, but of course it is running on the server and the page does not get refreshed. Is there a way to...
8
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
5
by: Richard Dixson | last post by:
I created a new C# web application. Basically all I am trying to do is create a table that consists of a few rows with two columns in each. And then to set those columns to text values from my...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
1
by: Me | last post by:
Hi, I inherited a web application that has several very similar forms for gathering user data. User's must choose the form that best fits their needs and fill it out. Each form has about 15...
1
by: Hong Hao | last post by:
Recently, I was trying to modify an existing aspx page when client-side validation on that page stopped working. I searched this group and the web in general and found that other people have had...
12
by: GaryDean | last post by:
In the original post I failed so indicate that I am using framework 1.1....... I need to be able to change the background color of a page from code. I found an answer to this question in...
2
by: kvicky | last post by:
can anybody tell how to get a form show up in Code behind in C#. If I type something I want a form to show up so that I can enter some values and use those values in my code. Can I do this...
2
by: rn5a | last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with the IDs 'txt1' & 'txt2' respectively. To use this user control in an ASPX page, the following Register directive will be...
1
by: coolsidsin | last post by:
I have a apsx form (Form A), which on submiting does a time consuming task. So i want to open a new aspx window (Form B) in which I want do do that time consuming task and show progress to the user...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.