Wednesday, December 31, 2008

visual c# & .NET e book collection

c# with .net e-book collection!

Happy NEW YEAR 2009

DOWNLOAD FREE,















Build Your Own ASP.NET 2.0 Web Site Using C Sharp and VB.Net.pdf


Sybex_-_Visual_CNET_Programming.pdf

manual visual c# 3 0 and visual studio 2005.pdf

ASP .NET Bible VB.NET.pdf


ASPNET_Website_Programming


Beginning Object Oriented ASP.NET 2.0 with VB.NET From Novice to Professional.zip

Wrox - Beginning Visual Basic .NET Database Programming.pdf

Really Useful Ebooks .net Wrox Professional.ASP.NET.2.0.Design.CSS.Themes.and.Mas
ter.Pages.pdf


Complete_Reference_-_VB1NET












Mastering_Visual_Basic_NET(15 MB)












Vb6_-_Learn_Visual_Basic_6_Database_Access_Management(2mb)

Monday, December 29, 2008

Shopping Cart using C#.NET, Web Forms and SQL Server

Shopping Cart using C#.NET, Web Forms and SQL Server

Introduction

This application is a Shopping Cart where users can select items and place an order. I have added the features of login, and adding new users if user does not exist. Validations are performed wherever needed like email format validation, zipcode etc.

Fig. 1

Database: For the purpose, I have used the NorthWind database and SQL Server.

The two main tables used are:

  1. Products table
  2. Order Details table.

I have used two classes:

Collapse
public class CartRow
{
public string id;
public string name;
public string price;
public string items;
};
public class Cart
{
public System.Collections.ArrayList list = new ArrayList(20);
};

The two main web-forms are Main.aspx and CheckOut.aspx. Main.aspx contains a grid showing all items present in the products table along with the price per unit and the quantity per unit. Fig 1 shows the Main.aspx page, where user can select items from the products grid (left). As he selects an item, it is added to his cart and the item is displayed in the right panel. The total price is displayed in the label above. As the user adds more items to his cart, the recalculated price is shown. Upon clicking the clear cart button, the cart gets empty.

If the user now wants to finalize the order and presses the CheckOut button, he is redirected to the Login.aspx page (Fig 2). I have set the default username as “user” for the sample and password is “u”.

Fig 2.

And finally, the user is asked to enter the Credit Card number, billing PIN code and his email address. It does the client side validations and then confirms the order placed by sending a mail to the user as shown in (Fig 3).

And the order is finalized. For more advanced shopping cart, this information plus the item information has to be stored in some database.

Fig 3

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Developing a Shopping Cart in ASP.NET

Developing a Shopping Cart in ASP.NET

Introduction

In this tutorial we are going to develop a simple shopping cart consisting of two pages, an order page, where your user will be able to check the available merchandise and order the same and the second is a cart page, where the selected items will be shown in the cart. This apparently simple application explains few basic design concepts.

You will clearly find three layers in this application: a back end database describing your products, couple of classes, implementing your business logic and thirdly of course the front end web pages. The middle layer business classes not only give shapes of your business logic but also acts as a vehicle to bring data from the database to the web page. With these much background information let us start with the development.

Step by step development of the Shopping Cart

The Order Page

The order page accepts an order entry for any items in the online store. The user selects the product from the drop-down list, enters a quantity required in the text and clicks on the 'Add to Cart' button. The selected product is added to the shopping cart along with the quantity and the cart page is displayed.

The product information is retrieved from the products table of the database. An AccessDataSource control is bound to the drop-down list. The AutoPostBack property of the drop down list is set to true so that the page is posted when the user selects a product and the information for this product is displayed.

We have used a SortedList to store the shopping cart information and saved this data in session state for retrieving and updating the cart each time a product is selected.

When a user selects a product from the drop down list some label controls displays the name and description of the product and an image control displays the image of the product. We have not stored the image directly in the database but stored the name and position of the image file and the code retrieves the image from the respective file.

