Author: smurfsdabomb | Posted on: 4/1/2009 11:02:24 AM | Views : 1166

 I can't use System.Web functions under the page.xaml.vb file in a silverlight app so how do I retreive data from my database and pass it into the vb file? I've got this right but without being able to import System.Web I'm not sure how to use the database controls, I can't import things like SQL control for example. I could do this in a regular class file either but then I'm not sure how to pass that into the Page.xaml.vb file. Any ideas?

 
<ScriptableType()> _
 Partial Public Class Page
    Inherits UserControl

    Public Sub New()
        ' Required to initialize variables
        InitializeComponent()
    End Sub
    Private Sub Page_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded

  &n ...

Go to the complete details ...