Showing posts with label visual Studio 2010. Show all posts
Showing posts with label visual Studio 2010. Show all posts

Entity Framework with Linq CRUD Operation Example

Friday, June 25, 2010

Download Tutorial


Download Source Code

Usama Wahab KHan

ADO,Net Data Service (WCF Data Services)

Tuesday, May 4, 2010

Microsoft .net framework 4 have usefull enhancements in there Data-services model After the WCf For quite long Microsoft .net Providing such useful services fro client and server side features One of Most Beautful enhancements .net is WCF Data Services (former "ADO.NET Data Services") whichImproved data binding ,Server side Paging ,Count and Enhanced Blob support.Wcf Data Service are allow to Create Open Data Protocol (OData) to expose and consume data over the Web or intranet by using the semantics of representational state transfer (REST).OData exposes data as resources that are addressed by URIs(uniform resource identifier).Data can accessed by Get,POst and other http varbs, Wcf DataServices

use Entity Data Model to Provide entity-relationship conventions. for more














Download SourceCode

Window Mobile 7 and Silveright Together

Tuesday, March 16, 2010




Microsoft Windows Phone 7 Now Support Silverlight Runtime and Provide Development tools . Windows Phone 7 Provide end –to – end application development environment Visual 2010,Expression Blend with emulator.Rich internet application development is enable no window mobile With NET Compact Framework. You can use Multi touch advantage with Accelerometer for Motion sensing you use mobile camera and mic in silverlight. In Widows Mobile 7 we can use map apis with Location awareness . Control s can be updated there theme from windows mobile 7 UI themes.Show Large Size of image with deepzoom and mulit touch but in.net compact framework Asynchronous delegate calls, specifically the BeginInvoke and EndInvoke methods, are not supported.
Learn More

Plinq Vs Linq .Net Framework 4.0 Parallel Programming

Thursday, February 25, 2010




PLINQ automatically parallelizes local LINQ queries. PLINQ has the advantage ofbeing easy to use in that it offloads the burden of both work partitioning and resultcollation to the Framework.







By Usama Wahab Khan & Ahmed Mohiuddin & Saoud Chaudhary

Linq to SharePoint 2010 Provider by Bart De Smet

Tuesday, November 17, 2009




The LINQ to SharePoint project provides a custom query provider for LINQ that allows to query SharePoint lists using familiar LINQ syntax. LINQ stands for Language Integrated Query and is one of the core features of Microsoft's .NET Framework 3.5 release. its will support Custom Query Provieder that Translates Linq to CAML,the "Collaborative Application Markup Language" by SharePoint for querying by using Linq u didnt need other software to qury in caml like u2u as we know c#3.0 and vb.net 9.0 were support linq Entity Createion tool "SpMetal" to export sharepoint list definitions to entity Classes usedfor Querying and Visual Studio 2008 integration for entity Creation (a.ka SPML) make it more essay and simple you can connect sp site either using SharePoint Object Model or via the Share Point Web services Planned to Support for updating through Entity type This wonderfull Solution Invented by former Visual C# MVP, Bart De Smet now works at Microsoft Corporation on the WPF dev team in an SDE role. so enjoy enity sharepoint to linq






Sample
Updated for the 0.2.2.0 alpha release
var ctx = new SharePointDataContext(new Uri("http://wss.mycompany.local"));
ctx.Log = Console.Out;
var users = ctx.GetList(ctx);

var res = from u in users
orderby u.Birthdate descending
where u.FirstName.StartsWith("B") && u.Age >= 24 && u.FavoriteFood == FavoriteFood.Pizza
select new { u.FullName, u.Age, Interest = u.AccountBalance * 0.07 };

foreach (var u in res)
Console.WriteLine(u);



SEO Support in Asp.net 4.0 Matedata and Page Ruting

Friday, November 13, 2009




SEO( Search engine optimization ) is One of the Important Part for internet base Website SEO or E-Marketing is Very Important for get you site top take in Search engg:
or get more Visitor, Normally Search engines bot scan pages like mysite.com\asp you site and save you meta specially Keywords . but mostly the did get dynamic pages we were crated by the help of qureystring like mysite.com\MobileProduct.aspx?Product="Mobile" . Before asp.net 4.0 where were generate Metadata like Dynamic Keywords,Description,Title , for dynamic website like shopping cart there were hundreds
Product in database but u Search Engg only listed those pages those were query Now in asp.net 4.0 we had solution all of these problems we can resistor Our dynamic Pages with the help of asp.net 4.0 feature called Page Routing it has been introduce in Asp.net MVC now you can use this feature in asp.net-4.0 here i try to create one demo application where i had Products, Category's i will care Product page and route them and each page have dynamically generate keyword,title metadata

here u can see auto generated metadata and page routing it Product page dynamically generate from database
1. vs 2010 >New Website and named mycartapplicaiton
2. Right click on App_data folder add northwinds database from sample crate linq to sql add table and view

3. Right click on solution explorer and add two asp.net webform Product.aspx,Categories.aspx.
3 add gridview and set template like this on default.aspx

set sqldatasorce with wizard connectionstring >select columns [CategoryName], [Description], [CategoryID], [Picture] FROM table[Categories]

its will look like this

4.add gridview on categories.aspx


5. add sqldatasorce wizard for girdview ConnectionString>Select view Alphabetical list of products and columns ProductName, QuantityPerUnit, UnitPrice, UnitsInStock, UnitsOnOrder, ReorderLevel, Discontinued click on where button you will route option like this

6. product page repeat again same exercise code like this

7 add Global.asax handler add this coe in protected void Application_Start(object sender, EventArgs e)

9 add this code in Product.aspx on pageload event or dynamic keyword and meatadata


10 add this code in default.aspx on pageload event or dynamic keyword and meatadata



Download SourceCode
and enjoy asp.net 4.0 or any other help contant me
By Usama wahab khan

Fix Bug in Vs 2010 for javascript intellisense

Monday, October 26, 2009

In Vs 2010 had Perblem in JavaScript for JScript intellisense or Html If by any chance you are not seeing in your JavaScript or HTML after installing Visual Studio 2010 Beta 2 you might be running into a known bug that we can show you how to fix. This Problem or bug is related to User Settings Which did remove in beta 1 is uninstalled . Single Setting udder HKCU\Software\Microsoft\VisualStudio\10.0\HTML Editor\TargetFriendlyName . in beta 2 this setting dose not match the Schema`s we konw about . in result JScript intellisense will fail and your were press ctrl + space and nothing come out lol its was quit embaressing
The minimum fix is to manually repair the TargetFriendlyName setting in the registry (change it to be just "XHTML 1.0 Transitional”) but due to the fact that more settings could be affected the recommended fix is to reset all settings after Beta 2 is installed.
To reset all settings drop down the Tools menu and select Import and Export Settings. This will bring up the Import and Export Settings Wizard as seen below. Choose the last option “Reset all settings” and click Next when ready.



From there choose whether you want to saving your settings or not and click Next again.




Finally, choose the collection of settings that best fits your development environment and click Finish when done.

Usama wahab khan

Osmani Engg(team lead)

Mike Snow

SDET Lead (Visual Studio Web Tools)