Re: Can a control produce html?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Adam Smith (none)
Date: 07/27/04


Date: Tue, 27 Jul 2004 14:13:17 +0100

Forgive me, I was rather tired when I wrote that.

The reason I couldn't see it in the source was because smartnav was on and I
hadn't realised.

Ok that aside, I'm still after the html of a portion of the page.

so here goes:

<page start>

Textboxes
<div>
 _______
|___x___|
|___x___|
|___x___|
|___x___| <--- this is a table, the 'X' represents some user controls
</div>
A textarea

<end of page>

So, I enter some information in the textboxes. This info is passed to the
user controls, which then change accordingly.
The textarea takes contains a copy of all the HTML in the div container.

So this is presumably an event sequence problem. How would I go about
capturing the HTML generated by these controls?

Thanks in advance,
Adam Smith

"John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
news:%23u4ksQzcEHA.3044@TK2MSFTNGP10.phx.gbl...
> "Adam Smith" <none> wrote in message
> news:OC0tQTxcEHA.3512@TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > Hopefully someones come across this...
> >
> > I've a page that dynamically generates some content. Part of this is a
> > series of user controls.
> > _______
> > |___x___|
> > |___x___|
> > |___x___|
> > |___x___| fig1
> > x: these are user controls
> >
> > Now... if I do a view source, all I get is the table that houses the
user
> > controls. I need to know the HTML that was generated, as these will
later
> > be used in marketing.
> > So is it possible for a user control to squirt back pure html?
>
> I'm not sure what you mean. The only thing controls generate _is_ html!
> --
> John Saunders
> johnwsaundersiii at hotmail
>
>



Relevant Pages

  • Re: Can a control produce html?
    ... ID's in the textboxes at the top of the page (along with layout and some ... textarea, this is so any manual modifications can be made and later saved to ... the user controls HTML is not being grabbed. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • RE: Errors in VS 2005 Source view with User Controls? Why?
    ... something on the html content's format. ... to the restricted xhtml format validation in VS.NET 2005 for asp.net 2.0. ... Errors in VS 2005 Source view with User Controls? ... Just the IDE complains. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Login checking inline... im confused
    ... Here you could have two user controls and load one of them dynamically on ... visible property of its container (so that the HTML markup is just not ... object model so it's likely best to start thinking of your page as objects ... you interact with rather than rendering directly the HTML markup as we are ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: TRICK: methods in ASPX pages with <%%> code blocks
    ... If you create user controls you can use the Render method. ... The '%> some HTML <%' constructions are not really object oriented, ... TextBox Name = new TextBox; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Rephrase: Using a user control like a frame.
    ... You could read the HTML file and stream it at this location.... ... "Mark" a écrit dans le message de ... > I have a page with several user controls: ...
    (microsoft.public.dotnet.framework.aspnet)