473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Page event sequence and Databinding question

Which is the event sequence when a gridview button (for update) is clicked
and the page is post back? I am also a bit confused when to use
..IsPostBack(). If my page data is changing maybe in every 10 or 20 seconds,
should I use .IsPostback? If not, then the gridviews databinding in the page
should be written in Page_Load or in the other events like
SelectedIndexChanged, RowCommand where the click is handled?

TIA
Iordanis
Sep 24 '08 #1
2 1422
Can you please clear you question more..?

On Sep 24, 2:54*pm, Savvoulidis Iordanis
<SavvoulidisIorda...@discussions.microsoft.comwrot e:
Which is the event sequence when a gridview button (for update) is clicked
and the page is post back? I am also a bit confused when to use
.IsPostBack(). If my page data is changing maybe in every 10 or 20 seconds,
should I use .IsPostback? If not, then the gridviews databinding in the page
should be written in Page_Load or in the other events like
SelectedIndexChanged, RowCommand where the click is handled?

TIA
Iordanis
Sep 24 '08 #2
I'm developing a sporting bet system, so players can send their betting slips
on some events (usually worldwide soccer events). The available events to bet
on, span a 3day period. But most bets are sent as the events are about to
start or maybe half an hour earlier. So, when an event has started, it should
go off the list, so noone else can select it. This means that the event list,
although dynamic, is pretty static at first and then it should appear as
dynamic as possible.

How should I deal with the data refreshing? Should I use .IsPostback in
Page_Load or not? Should I rebind ALL my gridviews only once in the Page_Load
event, or in every other gridview event like SelectedIndexChanged,
RowCommand, RowUpdating, etc ? Also, should I use RowCommand (using the
commandname="select") or the SelectedIndexChanged event? There is also a bit
of confusion here. Which of the above events fires first anyway? That's why I
need to know the page event sequence.

Also, I was thinking if it would be better to read the data from a XML file
(no READ database hits) which the AdminUser creates for the players to see.
This file would be recreated every time something changes (like if an event
has started, or a betting odd has changed). Is it a better scenario for my
case? Should I use caching of that XML data and how?

Uphhh... I know I've set so many questions that need answers...but that's
the kind of cloud inside my mind right now. I always want to follow best
practices from the beginning, that's why I like to study a lot before
starting off. Any help is appreciated.

TIA

Sep 25 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Glenn Owens | last post by:
I have an ASP.Net page on which there are serveral static controls (listboxes, radiobuttonlist and textboxes). These controls are used to create criteria from which the code-behind will dynamically...
3
by: TPS | last post by:
Instead of using Hyperlinks and URL / Response.QueryString() parameters to pass state around in my app, I am using LinkButtons with a corresponding command event and command arguments. This page...
14
by: Mike | last post by:
I have a routine that i only want to execute if a variable is set to Y. The routine is getting some information on the screen then redirecting to a new page. How can i passed a variable to the...
2
by: Mr Newbie | last post by:
Ive got the basic idea behind DataBinding Expressions, but I have a couple of questions, Ok its four actually :) Q1.) It would appear that if you use Page.DataBind that all child controls and...
8
by: TS | last post by:
Hi, i have inherited a page from another user. The page is the target frame in a frameset. for some reason the whole page runs twice (page_load, init, etc. all run twice) I can't figure out how...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
5
by: Diane Truyens | last post by:
Hi, I have a form with textboxes, a search button and a gridview. The textboxes are filled with default values so that the gridview should return all rows but not before the user has had the...
4
by: Arpan | last post by:
The following code works fine: <script runat="server"> Dim strName As String = "Arpan" Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Page.DataBind() End Sub </script> <form...
1
by: Jordan S. | last post by:
I'm just wondering if this would work. Please note that I'm not asking *how* to raise events. I'm clear on that. What I'm not clear on is the sequence in which events are raised by custom controls...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.