473,386 Members | 1,712 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,386 software developers and data experts.

when is the databind event of an asp:objectdatasource supposed to be fired?

Hi,

well my question is the title of this topic : when is the databind
event of an asp:objectdatasource supposed to be fired? It seems to be
random after a few tests...sometimes it is fired before page_prerender,
sometimes after...is it normal?

Jan 25 '06 #1
2 1064
sam
Whenever DataBind() is called on it. Is this your object or are you
using a .NET object? Need more info here.

Jan 26 '06 #2
well, in the .aspx file, I have something like this :

<asp:ObjectDataSource TypeName="MyDataLayer" SelectMethod="GetRecords"
UpdateMethod="UpdateRecord"
DeleteMethod="DeleteRecord" InsertMethod="InsertRecord"
runat="server"/>

and that's it. I mean, I don't have to do anymore a query let's say in
the page load like this :
// create a datasource
grid.datasource = source
grid.databind()

in that case, I knew when the databind was fired, but with an object in
the .aspx file, it's automatic...

Jan 26 '06 #3

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

Similar topics

4
by: Anatoly | last post by:
Put any control on web page. create Init event for ths control. Write Response.Write("here") inside this event. Compile\build\run. I never saw "here" string appear on web page. Why???
1
by: Bruno Alexandre | last post by:
Hi Guys, I have a problem that I can't figure it out how can I resolve it... I have a DataTable serving as ObjectDataSource and I can't get the Update, Delete and Insert work code inside...
2
by: =?Utf-8?B?U0FM?= | last post by:
Does anyone know how to re-use the asp:ObjectDataSource control? What I want to do is add ONE asp:ObjectDataSource control to my Web form, then BIND it to MULTIPLE DropDownList boxes in the Code...
0
by: =?Utf-8?B?U0FM?= | last post by:
Does anyone know how to re-use the asp:ObjectDataSource control? What I want to do is add ONE asp:ObjectDataSource control to my Web form, then BIND it to MULTIPLE DropDownList boxes in the Code...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.