A
Andrei Pociu
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.
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.