Click here to Skip to main content
15,880,405 members
Articles / Web Development / ASP.NET

Silverlight - Save Web Page

Rate me:
Please Sign up or sign in to vote.
2.64/5 (6 votes)
15 Apr 2008CPOL 41.4K   12   4
Saving the Silverlight based web control to the database
Image 1

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Turkey Turkey
Phd. Yildirim Kocdag is a Computer Engineer.

Programming Languages
Android, Objective-c, c#, vb.net, asp.net, javascript, TSQL.

Computer Science
DataMining, Compilers, Expert Systems, Digital Image Processing, AI and Extreme Programming.

ykocdag@yahoo.com

http://www.linkedin.com/profile/view?id=223886830

Comments and Discussions

 
GeneralSeems cool Pin
Bert delaVega15-Apr-08 8:12
Bert delaVega15-Apr-08 8:12 
GeneralRe: Seems cool Pin
Yildirim Kocdag15-Apr-08 20:41
Yildirim Kocdag15-Apr-08 20:41 
GeneralRe: Seems cool Pin
kheonline17-Feb-09 18:44
kheonline17-Feb-09 18:44 
GeneralRe: Seems cool Pin
kheonline17-Feb-09 19:53
kheonline17-Feb-09 19:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.