Hi All:
I was wondering if it was possible to evoke a post back event during code
execution. I have a form that contains file specific information. I would
like to iterate through an array of files and have the information on each
file posted and displayed on my form as I pragmatically manipulate that file
data. I know that this simple task should easily be done.... It is just a
matter of how. Do I need the server side code behind to execute some
jscript code at the appropriate point in server code execution? If so what
might that be? Right now I have a HTML Submit Button that I send a click
event to with some Jscript. It appears to be working but only seems to fire
at the end of the server code execution. Does anyone have a reason why? any
ideas of what to do better? or some steps that I may have missed? TIA for
all your help.
--
Best regards
Paul Perot
President
Perot Solutions pe************@earthlink.net
(770) 565 - 9151
(678) 852 - 7789 (c) 6 1606
Well, form.submit from JavaScript will handle it. You have to keep in mind
that you have code executing in two places: on the server, and on the
client. The server side code won't post anything (and doesn't need to - you
are already at the server), and the client doesn't actually have code to
execute until the server side code has finished and spat out the DHTML that
the client can read and act on.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Paul Perot" <pe************@earthlink.net> wrote in message
news:Tj******************@newsread2.news.atl.earth link.net... Hi All:
I was wondering if it was possible to evoke a post back event during code execution. I have a form that contains file specific information. I
would like to iterate through an array of files and have the information on each file posted and displayed on my form as I pragmatically manipulate that
file data. I know that this simple task should easily be done.... It is just a matter of how. Do I need the server side code behind to execute some jscript code at the appropriate point in server code execution? If so
what might that be? Right now I have a HTML Submit Button that I send a click event to with some Jscript. It appears to be working but only seems to
fire at the end of the server code execution. Does anyone have a reason why?
any ideas of what to do better? or some steps that I may have missed? TIA for all your help.
--
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
Hi Chris:
Thank you for your response...I don't know if I explained what I wanted to
do as much as I explained what I did. What I would like is a mechanism to
update the data on my web page as the server side code cycles through a
number of files. For instance, if I read in a file, I post a thumbnail
image of the file, various office properties and some other items about that
file. I want that information to be displayed on the client, while the
server manipulates information on that file...when the server is done with
its manipulation, it selects the next file from the array, I would like that
information and picture displayed at that point on the browser... this would
repeat for several hundred files... is this possible... ?? or do you have
a better suggestion on how to do this?? TIA
Best regards
Paul Perot
President
Perot Solutions pe************@earthlink.net
(770) 565 - 9151
(678) 852 - 7789 (c)
Best regards
Paul Perot
President
Perot Solutions pe************@earthlink.net
(770) 565 - 9151
(678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:u3****************@TK2MSFTNGP10.phx.gbl... Well, form.submit from JavaScript will handle it. You have to keep in mind that you have code executing in two places: on the server, and on the client. The server side code won't post anything (and doesn't need to -
you are already at the server), and the client doesn't actually have code to execute until the server side code has finished and spat out the DHTML
that the client can read and act on.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) --
"Paul Perot" <pe************@earthlink.net> wrote in message news:Tj******************@newsread2.news.atl.earth link.net... Hi All:
I was wondering if it was possible to evoke a post back event during
code execution. I have a form that contains file specific information. I would like to iterate through an array of files and have the information on
each file posted and displayed on my form as I pragmatically manipulate that file data. I know that this simple task should easily be done.... It is just
a matter of how. Do I need the server side code behind to execute some jscript code at the appropriate point in server code execution? If so what might that be? Right now I have a HTML Submit Button that I send a
click event to with some Jscript. It appears to be working but only seems to fire at the end of the server code execution. Does anyone have a reason why? any ideas of what to do better? or some steps that I may have missed? TIA
for all your help.
--
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
You can flush the current contents of the Response buffer using the
HttpResponse.Flush method, so it is possible to flush the contents to the
browser, which can display a page before it is loaded. So, you can
selectively display as you process, and then just flush the response buffer
as you go along.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Paul Perot" <pe************@earthlink.net> wrote in message
news:BD******************@newsread2.news.atl.earth link.net... Hi Chris:
Thank you for your response...I don't know if I explained what I wanted to do as much as I explained what I did. What I would like is a mechanism to update the data on my web page as the server side code cycles through a number of files. For instance, if I read in a file, I post a thumbnail image of the file, various office properties and some other items about
that file. I want that information to be displayed on the client, while the server manipulates information on that file...when the server is done with its manipulation, it selects the next file from the array, I would like
that information and picture displayed at that point on the browser... this
would repeat for several hundred files... is this possible... ?? or do you
have a better suggestion on how to do this?? TIA Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message news:u3****************@TK2MSFTNGP10.phx.gbl... Well, form.submit from JavaScript will handle it. You have to keep in
mind that you have code executing in two places: on the server, and on the client. The server side code won't post anything (and doesn't need to - you are already at the server), and the client doesn't actually have code to execute until the server side code has finished and spat out the DHTML that the client can read and act on.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) --
"Paul Perot" <pe************@earthlink.net> wrote in message news:Tj******************@newsread2.news.atl.earth link.net... Hi All:
I was wondering if it was possible to evoke a post back event during code execution. I have a form that contains file specific information. I would like to iterate through an array of files and have the information on each file posted and displayed on my form as I pragmatically manipulate
that file data. I know that this simple task should easily be done.... It is
just a matter of how. Do I need the server side code behind to execute some jscript code at the appropriate point in server code execution? If so what might that be? Right now I have a HTML Submit Button that I send a click event to with some Jscript. It appears to be working but only seems
to fire at the end of the server code execution. Does anyone have a reason
why? any ideas of what to do better? or some steps that I may have missed? TIA for all your help.
--
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
Thanks Chris ...
I will look into this... I am assuming that the client side will see the new
images and data as I go along??? That is my main goal here. Will let you
know how this works out... thanks again
--
Best regards
Paul Perot
President
Perot Solutions pe************@earthlink.net
(770) 565 - 9151
(678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... You can flush the current contents of the Response buffer using the HttpResponse.Flush method, so it is possible to flush the contents to the browser, which can display a page before it is loaded. So, you can selectively display as you process, and then just flush the response
buffer as you go along.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) --
"Paul Perot" <pe************@earthlink.net> wrote in message news:BD******************@newsread2.news.atl.earth link.net... Hi Chris:
Thank you for your response...I don't know if I explained what I wanted
to do as much as I explained what I did. What I would like is a mechanism
to update the data on my web page as the server side code cycles through a number of files. For instance, if I read in a file, I post a thumbnail image of the file, various office properties and some other items about that file. I want that information to be displayed on the client, while the server manipulates information on that file...when the server is done
with its manipulation, it selects the next file from the array, I would like that information and picture displayed at that point on the browser... this would repeat for several hundred files... is this possible... ?? or do you have a better suggestion on how to do this?? TIA Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message news:u3****************@TK2MSFTNGP10.phx.gbl... Well, form.submit from JavaScript will handle it. You have to keep in mind that you have code executing in two places: on the server, and on the client. The server side code won't post anything (and doesn't need
to - you are already at the server), and the client doesn't actually have code
to execute until the server side code has finished and spat out the DHTML that the client can read and act on.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) --
"Paul Perot" <pe************@earthlink.net> wrote in message news:Tj******************@newsread2.news.atl.earth link.net... > Hi All: > > I was wondering if it was possible to evoke a post back event during code > execution. I have a form that contains file specific information.
I would > like to iterate through an array of files and have the information
on each > file posted and displayed on my form as I pragmatically manipulate that file > data. I know that this simple task should easily be done.... It is just a > matter of how. Do I need the server side code behind to execute
some > jscript code at the appropriate point in server code execution? If
so what > might that be? Right now I have a HTML Submit Button that I send a click > event to with some Jscript. It appears to be working but only seems
to fire > at the end of the server code execution. Does anyone have a reason why? any > ideas of what to do better? or some steps that I may have missed?
TIA for > all your help. > > -- > > Best regards > > Paul Perot > President > Perot Solutions > pe************@earthlink.net > (770) 565 - 9151 > (678) 852 - 7789 (c) > > >
Hi Chris.
I put in a Response.Flush() as you suggested..... but while that sent the
contents of the buffer to the client... it also stopped all server side
execution. Is this what it was meant to do? If so this is not what I
need... on the other hand I suspect I am just missing something else here.
The question is what? Any further ideas. Thanks
--
Best regards
Paul Perot
President
Perot Solutions pe************@earthlink.net
(770) 565 - 9151
(678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... You can flush the current contents of the Response buffer using the HttpResponse.Flush method, so it is possible to flush the contents to the browser, which can display a page before it is loaded. So, you can selectively display as you process, and then just flush the response
buffer as you go along.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) --
"Paul Perot" <pe************@earthlink.net> wrote in message news:BD******************@newsread2.news.atl.earth link.net... Hi Chris:
Thank you for your response...I don't know if I explained what I wanted
to do as much as I explained what I did. What I would like is a mechanism
to update the data on my web page as the server side code cycles through a number of files. For instance, if I read in a file, I post a thumbnail image of the file, various office properties and some other items about that file. I want that information to be displayed on the client, while the server manipulates information on that file...when the server is done
with its manipulation, it selects the next file from the array, I would like that information and picture displayed at that point on the browser... this would repeat for several hundred files... is this possible... ?? or do you have a better suggestion on how to do this?? TIA Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message news:u3****************@TK2MSFTNGP10.phx.gbl... Well, form.submit from JavaScript will handle it. You have to keep in mind that you have code executing in two places: on the server, and on the client. The server side code won't post anything (and doesn't need
to - you are already at the server), and the client doesn't actually have code
to execute until the server side code has finished and spat out the DHTML that the client can read and act on.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) --
"Paul Perot" <pe************@earthlink.net> wrote in message news:Tj******************@newsread2.news.atl.earth link.net... > Hi All: > > I was wondering if it was possible to evoke a post back event during code > execution. I have a form that contains file specific information.
I would > like to iterate through an array of files and have the information
on each > file posted and displayed on my form as I pragmatically manipulate that file > data. I know that this simple task should easily be done.... It is just a > matter of how. Do I need the server side code behind to execute
some > jscript code at the appropriate point in server code execution? If
so what > might that be? Right now I have a HTML Submit Button that I send a click > event to with some Jscript. It appears to be working but only seems
to fire > at the end of the server code execution. Does anyone have a reason why? any > ideas of what to do better? or some steps that I may have missed?
TIA for > all your help. > > -- > > Best regards > > Paul Perot > President > Perot Solutions > pe************@earthlink.net > (770) 565 - 9151 > (678) 852 - 7789 (c) > > >
I struggled with this for awhile and found the answer. It worked ONLY
if I had:
1) included the tag <meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"> inside the <HTML><Head>
tags
2) used Repsonse.Buffer = True
3) inside the <body> tag was response.write "..." and response.flush
Randy
Below is a timer/pause sample:
<%
response.buffer = True
response.Clear
Dim sTime, i, elap, Pause, prev, max
sTime = Now()
Pause = request("pause")
If Not IsNumeric(Pause) Then Pause = 0
max = 500000
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<form action="pause.asp">
Pause (seconds): <input type=text name=pause
value="<%=request("pause")%>"><input type=submit></form>
<%
response.write "Pause: " & Pause & " Elap: " & elap & "<BR>"
Do
elap = DateDiff("s", sTime, Now())
If prev <> elap Then
response.flush
response.write "Pause: " & Pause & " Elap: " & elap & "<BR>"
End If
i = i + 1
If i > max Then Exit Do 'to avoid getting stuck in a loop
prev = elap
Loop Until CInt(elap) >= CInt(Pause)
response.write "<BR>Start: " & sTime & " End: " & Now() & " Elapsed: "
& elap & " Loop: " & i & "<BR>"
%>
</body>
</html>
"Paul Perot" <pe************@earthlink.net> wrote in message news:<gp******************@newsread1.news.atl.eart hlink.net>... Hi Chris.
I put in a Response.Flush() as you suggested..... but while that sent the contents of the buffer to the client... it also stopped all server side execution. Is this what it was meant to do? If so this is not what I need... on the other hand I suspect I am just missing something else here. The question is what? Any further ideas. Thanks
--
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... You can flush the current contents of the Response buffer using the HttpResponse.Flush method, so it is possible to flush the contents to the browser, which can display a page before it is loaded. So, you can selectively display as you process, and then just flush the response buffer as you go along.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) --
"Paul Perot" <pe************@earthlink.net> wrote in message news:BD******************@newsread2.news.atl.earth link.net... Hi Chris:
Thank you for your response...I don't know if I explained what I wanted to do as much as I explained what I did. What I would like is a mechanism to update the data on my web page as the server side code cycles through a number of files. For instance, if I read in a file, I post a thumbnail image of the file, various office properties and some other items about that file. I want that information to be displayed on the client, while the server manipulates information on that file...when the server is done with its manipulation, it selects the next file from the array, I would like that information and picture displayed at that point on the browser... this would repeat for several hundred files... is this possible... ?? or do you have a better suggestion on how to do this?? TIA Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
Best regards
Paul Perot President Perot Solutions pe************@earthlink.net (770) 565 - 9151 (678) 852 - 7789 (c)
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message news:u3****************@TK2MSFTNGP10.phx.gbl... > Well, form.submit from JavaScript will handle it. You have to keep in mind > that you have code executing in two places: on the server, and on the > client. The server side code won't post anything (and doesn't need to - you > are already at the server), and the client doesn't actually have code to > execute until the server side code has finished and spat out the DHTML that > the client can read and act on. > > -- > Chris Jackson > Software Engineer > Microsoft MVP - Windows Client > Windows XP Associate Expert > -- > More people read the newsgroups than read my email. > Reply to the newsgroup for a faster response. > (Control-G using Outlook Express) > -- > > "Paul Perot" <pe************@earthlink.net> wrote in message > news:Tj******************@newsread2.news.atl.earth link.net... > > Hi All: > > > > I was wondering if it was possible to evoke a post back event during code > > execution. I have a form that contains file specific information. I would > > like to iterate through an array of files and have the information on each > > file posted and displayed on my form as I pragmatically manipulate that file > > data. I know that this simple task should easily be done.... It is just a > > matter of how. Do I need the server side code behind to execute some > > jscript code at the appropriate point in server code execution? If so what > > might that be? Right now I have a HTML Submit Button that I send a click > > event to with some Jscript. It appears to be working but only seems to fire > > at the end of the server code execution. Does anyone have a reason why? any > > ideas of what to do better? or some steps that I may have missed? TIA for > > all your help. > > > > -- > > > > Best regards > > > > Paul Perot > > President > > Perot Solutions > > pe************@earthlink.net > > (770) 565 - 9151 > > (678) 852 - 7789 (c) > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Phillip Kennedy |
last post by:
Hi,
HELP!!!! we are having a problem where we have a web page
with a number of buttons and form fields, unfortunately
whenevr we hit the enter key in a form field it is
envokingthe 1st button,...
|
by: Vishal |
last post by:
Hello,
I already asked this question in the ASP.NET forums,
but no help came. So I am hoping that somebody can help me
out. This is really very URGENT me.
For my e-commerce application, I...
|
by: Merlin |
last post by:
Hi,
My code below doesn't work does anyone have any pointers? All my controls
are programically added.
Dim i As Int16
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Name <>...
|
by: Daniel Friend |
last post by:
Hello,
I have added a custom usercontrol programically and all works fine... I
would like to change some custom properties that I have set in that
usercontrol.
Any help would be greatly...
|
by: Jim |
last post by:
I have a datagrid with a DataAdapter as the DataSource. The user fills in
their data for 3 columns and I want to programically add a value to the 4th
(invisible) column (employee number). That way...
|
by: dtarczynski |
last post by:
Hello.
Im trying to add new EventHandler to DropDownList programically. Im
doing something like this:
DropDownList ddlCate = new DropDownList();
ddlCate.ID = String.Format("ddlCategory{0}",...
|
by: superjacent |
last post by:
Hope someone can help.
I have a saved parent form containing an unbound sub-form. I set the
SourceObject (form) after the Parent Form opens/loads.
The sub-form (datasheet view) basically...
|
by: abduzalam |
last post by:
Hi Members,
I am in a serious trouble,My problem is i want to develop a software as my academic project, it is network back up database, that is a remote machine hold sql databses, and when...
|
by: Garg |
last post by:
I had a listbox, whose autoPostBAck property was set to true. So. if
I was clicking on any item for the first time, it caused a successful
post-back. However, if i clicked on the item...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
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...
| |