This is a migrated thread and some comments may be shown as answers.

[Solved] Binding to datalayer

1 Answer 156 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
salman
Top achievements
Rank 1
salman asked on 22 May 2008, 07:44 PM
Does anyone have a good example to implement this control using the data access layer using database instead of the session? Thanks!

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 26 May 2008, 01:11 PM
Hello,

All of the examples (with the exception of those using custom providers) use a database as storage. What might have mislead you is that we are using a SessionDataSource control throughout our examples. This is basically a SqlDataSource modified to store the changes only in the session for the purpose of the demos. This way each user gets to experiment with the controls on the site without permanently modifying the example data.

All you need to do in order to directly modify the database is to replace the sds:SessionDataSource tags with asp:SqlDataSource. Also, remove the SessionDataSource specific attributes - DisplayWarning, PrimaryKeyFields and RevertToOriginalDataSource.

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
salman
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or