CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: Date Entered: 10/23/2003 3:42:26 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 45 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"jmiller4" <>
NewsGroup User
Way to render a control in code-behind before the page is loaded?10/23/2003 3:42:26 PM

0

I am programatically creating (2) controls in code-behind ("btn" and "pnl"). btn is a custom control that hides another control (clientside). When using these as static controls, it works great, however, here is the code for the code-behind.

code begin:

Button btn = new Button();
Panel pnl = new Panel();
btn.ControlToToggle = pnl;

end code

Everything is great except the ControlToToggle when a control is created programatically.

Because (pnl) hasn't been rendered yet, btn.ControlToToggle doesn't see a control on the page and give "Object not set to an instance..."

I have had the same problem in the past working with other "built in" controls.

My question is: Is there a way to render a programatically created control to the page before it is posted back to the client?

Thanks


"joteke" <>
NewsGroup User
Re: Way to render a control in code-behind before the page is loaded?10/24/2003 3:29:24 PM

0

You would probably need to add controls to Controls collection before the logic works (does it serach for Page.Controls in ControlToToggle?)
Thanks,

Teemu Keiski
Finland, EU
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:













treeview hover text

problem with microsoft.web.ui.webcontrols.dll

how to get the source code?

tabstrip control

problem installing ie web controls

removing the +/- sign of the parent node in treeview

treeview unable to read content ( weird problem)

help treeview ie web controls

toolbar - how to navigate to other pages?[:s]

how to let the child node as a checkbox.

problem installing ie webcontrols

events no longer firing after adding multipage/tabstrip

how to hover on a tree view control

run build.bat

style problems with treeview

iewebcontrols and vwd

treeview control "refresh" problem

installing ie web controls (tabstrip) without the build bs

treeview control, windows 2000, and ie6 sp1

change image of all childs and sub childs n so on of a particular node

version 1.1 of ie webcontrols?

dear sir ,my question :why my treeview example cannot expand like a tree structure?

cassini and microsoft tree view

adding treenodes of treeview dynamically....

need help with dynamic loading of treeview

show treeview parent(root) node

create a treeview

tree view control

windows authentication and treeview - possible solution

treeview font

authentication and tree view control

dll file is missing

some trouble wtih ie web controls

binding xml data to the treeview control

changing checkbox style

treenode with multiple buttons for each item

find a node with a specific value for nodedata

webcontrols !!

context menu

ie webcontrols asp.net 1.1

tree view problem on client side

ie does not render tabstrip or multipage when viewed with https

how to see a checkboxlist inside a page view

treeview control

changing treeviewnode imageurl dynamically...

tabstrip, multipage, and form elements

installation issue

asp.net webcontrols -> toolbar plug in -> how to address textboxes / buttons

tree nodes need to link to another page

treeview webcontrol

   
  Privacy | Contact Us
All Times Are GMT