Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Silverlight - Save Web Page

0.00/5 (No votes)
15 Apr 2008 1  
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

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here