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

DropDownList In GridView (CRUD) Operation and Hide Row in Girdview

Wednesday, November 4, 2009


Update , Copy ,Record, Delete (CRUD) Operation Gridview in asp.net Programmability is little bit difficult but its just a few techniques game and nothing else that
like how to access edit values,add control in gridview and with data hide columns in girdview on runtime but
but column value should acesable and manymore. now in this totrial i will tell how to preform
Update , Copy ,Record, Delete (CRUD) Operation Gridview just few steps and you will do it by your selft

1 drag gridview on your form and autgeneratecolumn properties set to false

2 add 4Column type column 1,2 : boundedfield set there header and bindvalue col1 = Productid and cal2 = Productname and add 3rd column TemplateField type , 4th column command type checked update checkbox .

3 edit columns 1,2 and command columns convert on TemplateField

4 . click on gridview flag and edit template there you will see 4 columns in column 0 you have add dropdownlist .
5 select templatefooter in edittemplate add textbox in productname , dropdownlist in colum0 and label control in column productID endedittempalte
6 add database in aap_data folder form sample code
7 right click on girdview goto properties and fire three event 1 rowCreated, Rowupdateing,rowediting and past code give in sample code ;

8 add some css tag in header to hide productid



thank
Usama Wahab Khan
any help Contant me
usamawahabkhan@gmail.com

Office Ribbon Control (wpf)

Saturday, October 31, 2009


Now Create Office like layout application give`s new looks to your wpf applications . Now you can Enjoy Microsoft office Ribbon is Command bar Which is collection of tabs and the Organizes a Program`s Features at top of a Window.


A new WPF Ribbon Control will be available for download shortly after the release of WPF 4. It features skins for Windows 7 and Office, as well as all the standard Ribbon features that end-users are familiar with, including tabs and groups, dynamic resizing, quick access toolbar, application menu, contextual tabs, key tips, and more.

The WPF Ribbon will be fully extensible to meet changing guidelines for future releases. A CTP with a limited feature set is available today here




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)

Optional Parameter in Csharp 4.0

Monday, October 19, 2009


Can i Use Optional Parameter in Csharp ? in 3.5 it was so difficult or impossible but Now Csharp i Mature language so Microsoft has introduced a new feature in C# 4.0 Called Optional Parameter . In this if we will not specify the value of parameter then function will automatically take default value rather then giving the compile time error. or

public void SendEMail(string toAddress, string bodyText, bool ccAdmin = true, bool isBodyHtml = false)
{
// Full implementation here
}

Least specified “overload” consuming code written will look like this:

SendEMail("jhon@foo.com", "Hello World");
The IL that the C# compiler will generate will actually be the equivalent of this:

SendEMail("jhon@foo.com", "Hello World", true, false);
The best part in this is that, unlike traditional method overloading, you have the ability to omit only the 3rd parameter in conjunction with the new Named Parameters language feature and write your code like this:

SendEMail("jhon@foo.com", "Hello World", isBodyHtml: true);
This will allow consuming code to only pass 3 arguments for succinctness but still invoke the appropriate overload since the IL generated in that instance will be equivalent to this:

SendEMail("jhon@foo.com", "Hello World", true, true);

Asp.net 4 in Viual Studio 2010

Wednesday, October 14, 2009


Asp.net 4 Microsoft Mostly focus on Client Side Programming Databindind,Template randing ,and in Vs 2010 Microsoft enhance Css designer Power Full Support of AJAX.NET , add new Controls in asp.net like Chart Controls now you didn't need use single Third party Control Everything under on umbrella URL Routing , C# diynamic datatype ,with help of DLC CHART control . The Great sussce of asp.net 2.0,3.5 now asp.net 4.0 is much more mature product any one else


The new functionality in ASP.NET AJAX enables new client data scenarios for page and component developers that enable JSON data from the server to be rendered as HTML in a highly manageable and efficient way. To enable these scenarios, so now databinding is becomes very elzy and fast with help AJAX.NET
ASP.NET AJAX includes the following major features:

Client-side template rendering.
Declarative instantiation of client-side behaviors and controls.
Live data binding.
Use of the observer pattern with JavaScript types.
An AdoNetServiceProxy class for client-side interaction with ADO.NET Data Services.
A client-side DataView control for data-bound UI in the browser.
DataContext and AdoNetDataContext classes for interaction with Web services.
Refactored ASP.NET AJAX framework libraries.
Support for the DOM Ready event.
Using JSONP to retrieve cross-domain data.

Asp.Net Chart Control Reivew

The ASP.NET Chart control expands the data-visualization offerings in the .NET Framework. Using the Chart control, you can easily create ASP.NET pages that have intuitive and visually compelling charts for complex statistical or financial analysis. The ASP.NET Chart control was introduced as an add-on to the .NET Framework version 3.5 SP1 release and will become part of the .NET Framework 4 release.

Major features of the control include the following:

35 distinct chart types.
An unlimited number of chart areas, titles, legends, and annotations.
A wide variety of appearance settings for all chart elements.
3-D support for most chart types.
Smart data labels that can automatically fit around data points.
Strip lines, scale breaks, and logarithmic scaling.
More than 50 financial and statistical formulas for data analysis and transformation.
Simple binding and manipulation of chart data.
Support for common data formats, such as dates, times, and currency.
Support for interactivity and event-driven customization, including client click events using AJAX.
State management.
Binary streaming.

Windows 8 Microsoft Planing for 128 bit Os

Tuesday, October 13, 2009



Windows 7 is not even out the door yet and rumors are already circulating about the next version of Microsoft’s OS, Windows 8.
According to Microsoft employee Robert Morgan, future iterations of Windows, including Windows 8, could support a 128-bit architecture. Two weeks ago his now defunct LinkedIn profile disclosed that he had been working on “research and development projects including 128-bit architecture compatibility with the Windows 8 kernel and Windows 9 project plan”.
Further to this, Morgan’s profile also let slip that Microsoft are hoping to form a number of future relationships with major players such as IBM, Intel, AMD and others in the run up to 128-bit support. (Keep in mind that 64-bit computing is just now going mainstream.)
An interview with Robert Morgan, who has been with the company since 2002, is expected to appear on Windows 8 News within the coming days, hopefully shedding more light on what to expect from the next version of Windows, codenamed Chirdori.
So while we wait to learn more on the future of Windows, be sure to check our our coverage on Microsoft’s latest effort, Windows 7.