Solved

ASP.net VB.net  Dynamically add an Update Panel then a GridView to that

Posted on 2014-02-12
2
706 Views
Last Modified: 2014-02-12
Hi

I am using the following code to dynamically add a GridView to a table cell
How do I update the code so that I first add an update panel to the table cell
and then add the GridView to that Update Panel?

Dim oGridView as New GridView
Me.Table1.Rows(0).Cells(5).Controls.Add(oGridView)
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 39854145
Dim up as new UpdatePanel
up.ContentTemplateContainer.Controls.Add(oGridView)
Me.Table1.Rows(0).Cells(5).Controls.Add(up)
0
 

Author Closing Comment

by:Murray Brown
ID: 39854206
Thanks very much
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

632 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