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 / Building Controls / September 2003

Tip: Looking for answers? Try searching our database.

Custom Server Control works on page but not User Control...why?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Rebbeck - 16 Sep 2003 12:57 GMT
I'm developing the DevEdit.NET server control (an online HTML editor -
www.devedit.com) but there's an extremely bizarre bug. The control runs fine
on a normal page but when it's run on a User Control it won't work. The
control renders fine and has no errors but when I try to retrieve the value
of it when the page is posted back it just returns its original value rather
than the one that the user entered.

If someone can help me fix this problem (you can download the trial version
from the site) I'm sure I can arrange for a free copy of this  control for
you.

Regards,
John Rebbeck
DevEdit.NET Support
john@devedit.com
www.devedit.com
Teemu Keiski - 16 Sep 2003 15:51 GMT
How are you trying to get the value? Would it have any impact on the program
logic that Load event on the containing Page fires before Load on controls
it contains?

Signature

Teemu Keiski
MCP, Designer/Developer

AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

> I'm developing the DevEdit.NET server control (an online HTML editor -
> www.devedit.com) but there's an extremely bizarre bug. The control runs fine
[quoted text clipped - 12 lines]
> john@devedit.com
> www.devedit.com
John Rebbeck - 17 Sep 2003 01:47 GMT
I'm not sure I understand what you mean. You can download the trial version
of the control which has the same problem from www.devedit.com and it comes
with the source code provided.

Regards,
John

> How are you trying to get the value? Would it have any impact on the program
> logic that Load event on the containing Page fires before Load on controls
[quoted text clipped - 28 lines]
> > john@devedit.com
> > www.devedit.com
John Saunders - 16 Sep 2003 16:56 GMT
> I'm developing the DevEdit.NET server control (an online HTML editor -
> www.devedit.com) but there's an extremely bizarre bug. The control runs fine
[quoted text clipped - 6 lines]
> from the site) I'm sure I can arrange for a free copy of this  control for
> you.

I've taken a quick look at the control and may look more deeply later. It
looks pretty nice, and we might need such a thing, so your offer is
tempting. My one negative comment so far is that your "unregistered" message
box displays too often. It gets in the way of testing the control. I would
think that once per activation, or once per hour would be enough.

For the moment, I'll say that I recently had trouble with a complex control,
when I made assumptions about the order in which events fired. I got out of
this mess by instrumenting the hell out of the code, adding Page.Trace.Write
statements to every possible overload of a Control method and then having
the method call its base class version. After simplifying the problem to its
smallest possible broken version and poring over the event traces, I finally
tracked down my problem. Maybe the same technique will work for you.

Note that Page.Trace cannot be referenced in design mode, so you'll want to
create your own "PageTraceWrite" method which checks for design mode before
even referencing "Page.Trace", much less calling Page.Trace.Write.
Signature

John Saunders
Internet Engineer
john.saunders@surfcontrol.com


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



©2009 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.