Hi,
Yes, I know that.
But in my page how can I detect when the button is pressed so I can I
check that value?
I think I am missing something here.
Thanks,
Miguel
Mark Fitzpatrick wrote:
> Create a public property that will acess your local private variable
>
> // say this was the intialization of the variable
> private bool done = false;
>
> //we would make a property like this.
> public bool Done
> {
> get
> { return done; }
> // and if you want to let the form set the done property as well,
> include the set accessor
> set
> { done = value; }
> }
>
>
> --
> Hope this helps,
> Mark Fitzpatrick
> Former Microsoft FrontPage MVP 199?-2006
>
>
> "shapper" <> wrote in message
> news: oups.com...
> > Hello,
> >
> > I created a custom control where I have a few textboxes and a button
> > (MyButton).
> > When the button is clicked the textboxes data are sent to a database.
> >
> > In MyButton_Click function I have a variable named Done.
> > If everything is went well I set this variable to True. Otherwise I set
> > it to false.
> >
> > I placed this custom control on my page.
> >
> > How can I get the value of Done in my page?
> >
> > Basically, I need, in my page, to take an action according to the value
> > of Done after the button in the custom control is pressed.
> >
> > Thanks,
> > Miguel
> >
|