472,121 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

Ajax: UpdatePanel to show/hide Gridview


Need some directions on Ajax, UpdatePanel and Gridview to achive the

I like to show a Gridview with Data ONLY if the user is interested in
Details, but without a full page reload!
If the page loads, only a summary (eg. COUNT of recs) should be


static text
--------------- updatePanel Area
[show records (12) - click for Details]
-------------- end of updatePanel Area

static text

-----if user clicks on "show records" the page should partially
update to display:
static text
--------------- updatePanel Area
[table header - click to Hide Details]
record 1
record 2
record 3
-------------- end of updatePanel Area

static text
A) if the page loads initially, I do not want to hit the database,
except for a fast ( count(*) ) - stored proc. to show #of records
ONLY if the user is interested, I want to execute the full SQL to show

B) if no details are shown, I do not want the Gridview-object to be
instantiated for obvious performance reasons, but show a simple Label
or Hyperlink for (show details)

Anyone have such a component, or can point a way to go?


Jun 3 '07 #1
0 3265

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Bruno Alexandre | last post: by
2 posts views Thread by mike | last post: by
reply views Thread by Phillip Ian | last post: by
4 posts views Thread by bbawa1 | last post: by
6 posts views Thread by HockeyFan | last post: by
1 post views Thread by =?iso-8859-1?B?R2VhcvNpZA==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.