Response.End

C

C

Hi,

I have and ASPX Page.

On submitting the for I write out soem text to soem server
side labels.

I then to a Response.End having done this.

The update to the server side labesl does not get pushed
out to the client.

What do I have to do to get these changes on the server
out to the client.

I need to do a Response.End as I am streaming a download.

If I comment out my Response.End I haveno problem.

I have tried Response.Flushh and it gives me the same
problem.

Anyone got any ideas how to get my server side chanegs in
my labels pushed out to the client???

Thanks,
C
 
G

George Ter-Saakov

My guess you are calling the Response.End to early.
The ASP.NET has some flow you have to follow.
If you are populating lables using memeber variables of the class then in
order to see the result in a browser they must render themself.

Page.Render does it. So when page is ready to render Page.Render goes
through all children and call Render on them.


I would suggest to change the flow of your code. So you will not have to
call Response.End in the middle of your code. Or you can always use
Response.Write.


George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,170
Latest member
Andrew1609
Top