Click here to Skip to main content
15,903,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondotnetnuke Pin
GaryWoodfine 2-Oct-06 11:29
professionalGaryWoodfine 2-Oct-06 11:29 
QuestionShowing an image in a column Pin
digsy_2-Oct-06 10:48
digsy_2-Oct-06 10:48 
AnswerRe: Showing an image in a column Pin
minhpc_bk2-Oct-06 15:37
minhpc_bk2-Oct-06 15:37 
GeneralRe: Showing an image in a column Pin
digsy_2-Oct-06 16:24
digsy_2-Oct-06 16:24 
GeneralRe: Showing an image in a column Pin
minhpc_bk3-Oct-06 10:59
minhpc_bk3-Oct-06 10:59 
QuestionOverride page constructor Pin
User 9148332-Oct-06 10:17
User 9148332-Oct-06 10:17 
AnswerRe: Override page constructor Pin
minhpc_bk2-Oct-06 15:42
minhpc_bk2-Oct-06 15:42 
GeneralRe: Override page constructor Pin
User 9148332-Oct-06 22:01
User 9148332-Oct-06 22:01 
I have tried that but when I add a control within OnInit or PageLoad I can not access it within event handler. All programatically added controls are lost.
It goes like this:
I have a page with a button and I add some radio buttons programatically:
<br />
Int32 i=0;<br />
for (i=0;i<5;i++)<br />
{<br />
   RadioButton b = new RadioButton();<br />
   b.ID = "radio_" + i.ToString();<br />
   Controls.Add(b);<br />
}<br />

and in the event handler for the button click:
<br />
RadioButton b = FindControl("radio_2"); <br />

FindControll returns null.
I'm a bit confused so if you have any ideas it would be great.
Thanks.

P.S. This is simplified code of what I'm trying to do but the point is the same.


--Nikola--


modified 7-Dec-20 21:01pm.

GeneralRe: Override page constructor Pin
minhpc_bk2-Oct-06 22:17
minhpc_bk2-Oct-06 22:17 
GeneralRe: Override page constructor Pin
User 9148333-Oct-06 4:20
User 9148333-Oct-06 4:20 
GeneralRe: Override page constructor Pin
minhpc_bk3-Oct-06 10:56
minhpc_bk3-Oct-06 10:56 
GeneralRe: Override page constructor Pin
User 9148335-Oct-06 1:37
User 9148335-Oct-06 1:37 
GeneralRe: Override page constructor Pin
minhpc_bk5-Oct-06 14:54
minhpc_bk5-Oct-06 14:54 
GeneralRe: Override page constructor Pin
User 9148336-Oct-06 1:50
User 9148336-Oct-06 1:50 
GeneralRe: Override page constructor Pin
minhpc_bk9-Oct-06 18:12
minhpc_bk9-Oct-06 18:12 
Questiondatagrid NumericPages mix up Pin
keroed_edmond2-Oct-06 10:00
keroed_edmond2-Oct-06 10:00 
AnswerRe: datagrid NumericPages mix up Pin
minhpc_bk2-Oct-06 15:44
minhpc_bk2-Oct-06 15:44 
QuestionRetain CSS format reading a Page Pin
VickyC#2-Oct-06 9:20
VickyC#2-Oct-06 9:20 
AnswerRe: Retain CSS format reading a Page Pin
Guffa2-Oct-06 10:11
Guffa2-Oct-06 10:11 
GeneralRe: Retain CSS format reading a Page Pin
VickyC#2-Oct-06 10:55
VickyC#2-Oct-06 10:55 
AnswerRe: Retain CSS format reading a Page Pin
Guffa2-Oct-06 21:43
Guffa2-Oct-06 21:43 
QuestionConfirm User Registration Pin
TheEagle2-Oct-06 9:10
TheEagle2-Oct-06 9:10 
AnswerRe: Confirm User Registration Pin
morteza572-Oct-06 12:05
morteza572-Oct-06 12:05 
GeneralRe: Confirm User Registration Pin
TheEagle3-Oct-06 9:51
TheEagle3-Oct-06 9:51 
QuestionAsp help Pin
Larsson2-Oct-06 6:31
Larsson2-Oct-06 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.