We have also implemented validation controls to ensure that the user enters a positive number in the range of 1 to 100 for the quantity. A RequiredFeildValidator ensures that the user enters some value in the text box for quantity and a RangeValidator control ensures that the value is within desired range. Both these controls' ControlToValidate property is set to the name of the quantity text box.

The order page code is as follows:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Order.aspx.vb" Inherits="Order" %>
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>My Shopping Carttitle>
head>
<body>
<form id="form1" runat="server">
<div>
<div style="font-size: xx-large; vertical-align: baseline; width: 614px; color: #ffffff;
direction: ltr; height: 112px; background-color: #660000; text-align: left; font-variant: normal">

<br />

My Web Shopdiv>
<br /><br />
<asp:Label ID="Label1" runat="server"
Text="Please select a product:">asp:Label>
<asp:DropDownList ID="ddlProducts" runat="server" Width = "150px"
DataSourceID="AccessDataSource1" DataTextField="Name"
DataValueField="ProductID" AutoPostBack="True">
asp:DropDownList>
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/my_products.mdb"
SelectCommand="SELECT [ProductID], [Name], [ShortDescription],
[LongDescription], [ImageFile], [UnitPrice]
FROM [Products] ORDER BY [Name]">
asp:AccessDataSource>
<br />
<table>
<tr >
<td style="width: 250px; height: 22px">
<asp:Label ID="lblName" runat="server"
Font-Bold="False" Font-Size="Larger">
asp:Label>
td>
<td style="width: 20px" rowspan="4">
td>
<td rowspan="4" valign="top">
<asp:Image ID="imgProduct" runat="server" Height="200" />
td>
tr>
<tr>
<td style="width: 250px">
<asp:Label ID="lblShortDescription" runat="server">
asp:Label>
td>
tr>
<tr>
<td style="width: 250px">
<asp:Label ID="lblLongDescription" runat="server">
asp:Label>
td>
tr>
<tr>
<td style="width: 250px">
<asp:Label ID="lblUnitPrice" runat="server"
Font-Bold="True" Font-Size="Larger">
asp:Label>
<asp:Label ID="Label2" runat="server" Text="each"
Font-Bold="True" Font-Size="Larger">
asp:Label>
td>
tr>
table>
<br />
<asp:Label ID="Label3" runat="server" Text="Quantity:"
Width="80px" BorderWidth = "0px">asp:Label>
<asp:TextBox ID="txtQuantity" runat="server" Width="80px">asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtQuantity" Display="Dynamic"
ErrorMessage="Quantity is a required field.">
asp:RequiredFieldValidator>
<asp:RangeValidator ID="RangeValidator1" runat="server"
ControlToValidate="txtQuantity" Display="Dynamic"
ErrorMessage="Quantity must range from 1 to 500."
MaximumValue="500" MinimumValue="1" Type="Integer">
asp:RangeValidator><br /><br />
<asp:Button ID="btnAdd" runat="server" Text="Add to Cart" />
<asp:Button ID="btnCart" runat="server" CausesValidation="False"
PostBackUrl="~/Cart.aspx" Text="Go to Cart" />
div>
form>
body>

html>

The design view of the page should look like:

Order page of shopping cart
Image 1. Order page in design view

he cart page displays the selected items list and is implemented by a list box control. The shopping cart information is saved in session state by the order page. The user can select any item in the list and remove it from the list or empty the cart or continue shopping by returning to the order page.

The check out button ideally should take the user to payments mode but it is beyond the scope of present tutorial.

The code for the Cart Page is as follows:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Cart.aspx.vb"
Inherits="Cart" %>

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Shopping Carttitle>
head>
<body>
<form id="form1" runat="server">
<div>
<div>
<div style="font-size: xx-large; vertical-align: baseline; width: 614px; color: #ffffff;
direction: ltr; height: 112px; background-color: #660000; text-align: left; font-variant: normal">

