Solved

check to see if datagrid exists in asp.net

Posted on 2006-11-08
2
175 Views
Last Modified: 2012-06-27
Hello,

 I want to group similar functions in a include file and I setting visible of certain controls and binding certain controls. How to check to see that if the control exists in page then bind the control so that the function is generic and can be included in all pages.

thanks,
0
Comment
Question by:tamilgirl77
2 Comments
 
LVL 4

Accepted Solution

by:
darkpriest earned 500 total points
ID: 17903839
Not really sure what your exactly trying to achieve but this is how to find a Control and use it so its accessible.

               Dim gridView1 As New GridView
            gridView1 = CType(Page.FindControl("addressBook"), GridView)


0
 

Author Comment

by:tamilgirl77
ID: 17906329
Thanks for your reply. What I want to check is:

 if dg_Records exists then
    get records from table


If I have multiple functions in a include file and I don't have the dg_Records in the page I am calling this include file it is giving error as "are you missing a class or namespace, dg_Records does not exist"

Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Multiple file Upload asp.net 2 36
Please explain: Aspect Oriented Programming 2 83
Receiving a string from a WebService Push 21 32
Help with C#, MVC, razor. 6 18
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now