Silver Light Training at Softronic

Saturday, June 12, 2010



Training At Softronic (Software House) . Arranged By Microsoft Pakistan for Give Idea of Next Generation Application. Trained : Usama Wahab Khan on 8-jun-2010


Agenda
•What is .NET Framework 3.5 , 4.0
•Visual Studio 2008 & 2010 Silverliht Tools
•Current Software Development and Design Model
•Introduction to Silverlight
•XAML
•WPF
•Silverlight Architecture
•Silverlight Development Model

Send Email in Silverlight

Monday, June 7, 2010



add asp.net Generic Handler in Web.Project
Add Static Class and Crate Send Email Function
Add This Code in Asp.net Generic handler
Add This Code At SilverLight Project(MainPage.xaml.cs) on send button click
Add this SMPT Configuration in Web.config File
Download SourceCode
By Usama Wahab Khan
Learn Free help Others

Silverlight Simple Deployment and Out of browser mode

Friday, June 4, 2010

Silverlight 3.0, 4 Provide Support Application Out of browser Mode it will behave just like desktop application it install on you desktop and you programs as well all you to remove
you can create border less as well just like window media player .










you install you application Programticlly as well

   1: private void Application_Startup(object sender, StartupEventArgs e)
   2: {
   3:     if ((App.Current.InstallState == InstallState.Installed) && (!App.Current.IsRunningOutOfBrowser))
   4:     {
   5:         this.RootVisual = new Installed();
   6:     }
   7:     else if (!App.Current.IsRunningOutOfBrowser)
   8:     {
   9:         this.RootVisual = new Installer();
  10:     }
  11:     else
  12:     {
  13:         this.RootVisual = new MainPage();
  14:     }
  15: }

For update you OOB mode applicaiton 
Installer Setting

Silver Light aquarium (Water effect)

Tuesday, June 1, 2010




Click on fishes

Download SourceCode
By Usama Wahab Khan

WCF DataService Calling Stored Procedure ,CRUD in Silverlight

Friday, May 28, 2010




WCF DataSerivce and EntityFramework Provideing wornderful Rest Web Service


so i am try to domeistrate Copy Record Update Delete database Functions In Silverlight Application or Call View,Stored Procedure and call dumay entity for complex type Before using this app plase check connectionsstring and database


























































































































































































































































































































































































































by
Usama Wahab Khan

simple example ado.net

Monday, May 24, 2010

ADO.Net

---------------------SqlQuerys------------------------------------------
Select * from TableName or ViewName


Insert Into TableName
(colname,colname)
values
('calvalue','colvalue')


UPdate TableName
set ColumnName='Value', ColumnName='Value'


---------------------------------------ConnectionString---------
Data Source=myServerAddress;Initial Catalog=myDataBase;User
Id=myUsername;Password=myPassword;

SqlConnection cn = new SqlConnection("Data
Source=-SERVER\\express;Initial Catalog=GIS;Integrated Security=True");;


----------------------------------Disconnected
Ado.net-------------------------------------


xxxConnection cn = new xxxConnection();
xxxDataAdapter da = new xxxDataAdapter("Select * from",cn);
DataSet ds = new DataSet();
da.Fill(ds);
---------------- Data will be loaded in Dataset(ds) NOw you can change data--
---------------------After Change Data in Ds to save data In database -----
ds.AcceptChanges();
da.Update(ds);

----------------------------------connected
Ado.net-------------------------------------



xxxConnection cn = new xxxConnection();

xxxCommand cmd = new xxxCommand("SqlQuery",cn);

try
{
//Select Command
SqlCommand cmd = new SqlCommand("Select * From app_users", cn);
//Check Connection State and Open it
if (cn.State != System.Data.ConnectionState.Open) { cn.Open(); }
//Executereader to fatch data;
SqlDataReader reader = cmd.ExecuteReader();
//Read Data Till Last Record from While
while (reader.Read())
{
Console.WriteLine(reader[1].ToString());
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
//last close connectionString
cn.Close();

}
Console.ReadLine();

Silverlight Load Large Data

Wednesday, May 19, 2010


Increase web service timeout Received Large Data from wcf
and add this in you silverlight application (ServiceReferences.ClientConfig)