<br />

My Web Shopdiv><br /><br />
Your shopping cart:<br />
<table style="width: 500px" cellspacing="0"
cellpadding="0" border="0">
<tr>
<td style="width: 286px; height: 153px">
<asp:ListBox ID="lstCart" runat="server"
Width="267px" Height="135px">
asp:ListBox>
td>
<td style="height: 153px">
<asp:Button ID="btnRemove" runat="server"
Width="100px" Text="Remove Item" /><br /><br />
<asp:Button ID="btnEmpty" runat="server"
Width="100px" Text="Empty Cart" />
td>
tr>
table>
<br />
<asp:Button ID="btnContinue" runat="server"
PostBackUrl="~/Order.aspx" Text="Continue Shopping" />
<asp:Button ID="btnCheckOut" runat="server" Text="Check Out" /><br />
<br />
<asp:Label ID="lblMessage" runat="server">asp:Label>
div>
form>
body>
html>

The design view of the cart page should look like this:

Shopping cart page
Image 2. Cart page design

The business classes needed for shopping cart

This simple shopping cart application requires two business classes Product and CartItem. The Product class has properties similar to the fields in the Product table of your database as this class will be the vehicle to carry your product information from database to the application logic. The CartItem class will have just two properties product and quantity and a method for displaying the product name and quantity selected.

The product class


Public Class Product
Public ProductID As String
Public Name As String
Public ShortDescription As String
Public LongDescription As String
Public UnitPrice As Decimal
Public ImageFile As String
End Class

The CartItem class

Public Class CartItem
Public Product As Product
Public Quantity As Integer

Public Function Display() As String
Return Product.Name + " (" + Quantity.ToString() _
+ " at " + FormatCurrency(Product.UnitPrice) + " each)"

End Function
End Class

To retrieve data from the database an AccessDataSource control has been used. The Select method of the AccessDataSource class return a DataView object which contains the rows retrieved from the Access database. the return type of Select method is IEnumerable, so we need to convert the returned object to a DataView object. The RowFilter property of the DataView class allow you to filter rows based on some criteria. The indexer of the DataView class is used to get a specific row as a DataRowView object. The indexer of the DataRowView object in turn allows to get a specific column from the row. The following code explains this.

Dim dvProduct As DataView = CType(AccessDataSource1.Select(DataSourceSelectArguments.Empty), DataView)
dvProduct.RowFilter = "ProductID = '" & ddlProducts.SelectedValue & "'"
Dim Product As New Product
Product.ProductID = dvProduct(0)("ProductID").ToString
Product.Name = dvProduct(0)("Name").ToString
Product.ShortDescription = dvProduct(0)("ShortDescription").ToString
Product.LongDescription = dvProduct(0)("LongDescription").ToString
Product.UnitPrice = CDec(dvProduct(0)("UnitPrice"))
Product.ImageFile = dvProduct(0)("ImageFile").ToString

Use of Session State to Store the Cart Information

Asp.Net uses session state to track the state of each user of an application by creating a session state object. This session state object includes a session ID which is sent back to the browser as a cookie. The browser automatically returns this cookie with each request and this way the server associates the browser with an existing session state object. This session state object can be used to store and retrieve items across executions of an application.

The following table shows the commonly used properties and methods of the HttpSessionState class

Properties Description
SessionID The unique ID of the session
Item(name) The value of the session state item with the specified name
Count The number of items in the session state collection
Methods Description
Add(name, value) Adds an item to the session state collection
Clear Removes all items from the session state collection
Remove(name) Removes the specified item from the collection

We have used the session state object to store the list of the selected items in the shopping cart. The following code snippet shows that:

Private Function GetCart() As SortedList
If Session("Cart") Is Nothing Then
Session.Add("Cart", New SortedList)
End If
Return CType(Session("Cart"), SortedList)
End Function

The complete application should look like:

Shopping cart sample
Image 3. Shopping cart at run time

