Page with User control loads twice.

  • Thread starter RAMESH BABU VEERAMANI (RAMBAB)
  • Start date
R

RAMESH BABU VEERAMANI (RAMBAB)

Hello guyz,

When a web form page has a usercontrol registered, the page loads twice on
execution. Do'nt know whats up with the execution cycle that enables the
loading twice.

The usercontrol contains contains server controls like a textbox and a
button. An event is created on clicking the button in the usercontrol which
is captured by the parent page which inturn redirects the page to another
page (search.aspx).

However strange, enough to debug, the search.aspx is loaded twice.

Could anyone provide a solutions and explanation as to why the heck ?

Thanks in advance.

Ramesh Babu Veeramani
 
R

ram.bab29

Ok I think i was able to figure out what the problem is,

Strange might it sound

I dont know the reason behind the resolution but it fixed the problem .


I had created a new application and started trimming the events
associated with the page and usercontrol.

Atlast in the usercontrol HTML page i had the attribute
Background="#XXXXXX" as an attribute to the <TD> tag.

On removing the attribute from the usercontrol html file i was able to
resolve the issue.

Thanks everbody for there help.

Ramesh Babu Veeramani
 

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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top