Subject: Data Source
Posted By: teddyk Post Date: 7/23/2008 8:48:32 AM
hi i need a ima student and im working on my project, my question is how can retrieve e.g. student number and his/her details from table without triggering the save button on my webform(by the way im using a databound and AccessDatasource . Webform it triggers the save button automatically which calls an insertProcedure when im selecting from a databound. which can i use that will not trigger the insert method. Looking to your positive respond.

supertedz
Reply By: robzyc Reply Date: 7/23/2008 8:55:10 AM
Not too sure if I understand you correctly here, I am assuming English is not your first language?

If I understand correctly, you want to populate fields on a Web Form with data from a database without clicking a button to do so?

I think what you need to remember here is that the Web is stateless. There is no "Form" in the same way that it is loaded into memory in a Windows appliation, its simply "faked" by using the ViewState & StateBag to store controls values. In which case a PostBack is always required.

I think what you are trying to achieve can be done via [possibly extensive] use of AJAX, but I would recommend waiting for the more experienced web guys to respond.
In the mean time, can you confirm if my assumption is correct?

Rob
http://cantgrokwontgrok.blogspot.com

Go to topic 72875

Return to index page 1