Click here to Skip to main content
15,919,245 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: scheduling an asp.net script Pin
Sathesh Sakthivel2-Oct-06 19:00
Sathesh Sakthivel2-Oct-06 19:00 
QuestionDisable button & links on web page Pin
mohanrajh2-Oct-06 16:28
mohanrajh2-Oct-06 16:28 
AnswerRe: Disable button & links on web page Pin
Chris Buckett2-Oct-06 22:21
Chris Buckett2-Oct-06 22:21 
AnswerRe: Disable button & links on web page Pin
mohanrajh2-Oct-06 22:41
mohanrajh2-Oct-06 22:41 
QuestionAdd Google AdSense javascript code at runtime Pin
shapper2-Oct-06 13:13
shapper2-Oct-06 13:13 
AnswerRe: Add Google AdSense javascript code at runtime Pin
minhpc_bk2-Oct-06 15:33
minhpc_bk2-Oct-06 15:33 
GeneralRe: Add Google AdSense javascript code at runtime Pin
shapper2-Oct-06 16:03
shapper2-Oct-06 16:03 
GeneralRe: Add Google AdSense javascript code at runtime Pin
minhpc_bk2-Oct-06 16:17
minhpc_bk2-Oct-06 16:17 
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 

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.