65.9K
CodeProject is changing. Read more.
Home

Silverlight - Save Web Page

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.64/5 (6 votes)

Apr 15, 2008

CPOL
viewsIcon

41910

downloadIcon

744

Saving the Silverlight based web control to the database

About the Project

The project is about a simple Silverlight based web form and saving it to the database. The form elements are name and surname textboxes and save button. After the textboxes are filled, the save button of Silverlight control should be inserting the record to database. The save button will call a JavaScript function which will save the form information to the database.

Code

XAML code of the control is not too complicated.

xaml.jpg - Click to enlarge image

One pivotal point in the project is calling the JavaScript function from Silverlight click event.

PageXAMLVB.jpg

Save function is HTTPRequest based Ajax method.

SaveFunction.jpg

Don't Forget

Please do not forget to change the connection string of Project.

silverLight3.jpg - Click to enlarge image

History

  • 15th April, 2008: Initial post