473,513 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table, PostBack and Click Event!

Hi folks,
Consider a page that contains an asp "Table". This table is populated
by some data taken from a Data Access Logic Component (DALC). The
table has got two cells, one that displays a Row#, and the other one
that displays the Name. The Name column actually contains a
LinkButton...

1. Am I supposed to populate the table on the Load event *even* if the
Page.IsPostBack is true?

2. When a link button is clicked, I need to insert additional rows
below the "clicked" row. AFAIK, I've to render the entire page from
scratch and insert the necessary rows below the "clicked" row. Is this
actually the way to go in ASP.NET?

3. If I've to render the entire page, how am I supposed to

a) Force the browser to jump to the "clicked" row position.

b) Is there anyway to stop querying the DALC on PostBacks? You know,
the rows have been already taken once, when the IsPostPack was false.
I actually need to load the associated rows with the "clicked" one,
however, it seems that I've to load the table somehow. (?)

Thank you for your time,
Jack
Jun 27 '08 #1
0 830

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

Similar topics

8
1809
by: John Smith Jr. | last post by:
I am looking for some way to persist a table web control so when page_load event comes up, i can display the table as it was. I tried using ViewState with the rows collection but that didn't work...
1
11537
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
2
1648
by: Donal McWeeney | last post by:
Hi, Just want to get confirmation on the following: I have a custom server control that I implements a postback - I dynamically in my custom control's OnLoad event register the event handler...
11
13856
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to...
4
1962
by: Bishop | last post by:
I can't get my button event to fire inside a table. the button outside of the table works. Both make a postback. Any help appreciated. My code below. (Add button to page)
4
4208
by: AIM48 | last post by:
Hi. We have a framework that we work with for our project. So far we have had very good success – basically the frame work wraps many day to day tasks so that they are all included in the...
1
1166
by: seven | last post by:
I'm playing with page inheritence but I am currently stumped by postback, on a page derived from a base class. In my base page/class I have defined an HTMLForm object. It is instantiated and...
0
1181
by: Davey P | last post by:
I have a asp table which I am populating dynamically server side with various other controls such as text boxes, drop down lists and buttons. The controls in this table are filled with data stored...
11
14789
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
15
3594
by: mc | last post by:
I'm writing an app for managing Task Lists, I'm trying to add some controls to a form that I can use to link tasks, my original intention was to: - Add two list boxes, one listing "all Tasks"...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.