CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 4/22/2004 1:02:08 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 209 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
ShadowDanser
Asp.Net User
Page.IsPostBack == false and datagrid4/22/2004 1:02:08 PM

0

Hello,

In modules I have the following code lines:

if (Page.IsPostBack == false) {
BindData();


Now I have made a new module, with a datagrid with paging.
I see a little problem when using the module with some others.

Let's say we use the events module with some events and the new module on the same page.
After using the paging option I don't see the events inside the events module anymore.
When I allways do a BindData(); for the events module I don't get this problem.

Is it "bad" to do allways a databind?


Thanks!
wunderkinder
Asp.Net User
Re: Page.IsPostBack == false and datagrid4/22/2004 1:59:38 PM

0

It's not bad to always do a databind, but you will want to be careful about how you are retrieving and storing data. If your datagrid is populated by a complex sproc that returns a massive amount of data, it would not necessarily make sense to run the sproc every single time the page loads. As an alternative, you could cache the data, and then use the cache as a datasource when databinding.

However, if you just have a simple events module that shows a handful of events, I seriously doubt you will see a noticeable performance hit by accessing the db on each page load.
Jared Livingston
MrLivingston.com - Livingston Family Website

Test/Demo site - moonmark.com
ShadowDanser
Asp.Net User
Re: Page.IsPostBack == false and datagrid4/22/2004 2:09:42 PM

0

Your message sounds strange for me.

Did you mean this: (reverse)
Complex sproc --> I seriously doubt you will see a noticeable performance

Simple events --> not necessarily make sense to run the sproc every single time the page loads

Thanks!
wunderkinder
Asp.Net User
Re: Page.IsPostBack == false and datagrid4/22/2004 2:53:14 PM

0

If you are using a complex sproc that takes a long time to run, it would make sense to cache the data and not run the sproc on each page load. However, if the sproc is simple and only takes a short amount of time to run and returns only a few records, you will probably not gain much in the way of performance by caching the data.
Jared Livingston
MrLivingston.com - Livingston Family Website

Test/Demo site - moonmark.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
The book of Visual Studio .Net: a guide for developers Authors: Robert B. Dunaway, Pages: 369, Published: 2002
ASP.NET: tips, tutorials, and code Authors: Scott Mitchell, Doug Seven, Stephen Walther, Donny Mack, Billy Anders, Adam Nathan, Dan Wahlin, Pages: 878, Published: 2002
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004
ASP.NET website programming: problem, design, solution Authors: Marco Bellinaso, Kevin Hoffman, Pages: 576, Published: 2002
Introduction to Programming with Visual Basic .NET Authors: GARY J. BRONSON, Gary J. Bronson Jones & Bartlett Publishers, DAVID ROSENTHAL, Pages: 756, Published: 2005

Web:
Odd viewstate problem with Datagrid template columns - bytes I have a shopping cart datagrid that is filled only the first time the page is accessed, like so: If Page.IsPostBack = False Then ...
Adding DataGrid Web Server Controls to a Web Forms Page You can add and configure a DataGrid Web server control in a few steps in ... IsPostBack is false) in the page's Page_Load event using code as shown below. ...
CodeSnip: Customized DataGrid Paging: ASP Alliance In this article, Surya demonstrates how to create a customized DataGrid with ... Load If Page.IsPostBack = False Then Dim dtDummy As New DataTable Dim dc(2) ...
EditCommand on Nested DataGrid - ASP.NET General Page Protected WithEvents _dgProj As System.Web.UI.WebControls.DataGrid ... 'Put user code to initialize the page here. If Page.IsPostBack = False Then ...
Visual Studio .NET datagrid next, prev, numbers I know that datagrid has one or the other. does anyone has an example that supports ... If Page.IsPostBack = False Then Call sub_databind() ...

Page.IsPostBack == false and datagrid - ng.asp-net-forum ... Page.IsPostBack == false and datagrid, > ROOT > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit, ...
Close Page in code ? - ng.asp-net-forum.portal_starter_kit IsPostBack == false and datagrid - ng.asp-net-forum ... In modules I have the following code lines: if (Page.IsPostBack == false) ...
Repeater event ItemCommand not being triggered - ng.asp-net-forum ... Page.IsPostBack) block. I've checked and double checked that. ... in the HTML ( Page.IsPostBack == false and datagrid - ng.asp-net-forum . ...
How to replace Page.IsPostBack - ng.asp-net-forum.getting_started IsPostBack == false and datagrid - ng.asp-net-forum ... Page.IsPostBack == false and datagrid, > ROOT > NEWSGROUP > Asp.Net Forum ... How to replace Page. ...
Sorting a datagrid when parameters are involved - general_asp.net ... EventArgs) Handles MyBase.Load If Not Page.IsPostBack Then ... LEFT: 317px; POSITION: absolute; TOP: 104px" runat="server" Visible="False">Label ...






please help

new release - image mapper 1.0 ibs vb

migrating from non-vs to vs version of portal...

migrating from dev to production machine

portalcfg.cs doubt

portal question x 2!

inter-module communication methods - best way?

solution: use forms authentication and windows ldap authentication and portal roles

error loading portal website

can i use mysql or access

linking userid and itemid from events

admin tab

content

how to use my own menu control in portal app

setup failed - see attached log

multiple portal

aspnet_client

cmenu control from mintlab technologies

i keep getting this error message

close page in code ?

funny things going on...

which installer download to use?

url shows path to upload folder

adding an outlook calendar to portal

asp.net forum plugin for ibuyspy portal

security features

general portal database queries

need help adding a photoalbum module into portal- parser error

can't access admin

adding new users through admin interface

   
  Privacy | Contact Us
All Times Are GMT