Conclusion

This simple shopping cart application explains how to handle a simple problem using Asp.Net. Though we have used the barest minimum functionalities, you will find lots of shopping carts with much more complex finery, we just hop this tutorial helps you to understand the basic workings of Asp.Net. You can download the Shopping Cart Visual Studio project, used in this tutorial.

Happy Programming!


ASP.NET Shopping Cart Source Code

ASP.NET Shopping Cart Source Code 2

Download Now (1.11MB)
Tested spyware free

Features


  • License:

    Free to try; $99.95 to buy

  • Editor's Rating:

    Not rated

  • Average User Rating:

    4.0 stars (out of 4 votes) Rate it!

  • Downloads:

    5,969

  • Requirements:

    Windows 98/Me/NT/2000/XP/2003 Server

  • Limitations:

    Settings save-disabled, no source code

  • Date Added:

    April 14, 2006

Sunday, December 28, 2008

best wallpapers

best wallpapers

The Best Wallpapers Pack No1


The Best Wallpapers Pack No1 | 52 Files | JPG | 1920 x 1200 | BY : Dellopos | 25.5 MB

http://s42.radikal.ru/i096/0812/31/9b66312a9509.jpg

http://i066.radikal.ru/0812/56/e15fe8b3c2bd.jpg

http://s43.radikal.ru/i099/0812/7c/1319c026b1cc.jpg

Download Rapidshare Link:

http://rapidshare.com/files/177603180/The.Best.Wallpapers.pack.No1.dellopos.rar

A film

Kabhi Alvida Naa Kehna

Kabhi Alvida Naa Kehna

Kabhi Alvida Naa Kehna - Love, life, relationships....and the truth!

Exclusive by Joginder Tuteja, IndiaGlitz [Wednesday, June 21, 2006]

It's said that relationships are driven by society while love is something that an individual develops!

The age old saying has proved right in all the times. But what about the present times? A time when life is a frantic journey where there is hardly any time left for building relationships? Where is the place for love then? Does it emerge out of a relationship? Or it doesn't really need an invitation to happen by itself?

Can love be so powerful that it could take on relationships.....and break them forever?

The film narrates the tale of two families - Sarans and Talwars. While Sarans are headed by Kamaljit Saran [Kirron Kher], mother of Dev [Shahrukh Khan], Talwars have Samarjit Singh Talwar [Amitabh Bachchan] as the eldest with Rishi [Abhishek Bachchan] as his son! That's not all as the well-to-do families also have a female member in the form of Rhea [Preity Zinta], Dev's wife and Maya [Rani Mukherjee], Rishi's better half.

What is it that brings the members of two families so close that it pains to say 'Kabhi Alvida Na Kehna'?

Each of the young couples comes with their own set of frustrations, desires and expectations. Each of the young couples has their own problems, their own battles to fight. And soon there comes a time when a member from each of the two couples start depending upon each other to comfort themselves!

They are Dev and Maya. Very much married. But now looking upon each other for the best moments of their lives!

What was it about the relationships shared by Dev-Rhea and Rishi-Maya that set them apart? And what is it that would get them closer again?

Both Dev and Maya have a handicap that keeps them unhappy about their married lives. An unfortunate incident changes Dev's personality completely. Handicapped, he starts looking at everything with a negative mindset and finds himself unable to enjoy the smallest pleasures given by life. Whether it is his much-successful wife Rhea or the ones who are closest to him, he is just enable to maintain his composure and hates everything that comes in his way, be it his surroundings, his loved ones, his wife and even his life! With a feeling of loneliness and disappointed all around him, sensitive Dev lashes out at any given opportunity. But Maya's entry in his life brings along a calming effect!

On the other hand Maya too has a handicap of her own that keeps her aloof from her husband. While on one hand she is unable to have children, on the other hand she is not able to give her husband the kind of love that any husband would deserve. Knowing very well that her feelings for Rishi have much left in them to be desired, she feels guilty about the fact but finds herself helpless in this situation. Doubting the very essence of the relationship they share, the love they feel for each other and the life they want to live from hereon, Maya finds herself on the crossroads when she meets Dev!

