By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,732 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

Show Gridview ONLY on Postback

P: n/a
What's the best way to only show a gridview on a postback? The reason
is that I have a simple search page with a couple of fields, and I
want those fields to be chosen before displaying every row of data.
The Gridview is displayed on the same page as the search fields.

I realize I can wrap the Gridview in a

<%if isPostback() then%>
....

<%end if%>

But as I transition from asp to asp.net, seems like putting code
inline is a thing of the past.

What's the best practice for this? Anyone have a good website that
shows some asp.net best practices>

Feb 21 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello Larry,

Could you demonstrate the code which u got after converting?

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

LBWhat's the best way to only show a gridview on a postback? The
LBreason is that I have a simple search page with a couple of fields,
LBand I want those fields to be chosen before displaying every row of
LBdata. The Gridview is displayed on the same page as the search
LBfields.
LB>
LBI realize I can wrap the Gridview in a
LB>
LB<%if isPostback() then%>
LB...
LB<%end if%>
LB>
LBBut as I transition from asp to asp.net, seems like putting code
LBinline is a thing of the past.
LB>
LBWhat's the best practice for this? Anyone have a good website that
LBshows some asp.net best practices>
LB>
Feb 21 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.