Re-render the page

G

Guest

Using ASP.NET 1.1
I make a change that effects the .text property on all the labels on page
load. However, since the page_load event is raised automatically on
post-back before the click event, when I make an explict call to page_load I
get 2 copies of my form. The top one is the old one, and the bottom shows
the change.

Is there a way to flush the rendered information so that when I call the
page_load, it will only load it with the change?
 
S

Steven Cheng[MSFT]

Hi Ryan,

Welcome to the MSDN newsgroup.

From your description, you're doing some customization on your ASP.NET web
page's rendering , but encountered some problem on the actual output
content, correct?

As for the page_load and "get 2 copies of my form. " , I'm still not very
sure on this, would you provide some further explanation on it or give me
some detail code logic on your page so that we can take a further look?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
G

Guest

Thanks for your reply Steven.

I did solve this problem however, but taking all of my code out of Page_Load
and placing it into a new method that Page_Load and my other method now call
to dynamically build the form.
 
S

Steven Cheng[MSFT]

That¡¯s cool Ryan,

thanks for your followup. Also, if you meet any further problem or anything
else we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support


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

When responding to posts, please "Reply to Group" via your newsreader so
that others may

learn and benefit from your issue.

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


This posting is provided "AS IS" with no warranties, and confers no rights.
 

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,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top