Click here to Skip to main content
16,010,876 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Is this possible? Pin
Jörgen Sigvardsson6-Oct-02 22:22
Jörgen Sigvardsson6-Oct-02 22:22 
GeneralRe: Is this possible? Pin
Jörgen Sigvardsson6-Oct-02 22:48
Jörgen Sigvardsson6-Oct-02 22:48 
GeneralRe: Is this possible? Pin
Paul Watson6-Oct-02 23:41
sitebuilderPaul Watson6-Oct-02 23:41 
GeneralRe: Is this possible? Pin
Rickard Andersson207-Oct-02 2:02
Rickard Andersson207-Oct-02 2:02 
AnswerRe: Is this possible? Pin
benjymous7-Oct-02 5:02
benjymous7-Oct-02 5:02 
GeneralRe: Is this possible? Pin
Jörgen Sigvardsson7-Oct-02 7:15
Jörgen Sigvardsson7-Oct-02 7:15 
GeneralAccess User Control in ASP.NET Pin
Mazdak6-Oct-02 19:55
Mazdak6-Oct-02 19:55 
GeneralRe: Access User Control in ASP.NET Pin
Paul Watson6-Oct-02 21:12
sitebuilderPaul Watson6-Oct-02 21:12 
Mazdak wrote:
Is there any way to have access to properites of user control,in my code behiind?

Yup, just define your usercontrol in your code behind as you would any normal control.

Remember your usercontrol is effectively the same as any of the "official" controls, no special treatment required.

e.g.
ASPX page:
...
<body>
    <RKA:Header id="header" runat="server" CurrentSection="Garden Design" />
...


and then codebehind:
...
public class _template : System.Web.UI.Page
    {
        public rka_revamp._header header;
        private void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here
            header.CurrentSection = true;
        }...


Paul Watson
Bluegrass
Cape Town, South Africa

GeneralASP.Net Application Compilation Pin
MrGlover6-Oct-02 13:07
MrGlover6-Oct-02 13:07 
GeneralRe: ASP.Net Application Compilation Pin
Paul Ingles7-Oct-02 10:01
Paul Ingles7-Oct-02 10:01 
GeneralDaaah!! ExecuteScalar always throws an exception!! Pin
Rickard Andersson206-Oct-02 9:35
Rickard Andersson206-Oct-02 9:35 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
leppie6-Oct-02 11:24
leppie6-Oct-02 11:24 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
leppie6-Oct-02 11:27
leppie6-Oct-02 11:27 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Paul Watson6-Oct-02 21:19
sitebuilderPaul Watson6-Oct-02 21:19 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Rickard Andersson207-Oct-02 1:54
Rickard Andersson207-Oct-02 1:54 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Paul Watson6-Oct-02 21:31
sitebuilderPaul Watson6-Oct-02 21:31 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Rickard Andersson207-Oct-02 1:59
Rickard Andersson207-Oct-02 1:59 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Jörgen Sigvardsson7-Oct-02 7:20
Jörgen Sigvardsson7-Oct-02 7:20 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Rickard Andersson207-Oct-02 9:04
Rickard Andersson207-Oct-02 9:04 
GeneralFill in label.text from Page_Load... Pin
Ray Cassick6-Oct-02 5:44
Ray Cassick6-Oct-02 5:44 
GeneralRe: Fill in label.text from Page_Load... Pin
Ray Cassick7-Oct-02 4:09
Ray Cassick7-Oct-02 4:09 
GeneralEfficiency Pin
Paul Riley6-Oct-02 4:21
Paul Riley6-Oct-02 4:21 
GeneralRe: Efficiency Pin
leppie6-Oct-02 5:39
leppie6-Oct-02 5:39 
GeneralRe: Efficiency Pin
Paul Riley6-Oct-02 5:53
Paul Riley6-Oct-02 5:53 
GeneralRe: Efficiency Pin
Paul Riley6-Oct-02 6:31
Paul Riley6-Oct-02 6:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.