|
-
Mar 1st, 2010, 03:33 PM
#1
Thread Starter
PowerPoster
VB ASP.NET [2005] Display n GridViews, at runtime
All,
I am making an ASP.NET page in VB.NET 2005 with some GridViews on it. I drop these on at designtime, and databind them to some Stored Procedures. They take a parameter based on a TextBox, the value supplied at runtime. I compile them and run them and this all works great.
However, I need to add 'n' more Gridviews to the page, at the end of the page. I do not know how many there will be because there is no limit on the number.
Can I dynamically generate these GridViews, at runtime, bind them to Stored Procedures at runtime, and show as many as I need at runtime?
Thanks!
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Mar 2nd, 2010, 12:51 PM
#2
Re: VB ASP.NET [2005] Display n GridViews, at runtime
I've done this with asp.net repeaters. You put a gridview in a repeater and bind the repeater to the data that will occur 'n' times. In the repeater's ItemDataBound event you can work with the gridview belonging to the repeater instance.
Didn't you want to post this is the asp.net forum rather than asp/vbscript?
There are 10 kinds of people in this world. Those who understand binary, and those who don't.
-
Mar 2nd, 2010, 12:53 PM
#3
Thread Starter
PowerPoster
Re: VB ASP.NET [2005] Display n GridViews, at runtime
 Originally Posted by MMock
Didn't you want to post this is the asp.net forum rather than asp/vbscript?
Oops. Yes.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|