Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: insert dropdownliste Pin
T M Gray16-Jun-10 6:00
T M Gray16-Jun-10 6:00 
AnswerRe: insert dropdownliste Pin
R. Giskard Reventlov15-Jun-10 22:36
R. Giskard Reventlov15-Jun-10 22:36 
AnswerRe: insert dropdownliste [modified] Pin
tek 200915-Jun-10 22:57
tek 200915-Jun-10 22:57 
Questionparameters passed in LAN connection.. Pin
jainiraj15-Jun-10 1:39
jainiraj15-Jun-10 1:39 
AnswerCross Post Pin
dan!sh 15-Jun-10 2:06
professional dan!sh 15-Jun-10 2:06 
Answercross-post Pin
Luc Pattyn15-Jun-10 2:54
sitebuilderLuc Pattyn15-Jun-10 2:54 
QuestionNeed Help ! Please Pin
eslam soliman15-Jun-10 0:00
eslam soliman15-Jun-10 0:00 
AnswerRe: Need Help ! Please Pin
Peace ON15-Jun-10 1:20
Peace ON15-Jun-10 1:20 
You need to try following code for the same..

C#
private void ListControlCollections()
{
    ArrayList controlList = new ArrayList();
    AddControls(Page.Controls,controlList);

    foreach (string str in controlList)
    {
        Response.Write(str + "<br/>");
    }
    Response.Write("Total Controls:" + controlList.Count);
}

private void AddControls(ControlCollection page,ArrayList controlList)
{
    foreach (Control c in page)
    {
        if (c.ID != null)
        {
            controlList.Add(c.ID);
        }

        if(c.HasControls())
        {
            AddControls(c.Controls, controlList);
        }
    }
}



//OUTPUT of Code
form1
Panel1
Label1
TextBox1
Label2
TextBox2
Label3
TextBox3
Label10
TextBox10
Label11
TextBox11
Label12
TextBox12
btnControls
lblResult
Total Controls:16



HTH
Jinal Desai - LIVE
Experience is mother of sage....

GeneralRe: Need Help ! Please Pin
eslam soliman15-Jun-10 1:41
eslam soliman15-Jun-10 1:41 
GeneralRe: Need Help ! Please Pin
eslam soliman15-Jun-10 21:41
eslam soliman15-Jun-10 21:41 
AnswerRe: Need Help ! Please Pin
Sandeep Mewara15-Jun-10 1:21
mveSandeep Mewara15-Jun-10 1:21 
GeneralRe: Need Help ! Please Pin
eslam soliman15-Jun-10 1:35
eslam soliman15-Jun-10 1:35 
AnswerRe: Need Help ! Please Pin
dan!sh 15-Jun-10 2:09
professional dan!sh 15-Jun-10 2:09 
QuestionHelp With ASP.NET Wrappers [modified] Pin
Sachin Bedraman14-Jun-10 23:11
Sachin Bedraman14-Jun-10 23:11 
QuestionWindows Login - Pop up Pin
Ramkithepower14-Jun-10 22:21
Ramkithepower14-Jun-10 22:21 
AnswerRe: Windows Login - Pop up Pin
Manas Bhardwaj14-Jun-10 22:51
professionalManas Bhardwaj14-Jun-10 22:51 
AnswerRe: Windows Login - Pop up Pin
Sandeep Mewara15-Jun-10 1:22
mveSandeep Mewara15-Jun-10 1:22 
Question.Net Mailbox unavailable. Relaying Denied... Pin
samsonx14-Jun-10 21:32
samsonx14-Jun-10 21:32 
AnswerRe: .Net Mailbox unavailable. Relaying Denied... Pin
Eduard Keilholz15-Jun-10 21:43
Eduard Keilholz15-Jun-10 21:43 
QuestionTracking client machines Pin
xavier999914-Jun-10 21:01
xavier999914-Jun-10 21:01 
QuestionFusion Charts Pin
KhandelwalA14-Jun-10 20:56
KhandelwalA14-Jun-10 20:56 
QuestionHow to visualize postback data? Pin
Tridip Bhattacharjee14-Jun-10 20:49
professionalTridip Bhattacharjee14-Jun-10 20:49 
AnswerRe: How to visualize postback data? Pin
Peace ON15-Jun-10 0:57
Peace ON15-Jun-10 0:57 
QuestionExporting Via Asp.net Pin
SreejithKumar M14-Jun-10 20:31
SreejithKumar M14-Jun-10 20:31 
QuestionHow to show Images while sorting master and child Gridviews(Nested Gridview)? Pin
Pawan Kiran14-Jun-10 19:41
Pawan Kiran14-Jun-10 19:41 

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.