code behind AND page code

A

a

is it possible to have page functions both in code behind AND on in
the html?

i.e. i added the following script to the html but nothing happens:

<script runat=server language=C#>

private void Page_Init() {
tb1.Text="sdf";
}

</script>
 
G

Guest

2.0 or 1.1.

As 2.0 is partial classes, as long as you have not duped the event, you
should be able to handle it. With 1.1, you have an inheritance model, so you
should still be able to do what you desire, but it gets trickier due to
method hiding, etc.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top