Passion ignites, sparks fly and true love beckons Dev and Maya when they meet. And then comes the dilemma of accepting the fact about their respective marriage partners on one hand and choosing a life of their choice on the other.

Meanwhile what's the kind of lives Rhea and Rishi want to live?

A confident woman with strong beliefs and resolve about her career having equal, if not more, important as her marital life, Rhea is smart, successful and caring. She may not be the usual housewife that is generally accepted from a woman belonging to her social circle but that is hardly a worrying thought for her as she believes that everything counts in an individual's life, with love and luxuries holding equal importance.

Rishi too loves Maya enormously and it's her and only her.









Tumko bhi hai khabar - You also know
Mujhko bhi hai pata - I also know
Ho raha hai judaa dono ka raasta - Our ways are getting separated
Door jaa ke bhi mujhse - Even going away from me
Tum meri yaadon mein rehna - You stay in my memories
Kabhi alvida na kehna (3) - Never say goodbye

Tumko bhi hai khabar - You also know
Mujhko bhi hai pata - I also know
Ho raha hai judaa dono ka raasta - Our ways are getting separated
Door jaa ke bhi mujhse - Even going away from me
Tum meri yaadon mein rehna - You stay in my memories
Kabhi Alvida Na Kehna (3) - Never say goodbye

Jitni thi khushiyan sab kho chuki hai - Whatever happiness there was it's all gone
Bas ek gham hai ke jaata nahi - Just the sadness won't go away
Samjha ke dekha behela ke dekha - I tried to make it understand
Dil hai chain isko aata nahi...aata nahi - This heart does not receive any peace…
Aasoon hai ke hai angaarey, aag hai ab aankhon se behena - Are these tears or bolts of flame, fire now floats through these eyes
Kabhi alvida na kehna (3) - Never say goodbye

Rut aa rahi hai, rut jaa rahi hai - Seasons have come, seasons have gone
Dard ka mausam badla nahi - The weather of pain has not changed
Rang yeh gham ka itna hai gehera - The color of sadness is so deep
Saadiyon bhi hoga halka nahi...halka nahi - Even after years it will not get less…will not get less
Kaun jaane kya hona hai - Who knows what will happen
Humko hai ab kya kya sehena - What more do I have to go through
Kabhi Alvida...Kabhi Alvida Na Kehna (2) - Never say goodbye

Tumko bhi hai khabar - You also know
Mujhko bhi hai pata - I also know
Ho raha hai judaa dono ka raasta - Our ways are getting separated
Door jaa ke bhi mujhse - Even going away from me
Tum meri yaadon mein rehna - You stay in my memories
Kabhi Alvida Na Kehna (5) - Never say goodbye



Reply

Forward



tv series

Charmed - Season 6 DVDRip XviD
User Rating: / 0
Written by KaRiMoO
Monday, 29 December 2008



Charmed - Season 6 DVDRip XviD
INFO
: http://www.imdb.com/title/tt0158552/

Read more...
Roswell - Season 2 DVDRip XviD
User Rating: / 0
Written by KaRiMoO
Monday, 29 December 2008



Roswell - Season 2 DVDRip XviD
INFO
: http://www.imdb.com/title/tt0201391/

Read more...
Charmed - Season 2 DVDRip XviD
User Rating: / 0
Written by KaRiMoO
Monday, 29 December 2008



Charmed - Season 2 DVDRip XviD
INFO
: http://www.imdb.com/title/tt0158552/

Read more...
Charmed - Season 3, 4 & 5 DVDRip XviD
User Rating: / 0
Written by KaRiMoO
Monday, 29 December 2008



Charmed - Season 3, 4 & 5 DVDRip XviD
INFO
: http://www.imdb.com/title/tt0158552/

