Click here to Skip to main content
Licence CPOL
First Posted 15 Apr 2008
Views 21,707
Downloads 462
Bookmarked 12 times

Silverlight - Save Web Page

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

About the Author

Yildirim Kocdag

Web Developer

Turkey Turkey

Member

Yildirim Kocdag is a MSc.BSc.Computer Engineer from Istanbul. He is working as a .NET consultant. Currently using c#, vb.net, asp.net, javascript, SQL and Oracle. His Favourite areas in Computer Science are Compilers, Expert Systems, Digital Image Processing, AI and Extreme Programming.
ykocdag@yahoo.com


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralSeems cool PinmemberBert delaVega8:12 15 Apr '08  
GeneralRe: Seems cool PinmemberYildirim Kocdag20:41 15 Apr '08  
Thanks for your nice comment. I have added some more content on today.
GeneralRe: Seems cool Pinmemberkheonline18:44 17 Feb '09  
GeneralRe: Seems cool Pinmemberkheonline19:53 17 Feb '09  

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

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120529.1 | Last Updated 15 Apr 2008
Article Copyright 2008 by Yildirim Kocdag
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid