Click here to Skip to main content
15,895,667 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow do I use delegates to pass information around between web controls on a page and a user control (ascx file) Pin
Tina P4-Oct-08 17:30
Tina P4-Oct-08 17:30 
AnswerRe: How do I use delegates to pass information around between web controls on a page and a user control (ascx file) Pin
Jaffer Mumtaz4-Oct-08 21:20
Jaffer Mumtaz4-Oct-08 21:20 
QuestionUpdate problem? Pin
omegazafer4-Oct-08 11:42
omegazafer4-Oct-08 11:42 
AnswerRe: Update problem? Pin
Jaffer Mumtaz4-Oct-08 20:55
Jaffer Mumtaz4-Oct-08 20:55 
QuestionInteraction between the page level controls and User Controls in VS 2008 Pin
Tina P4-Oct-08 10:14
Tina P4-Oct-08 10:14 
AnswerRe: Interaction between the page level controls and User Controls in VS 2008 Pin
Andreas X4-Oct-08 13:29
professionalAndreas X4-Oct-08 13:29 
GeneralRe: Interaction between the page level controls and User Controls in VS 2008 Pin
Tina P4-Oct-08 17:22
Tina P4-Oct-08 17:22 
GeneralRe: Interaction between the page level controls and User Controls in VS 2008 Pin
Jaffer Mumtaz4-Oct-08 21:25
Jaffer Mumtaz4-Oct-08 21:25 
Hi,

Use the following control to get the control rather than FindContol

public static Control GetControlByID(string id, Control ctl)
    {
        Control retCotl;
        for (int i = 0; i < ctl.Controls.Count; i++)
        {
            retCotl = ctl.Controls[i].FindControl(id);
            if (retCotl != null)
            {
                return retCotl;
            }
            else
            {
                retCotl = GetControlByID(id, ctl.Controls[i]);
                if (retCotl != null)
                {
                    return retCotl;
                }
            }
        }
        return null;
    }


Some how i feel Control.FindControl is buggy and doesnot always get the control. Use this one to avoid the problem
AnswerRe: Interaction between the page level controls and User Controls in VS 2008 Pin
Jaffer Mumtaz4-Oct-08 21:05
Jaffer Mumtaz4-Oct-08 21:05 
GeneralRe: Interaction between the page level controls and User Controls in VS 2008 Pin
Tina P5-Oct-08 18:47
Tina P5-Oct-08 18:47 
Answerwhich is better Pin
abiniyam4-Oct-08 7:19
abiniyam4-Oct-08 7:19 
GeneralRe: which is better Pin
Perspx4-Oct-08 7:43
Perspx4-Oct-08 7:43 
GeneralRe: which is better Pin
Nouman Bhatti4-Oct-08 9:04
Nouman Bhatti4-Oct-08 9:04 
QuestionHow could I rebuild the whole project even there are some missing files? Pin
JUNEYT4-Oct-08 5:25
JUNEYT4-Oct-08 5:25 
AnswerRe: How could I rebuild the whole project even there are some missing files? Pin
Sandeep Akhare5-Oct-08 20:50
Sandeep Akhare5-Oct-08 20:50 
GeneralRe: How could I rebuild the whole project even there are some missing files? Pin
JUNEYT5-Oct-08 23:29
JUNEYT5-Oct-08 23:29 
GeneralRe: How could I rebuild the whole project even there are some missing files? Pin
Sandeep Akhare6-Oct-08 0:58
Sandeep Akhare6-Oct-08 0:58 
GeneralRe: How could I rebuild the whole project even there are some missing files? Pin
JUNEYT6-Oct-08 4:06
JUNEYT6-Oct-08 4:06 
Questionjavasript work good in firefox not in ie Pin
UD(IA)4-Oct-08 4:02
UD(IA)4-Oct-08 4:02 
AnswerRe: javasript work good in firefox not in ie Pin
Perspx4-Oct-08 4:32
Perspx4-Oct-08 4:32 
GeneralRe: javasript work good in firefox not in ie Pin
UD(IA)4-Oct-08 4:50
UD(IA)4-Oct-08 4:50 
GeneralRe: javasript work good in firefox not in ie Pin
Perspx4-Oct-08 5:00
Perspx4-Oct-08 5:00 
AnswerCP IGNORE: Cross poster; (3 forums) habitual;y reasks questions Pin
leckey4-Oct-08 6:01
leckey4-Oct-08 6:01 
Questionfck editor server404 problem Pin
UD(IA)3-Oct-08 22:01
UD(IA)3-Oct-08 22:01 
AnswerRe: fck editor server404 problem Pin
Dilip H. Patel3-Oct-08 22:10
Dilip H. Patel3-Oct-08 22:10 

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.