Re: Outputting text when using code behind?

From: Andrei Pociu (andrei_pociu_at_geekpedia.com)
Date: 09/28/04


Date: Tue, 28 Sep 2004 17:09:43 +0300

So every part of a website should be coded using different user controls?
For the menu I should use one user control, for the latest news box another
user control and so on?

Oh, and do you know some example website source code available which I can
download?

Thank you for your answers.

"Andrei Pociu" <andrei_pociu@geekpedia.com> wrote in message
news:usxgnCWpEHA.348@TK2MSFTNGP15.phx.gbl...
>I have a major doubt about outputting text in ASP .NET when using code
>behind.
>
> I know most of the output you gain from a code behind file (.aspx.cs) is
> outputted to the Webform (.aspx) using labels, datagrids, datalists...
> Also, I know you can output directly using Response.Write(). But this
> places the output at the beginning of the file.
>
> How can you output the text at a specific place in the HTML code? An
> example would be when building a menu on a website and you retrieve the
> items from a database using the code in a code-behind file.
> I'm guessing that the solution solution has to be something like inserting
> a custom tag into the aspx.cs file which will be replaced with the output
> controlled from the aspx.cs file.
>
> Thank you for your support.
>



Relevant Pages

  • Re: website restricted to fixed public IP or to only PC wth predefined configuration
    ... you are extending the trusted subsystem to the user - this is trivial to bypass ... I created Windows User Control which is getting MAC ID using WMI. ... few machines ... of PC to give access to the website. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: website restricted to fixed public IP or to only PC wth predefined configuration
    ... I am getting MAC ID of client's system ... I don't want to let the people to browse my website from cybercafe. ... I created Windows User Control which is getting MAC ID using WMI. ... few machines ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Accessing a code behind variable from ASPX
    ... Can you make that public variable a property of the user control, ... > I need to be able to access a public code behind variable within my ASPX ... The table requires a background image. ... > is at the root of the website, ...
    (microsoft.public.dotnet.framework.aspnet)
  • caching in aspnet
    ... I'm trying to do server caching for some pages of a ... All the pages include the same user control to which they pass a parameter. ... When I go to the website through localhost on the server ... the pages from anywhere else the load time is the same ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Outputting text when using code behind?
    ... ASP.NET control example ... > For the menu I should use one user control, ... and do you know some example website source code available which I can ... >> I'm guessing that the solution solution has to be something like ...
    (microsoft.public.dotnet.framework.aspnet)