Inizia in questi giorni di festivita' e dopo un breve (purtroppo) periodo di riposo, la mia preparazione all'esame "70-536 Microsoft .NET Framework - Application Development Foundation" !!!
Questa la descrizione ufficiale dell' esame:
"Exam 70-536 is designed to measure your knowledge of .NET development fundamentals and is not tied to a particular version of .NET. Since the exam is now applicable to both Microsoft .NET Framework 2.0 and Microsoft .NET Framework 3.5 certification tracks, we have changed the name of the exam. Formerly TS: Microsoft .NET Framework 2.0 – Application Development Foundation, Exam 70-536 is now called TS: Microsoft .NET Framework, Application Development Foundation. If you are a .NET 2.0 developer, you do not need to learn .NET 3.5 to pass Exam 70-536; conversely, if you are a .NET 3.5 developer, you do not need to review .NET 2.0 to pass the exam."
Questo e' il primo passo per ottenere la certificazione "MCTS: .NET Framework 2.0 Web Applications" MCTS
Il manuale su cui studio e' questo, circa ottocento pagine in inglese e pagato poco piu' di 30€.
Se voi lo avete gia' superato ogni consiglio sara' molto gradito :)
Wednesday, December 23, 2009
Esame Microsoft 70-536
by Michele 0 Comments
Etichette: Certificazioni
Saturday, September 19, 2009
Twitter Updates: 19/09/2009
Web
- Opera Mini 5 http://tinyurl.com/mtfh6m
- FileTwT : File Sharing On Twitter http://bit.ly/ZCHbC
- Google Timeline http://bit.ly/12WKdJ
- 10 code snippets to interact with Twitter http://bit.ly/3t1O53
- Low-Tech Ways To Twitter From A Cell Phone http://bit.ly/UDSZl
- Gmail just got pretty. Introducing Helvetimail http://bit.ly/8dea7
- lessthanabenjamin.com http://bit.ly/KATWm
- Why you should upgrade your WordPress blog http://bit.ly/gwK9a
- Security Threat: WordPress Under Attack http://bit.ly/LiUdA
- Fantastic Google Maps mashup maps your musical memories http://bit.ly/lpbcd
- 7 Steps To Help You Build Your Personal Brand On LinkedIn http://bit.ly/w2Y3X
Webdesign
- How to Make a Light and Sleek Web Layout in Photoshop http://bit.ly/19Obq2
- 65 New Examples Of Beautiful Single Page http://bit.ly/1dPceH
- 70 Fresh and Inspirational Blog Designs http://bit.ly/MuZgJ
- Best Collection Of Free CSS Templates http://bit.ly/hBrwv
- CSS cursor property http://bit.ly/3ewxaL
dotNet
- Multi-threading in .NET http://bit.ly/13tJKu
- Debugging Task-Based Parallel Applications in Visual Studio 2010 http://bit.ly/qFDrv
- ASP.NET GridView with Custom Paging http://bit.ly/vhRXQ
- Microsoft Dev-Labs Introduces Doloto for AJAX http://bit.ly/7chuK
- Efficient Search Page Using QueryExtender control in ASP.Net 4.0 http://bit.ly/DEXaM
- Custom Paging in GridView Using LINQ http://bit.ly/ERhp2
- How to Launch External Applications from Visual Studio 2005/2008 http://bit.ly/1tseMP
- Hosting ASP.NET sites on IIS 7.0 http://bit.ly/KSEjI
- Properties vs Fields – Why Does it Matter? http://bit.ly/4itHj8
by Michele 0 Comments
Etichette: Twitter
Friday, September 4, 2009
Twitter Updates: 04/09/2009
Design
- Weekly Web Design Inspiration http://bit.ly/OstwD
- Sporty Bike http://bit.ly/TL0hp
- Keep On Switchitallingaling! http://bit.ly/2nD155
- Reinvention Of The Wheel? http://bit.ly/1njSes
dotNet
- Auto Translate and Synchronize resources in your .NET applications http://bit.ly/4frjpH
- Creating Music Video Box Using Windows Presentation Foundation(WPF) http://bit.ly/1y9TG
Webdesign
- Weekly Web Design Inspiration http://bit.ly/OstwD
- 45 Excellent New Icon Packs For Desktop and Web http://bit.ly/2pdVsU
- Create a Web Layout with 3D Elements using Photoshop http://bit.ly/mN02H
- 50 Websites (and More) for Your Design Inspiration http://bit.ly/Ya7gC
- 25 Examples of Web 2.0 and Traditional Design Rules Coming Together http://bit.ly/pXnEx
- Get to Know Why CSS is Good for Google http://bit.ly/1VJzyM
- How to Design and Code a Flexible Website http://bit.ly/3F4RK5
- Design a creative design studio layout http://bit.ly/8rr4T
Sql
- SQL Server 2008: Ole Automation http://bit.ly/1KFpCH
- Videos Updated Show How to Scale SQL Server http://bit.ly/eNFlG
- Ireland SQL User Group September 23rd http://bit.ly/2lxYVQ
- Consume a Web Service in SQL Server Integration Services http://bit.ly/tSVxt
- Speed up your Web App by 1000% with 1 Line of SQL http://bit.ly/I4bLI
by Michele 0 Comments
Etichette: Twitter
Saturday, April 25, 2009
Recursive function in Asp.Net
An important programming technique is the Recursion.
Recursive is a procedure or subroutines that contains a statement that calls itself.
In this simple example I use a recursive function to clean all TextBox even those within a container (ascx control)
Private Function CleanAll(ByVal container As Control) As ArrayList
Dim txt As TextBox
For Each c As Control In container.Controls
If c.GetType.Name = "TextBox" Then
txt = c
If txt.Text <> "" Then
txt.Text = ""
allControlls.Add(c)
End If
Else
CleanAll(c) ' invokes recursively the method
'to add more controls in the control children
End If
Next
Return allControlls
End Function
There are two ascx controls nested one inside the other.
The same thing works with panels and other asp.net containers.
If you want, you can download this example here (visual basic) or here (c#).
For more info try here and here.
That's all !
by Michele 1 Comments
Etichette: Programming
Wednesday, April 1, 2009
Add Item to DropDownList
Hi!
In this post I'll explain how to add a custom-item in a DropDownList using ListItem object.
As written in MSDN:
First of all, we have to connect a Database Table with a DropDownList. (you can see how populate a DropDownList here)
Protected Sub GetContact()
Dim obj As cl_Person = Nothing
obj = New cl_Person(System.Configuration.ConfigurationManager.AppSettings("APPConnectionString"))
Me.ddlPerson.DataSource = obj.GetContact()
Me.ddlPerson.DataValueField = "ContactID"
Me.ddlPerson.DataTextField = "FullName"
Me.ddlPerson.DataBind()
End Sub
Then in the DataBound event of the DropDownList, write this:
Protected Sub ddlPerson_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlPerson.DataBound
Dim myItem As New ListItem
myItem.Text = "Choose One !!!"
myItem.Value = 0
myItem.Selected = True
Me.ddlPerson.Items.Add(myItem)
End Sub
As you can see, "Choose One !!!" rapresents our custom-item.
If you want, you can download this example here.
You can download and install AdventureWorksDB.msi database here.
Please remember to change in the web.config file, the two values "Data Source=pc01;" with
your sqlserver instance name. (probably "computername" with Sql2005/2008, but if you are using SqlExpress edition your instance name is "computername\SQLExpress")
That's all !
by Michele 0 Comments
Etichette: DropDownList
Tuesday, March 31, 2009
Hotfix for "Design view does not update HTML"
Hello everybody!
In a previous post, I have described an update-problem with design-view and souce-view in Visual Studio 2008.
Recently Microsoft has released some hotfix that you can download here.
Enjoy!
by Michele 0 Comments
Etichette: Visual Studio 2008
Wednesday, March 18, 2009
Custom Filter
There are many ways to filter data in a grid, here one of them...
All you need is to create a DataSet connected with a table and a little code!
(in the example I use "AdventureWorks" as database and "Person.CountryRegion" as table)
Let's start!
As usual, we have to write an object to connect a GridView with a source like a dataset/database.
Public Function GetCountryRegion(Optional ByVal CountryRegionCode As String = "%", _
Optional ByVal Name As String = "%") As ds_CountryRegion.CountryRegionDataTable
Dim cnn As SqlConnection = Nothing
Dim cmd As SqlCommand = Nothing
Dim da As SqlDataAdapter = Nothing
Dim sqlStatement As String
Try
sqlStatement = "SELECT * FROM Person.CountryRegion where CountryRegionCode like '" & CountryRegionCode & "%' and Name like '" & Name & "%'"
cnn = New SqlConnection(Me._connectionString)
cmd = New SqlCommand(sqlStatement, cnn)
da = New SqlDataAdapter(cmd)
cnn.Open()
_ds.CountryRegion.Rows.Clear()
da.Fill(_ds, "CountryRegion")
Catch ex As Exception
'todo: code for exceptions!
Finally
GetCountryRegion = _ds.CountryRegion
If Not (cnn Is Nothing) Then
cnn.Close()
cnn.Dispose()
cnn = Nothing
End If
If Not (da Is Nothing) Then
da.Dispose()
da = Nothing
End If
If Not (cmd Is Nothing) Then
cmd.Dispose()
cmd = Nothing
End If
End Try
End Function
As you can see, I use the keyword "Optional" for the parameters and I use "%" as default value.
In T-Sql language "%" stands for "all". If there are no parameters passed, the code reads "all" CountryRegionCode records and "all" Name records.
Another interesting thing is the use of the keyword "like" and the use of "%" at the end of the parameters in the sqlStatement string ("like 'Name%'" and "like 'CountryRegionCode%'").
In this example I can catch all records with the Name that starts with the parameter passed: all records with "Name%" starts with "I%" (Italy, Ireland, Iceland...) (ok I know, it's not easy for me to explain in eng... I'm sorry!)
sqlStatement = "SELECT * FROM Person.CountryRegion where CountryRegionCode like '" & CountryRegionCode & "%' and Name like '" & Name & "%'"
When our object is ready and connected with a GridView through the "DataSource" property, we have to use the "Databind" property to associate the data with the GridView.
In the Page_Load event, there are no parameters passed to the DataTable object (in fact the two TextBox values are empty ---> "")
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
GetGwCountryRegion()
End If
End Sub
But each time that we write something in the TextBox Name or CountryRegionCode and click on "Filter", the DataTable recives parameters and use them for filtering.
That's all!
You can download this my little example here.
You can download and install AdventureWorksDB.msi database here.
Please remember to change in the web.config file, the two values "Data Source=pc01;" with
your sqlserver instance name. (probably "computername" with Sql2005/2008, but if you are using SqlExpress edition your instance name is "computername\SQLExpress")
Enjoy!
by Michele 0 Comments
Friday, March 13, 2009
Thursday, February 19, 2009
GridLines style in Gridview
A fast way to change the style of the gridlines in a gridview:
Protected Sub gwMyGw_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles gwMyGw.PreRender
'PreRender event!
Dim tblStyle As New TableItemStyle()
tblStyle.BorderColor = Drawing.Color.White
tblStyle.BorderWidth = "2"
Dim row As TableRow
For Each row In Me.gwMyGw.Rows
Dim cel As TableCell
For Each cel In row.Cells
cel.ApplyStyle(tblStyle)
Next
Next
End Sub
Enjoy !
by Michele 2 Comments
Etichette: GridView