Re: Set Page properties in custom control
- From: "Peter Bucher [MVP]" <peter.bucher@xxxxxxxxxxxxx>
- Date: Wed, 20 Aug 2008 12:28:14 +0200
Hi NKaufman
I have a custom control that creates some labels, textboxes andUse the PreRender Event in the CustomControl.
buttons. In the PreRender() I am trying to set up something similar
to
the following;
form.defaultbutton = Button1
form.defaultfocus = TextBox1
It does not work. Any pointers would be appreciated.
protected overrides OnPreRender(object sender, EventArgs e) {
this.Page.Form.<XXXX> = <XX>;
}
--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
.
- Prev by Date: Property Window
- Next by Date: Updating an ASP.NET site
- Previous by thread: Property Window
- Next by thread: Updating an ASP.NET site
- Index(es):
Loading