Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / July 2006

Tip: Looking for answers? Try searching our database.

Page with User control loads twice.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RAMESH BABU VEERAMANI (RAMBAB) - 24 Jul 2006 22:12 GMT
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
ram.bab29@gmail.com - 28 Jul 2006 23:49 GMT
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

> Hello guyz,
>
[quoted text clipped - 14 lines]
>
> Ramesh Babu Veeramani

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.