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

how can i saved changed in database when docked i chaned?

1 Answer 34 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Farshad heidary
Top achievements
Rank 1
Farshad heidary asked on 22 Nov 2009, 08:52 AM
hi guys

how can i save change in database?
in sample code :
      List<DockState> _currentDockStates = (List<DockState>)Session["CurrentDockStatesMyPortal"];

but i wanna save change in data base .when i used this code :
                List<DockState> _currentDockStates = (List<DockState>)ds.Tables[0].Rows[0]["CurrentDockStatesMyPortal"].ToString();

raised this error:
Compiler Error Message: CS0030: Cannot convert type 'string' to 'System.Collections.Generic.List<Telerik.Web.UI.DockState>'


* CurrentDockStatesMyPortal is a field in data base  table.

how can i do that?how can i convert it?

tnx guys



1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 23 Nov 2009, 01:45 PM
Hi Farshad,

Here is a sample project that dynamically creates RadDocks and saves their state in a DataBase. I think it will help you solve the problem.

Greetings,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Dock
Asked by
Farshad heidary
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or