Read more...

Antivirous

Antiviruses

* Avast
* AVG
* Avira
* BitDefender
* Eset Nod32
* F-Secure
* Kaspersky


1. Antiviruses

AVAST INTERNET SECURITY 4.8.1.1299 2009



avast! antivirus v4.8

represents a multi-award winning solution to virus protection, with anti-spyware and anti-rootkit software built in for added security. It is available free for non-commercial, home use and with its fast, automatic updates avast! antivirus is already being used by more than 60 million users worldwide to provide continuous protection against all forms of malicious software (malware).

DL- http://rapidshare.com/files/15926868...r.html%5B/code

************************************************** **************

AVG Free provides you with basic antivirus and antispyware protection for Windows




[code]RapidShare: Easy Filehosting
http://rapidshare.com/files/159268697/2.part1.rar.html[/code]

************************************************** *****

AVIRA ANTIVIR PREMIUM SUITE 8.2.0.370 2009




Avira, a company with around 50 millions customers and around 250 employees is a worldwide leading supplier of self-developed security solutions for professional and private use. With more than 20 years of experience, the company is one of the pioneers in this field.

http://rapidshare.com/files/15926934...r.html%5B/code

************************************************** *************
BIT DEFENDER TOTAL SECURITY 2009




Total Security 2009
Combines Superior Proactive Protection from e-Threats with Backup and PC Tune-up for the Ultimate in Security... that won’t slow you down!

http://rapidshare.com/files/15926967...r.html%5B/code


************************************************** ****************

ESET NOD32 BUSINESS PRO EDITION 3.0.672 2009



NOD32 provides well balanced, state-of-the-art protection against threats endangering your PC and enterprise systems running various platforms from Microsoft Windows through a number of UNIX/Linux, Novell, MS DOS operating systems to Microsoft Exchange Server, Lotus Domino and other mail servers.

[code]http://rapidshare.com/files/159272512/5.rar.html[/code]

************************************************** *******

F-SECURE CLIENT SECURITY 8.00.232 2009





F-Secure Internet Security provides a complete and easy-to-use antivirus software no matter whether the viruses are known or previously unidentified.

[code]http://rapidshare.com/files/159273063/6.rar.html[/code]

EK'S choice-

KASPERSKY :






Kaspersky Lab Today

We develop, produce and distribute information security solutions that protect our customers from IT threats and allow enterprises to manage risk. We provide products that protect information from viruses, hackers and spam for home users and enterprises and offer consulting services and technical support.

Founded in 1997, Kaspersky Lab is an international information security software vendor. Kaspersky Lab is headquartered in Moscow, Russia and has regional offices in the UK, France, Germany, the Netherlands, Poland, Japan, China, Korea, Romania and the United States. Further expanding the company's reach is its large partner network comprising over 500 companies globally.

Our products are certified by West Coast Labs and regularly receive awards from leading IT publications and testing labs. In 2003 we received the Microsoft Gold Certified Partner status for Security Solutions. Kaspersky Lab is also a proud partner of SUSE and Red Hat. Experts from Kaspersky Lab are active in IT associations such as CARO (Computer Antivirus Research Organization) and ICSA (International Computer Security Association)

a. KASPERSKY AV & ISecurity versions 7 & 8

b. KASPERSKY Mobile Security 7.00.33

http://rapidshare.com/files/159273679/7.part1.rar.html[/code ________





INNOVATION. LEADERSHIP. CONFIDENCE. That's our promise to you. Whether it's protecting your infrastructure, information, or interactions Symantec has you covered

a. Norton Ghost [for those who use it]

b. Norton Internet Security 2009

http://rapidshare.com/files/15928432...75/9.part6.rar

http://rapidshare.com/files/15928432...75/9.part6.rar

http://rapidshare.com/files/15927739...r.html%5B/code

http://rapidshare.com/files/15927739...r.html%5B/code

__________