Re: Outputting text when using code behind?
From: Andrei Pociu (andrei_pociu_at_geekpedia.com)
Date: 09/28/04
- Next message: Patrice: "Re: What is easiest way to save a file to a users / client computer"
- Previous message: Kevin Spencer: "Re: PostBack"
- In reply to: Andrei Pociu: "Outputting text when using code behind?"
- Next in thread: GrantMagic: "Re: Outputting text when using code behind?"
- Reply: GrantMagic: "Re: Outputting text when using code behind?"
- Messages sorted by: [ date ] [ thread ]
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.
>
- Next message: Patrice: "Re: What is easiest way to save a file to a users / client computer"
- Previous message: Kevin Spencer: "Re: PostBack"
- In reply to: Andrei Pociu: "Outputting text when using code behind?"
- Next in thread: GrantMagic: "Re: Outputting text when using code behind?"
- Reply: GrantMagic: "Re: Outputting text when using code behind?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|