Welcome

Welcome to CMS n Web. Learn & Study completely Free Articles\Training about Web Designing\Development and CMS.

Search This Web

Monday, September 30, 2013

20 Must See HTML5 And CSS3 Tutorials

Here we are presenting another precise and useful collection of 20 cool HTML5 and CSS3 tutorials for you. Tutorials are the best on hands training and this is the reason why we all search for the latest tutorials to stay up to date with the latest changes.
Below, we have listed 20 tutorials on CSS3 and HTML5 and these tutorials will help you understand what you can achieve with CSS3 and HTML5. Do let us know what you think about this compilation via comment section below. Further, if we have missed some really cool and useful tutorials then drop us a line and we will add them in our next collection. Enjoy!
Demo Download )
Demo Download )
Demo Download )
Demo Download )

30 Free Video Tutorials for Learning Web Design

Getting started in web design can be quite difficult. For readers, there are tons of great free tutorials online. However, some people find visual instruction to be more effective for their learning style.

Instructional videos are an incredibly rich learning tool and could be just what you need to finally learn web development properly. We’ve compiled a list of over 30 excellent screencasts for beginners across a number of web technologies and disciplines.

NetTuts

NetTuts is one of the best providers out there for free content related to learning web design. They have a wealth of articles and video tutorials for learners at all levels. Here are a few for beginners in HTML5, CSS3 and JavaScript.

The Ultimate Guide to Creating a Design and Converting it to HTML and CSS

“This screencast will serve as the final entry in a multi-part series across the TUTS sites which demonstrates how to build a beautiful home page for a fictional business. We learned how to create the wireframe on Vectortuts+; we added color, textures, and effects on Psdtuts+; now, we’ll take our completed PSD and convert it into a nicely coded HTML and CSS website.”
screenshot

How to Make All Browsers Render HTML5 Mark-up Correctly: Screencast

“HTML 5 provides some great new features for web designers who want to code readable, semantically-meaningful layouts. However, support for HTML 5 is still evolving, and Internet Explorer is the last to add support. In this tutorial, we’ll create a common layout using some of HTML 5’s new semantic elements, then use JavaScript and CSS to make our design backwards-compatible with Internet Explorer. Yes, even IE 6.”
screenshot

Monday, September 16, 2013

7 jQuery Code Snippets every web developer must have

jQuery extensively simplified web developer's life and has become a leader in javascript available libraries. There are a lot of useful jQuery snippets available but here in this post I am going to share 7 basic and widely used code snippets that every front-end web developer must have. Even for those who are new to jQuery can easily understand and get benefit from these routinely used code snippets.

1. Print Page Option

Providing option to print a page is a common task for web developers. Following is the available code:
<!-- jQuery: Print Page -->
$('a.printPage').click(function(){
           window.print();
           return false;
}); 
<!-- HTML: Print Page -->
<div>
   <a  class="printPage" href="#">Print</a>
</div>

2. Helping Input Field/Swap Input Field

In order to make an Input Text field helpful, we normally display some default text inside it (For Example "Company Name") and when user click on it, text disappears and user can enter the value for it. You can try it yourself by using the following code snippet.
<!-- jQuery: Helping Input Field -->
$('input[type=text]').focus(function(){    
           var $this = $(this);
           var title = $this.attr('title');
           if($this.val() == title)
           {
               $this.val('');
           }
}).blur(function() {
           var $this = $(this);
           var title = $this.attr('title');
           if($this.val() == '')
           {
               $this.val(title);
           }
});
<!-- HTML: Swap Input Field -->
<div>
       <input type="text" 
       name="searchCompanyName" 
       value="Company Name"
       title="Company Name" />
</div>

3. Select/Deselect All options

Selecting or Deselecting all available checkbox options using a link on HTML page is common task.
<!-- jQuery: Select/Deselect All -->
$('.SelectAll').live('click', function(){
$(this).closest('.divAll').find('input[type=checkbox]').attr('checked', true);
return false; });
$('.DeselectAll').live('click', function(){
$(this).closest('.divAll').find('input[type=checkbox]').attr('checked', false);
return false; });
<!-- HTML: Select/Deselect All -->
<div class="divAll">  <a href="#" class="SelectAll">Select All</a>&nbsp;  
<a href="#" class="DeselectAll">Deselect All</a>  <br />  \
<input type="checkbox" id="Lahore" /><label for="Lahore">Lahore</label>  
<input type="checkbox" id="Karachi" /><label for="Karachi">Karachi</label>  
<input type="checkbox" id="Islamabad" /><label for="Islamabad">Islamabad</label> </div>

4. Disabling Right Click

For web developers, its common to disable right click on certain pages so following code will do the job.
<!-- jQuery: Disabling Right Click -->
$(document).bind("contextmenu",function(e){
       e.preventDefault();

   });

5. Identify which key is pressed.

Sometimes, we need to validate the input value on a textbox. For example, for "First Name" we might need to avoid numeric values. So, we need to identify which key is pressed and then perform the action accordingly.
<!-- jQuery: Which key is Pressed. -->
$('#txtFirstName').keypress(function(event){
     alert(event.keyCode);
  });
<!-- HTML: Which key is Pressed. -->
<asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>

6. Validating an email.

Validating an email address is very common task on HTML form.
<!-- jQuery: Validating an email. -->
$('#txtEmail').blur(function(e) {
            var sEmail = $('#txtEmail').val();
            if ($.trim(sEmail).length == 0) {
                alert('Please enter valid email address');
                e.preventDefault();
            }        
            var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]
                             {2,4}|[0-9]{1,3})(\]?)$/;        
            if (filter.test(sEmail)) {
                alert('Valid Email');
            }
            else {
                alert('Invalid Email');
                e.preventDefault();
            }
        });
<!-- HTML: Validating an email-->
<asp:TextBox id="txtEmail" runat="server" />

7. Limiting MaxLength for TextArea

Lastly, it usual to put a textarea on a form and validate maximum number of characters on it.
<!-- jQuery: Limiting MaLength for TextArea -->
   var MaxLength = 500;
       $('#txtDescription').keypress(function(e)
       {
          if ($(this).val().length >= MaxLength) {
          e.preventDefault();}
       });
<!-- HTML: Limiting MaLength for TextArea-->
<asp:TextBox ID="txtDescription" runat="server"
                         TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox>
This is my selection of jQuery code snippets but jQuery is a very powerful client-side framework and a lot more can be done using it.

By 4 Sep 2013 on code project

SEO optimization: add meta tags to ASP.NET page programmatically

Problem Definition

Adding page-specific meta tags, like "description" and "keywords" is quintessentially important in a context of SEO optimization. Meta tags can be added directly to the head section of the regular web pages, such as .html or .aspx (i.e. ASP.NET pages), but it is not a trivial task in case of .aspx page built on the top of master page for the following reason: head section appears just in master page, so by default all derivative pages referring to it will share the same set of meta tags.

Solution

Simple coding technique demonstrated in the following snippets (see Listing 1) allows adding various page-specific meta tags to.aspx pages referring to the same master page:
Listing 1 
HtmlMeta _metaD = new HtmlMeta();
_metaD.Name = "Description";
_metaD.Content = "WebTV, Internet Broadcasting, Free Video Online, Free Online Music, Best YouTube Videos";
 
HtmlMeta _metaK = new HtmlMeta();
_metaK.Name = "Keywords";
_metaK.Content = "Best YouTube Videos, Free Music Video Online, Pop Rock Channel, Smooth Jazz, Hip Hop, Rap, New Wave, 80s, 90s, Disco, WebTV, Internet Broadcasting";
 
((Control)Header).Controls.Add(_metaD);
((Control)Header).Controls.Add(_metaK);
This code snippet should be included in Page_Load procedure of .aspx page; don’t forget to add the reference to System.Web.UI.HtmlControls on the page level.

By 11 Sep 2013 on code project

C# and Asp.Net Question and Answers(All in one)

Introduction

My this article provides a collection of numerous .Net, C#, ADO.NET, Web Services, .Net Framework questions and answers for which a reader has to look around for entire internet on different community web sites. Most of the questions and answers you must have already read. The purpose of this article is to consolidate at the most study material related to .Net at one single place.

ASP.NET

What is view state and use of it?The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested for the first time versus when the form is posted (sent to the server), which  allows you to program accordingly.

What are user controls and custom controls?Custom controls:
 A control authored by a user or a third-party software vendor that does not belong to   the .NET Framework class library. This is a generic term that includes user controls. A  custom server control is used in Web Forms (ASP.NET pages). A custom client control is used  in Windows Forms applications.

User Controls:
In ASP.NET: A user-authored server control that enables an ASP.NET page to be re-used   as a server control. An ASP.NET user control is authored declaratively  and persisted as a  text file with an .ascx extension. The ASP.NET page framework compiles a user control on  the fly to a class that derives from the        System.Web.UI.UserControl class.

What are the validation controls?A set of server controls included with ASP.NET that test user input in HTML and Web server  controls for programmer-defined requirements. Validation controls perform input checking in server code. If the user is working with a browser that supports DHTML, the validation  controls can also perform validation using client script.

What's the difference between Response.Write() andResponse.Output.Write()?The latter one allows you to write formattedoutput.

What methods are fired during the page load? Init () When the page is instantiated, Load() - when the page is loaded into server  memory,PreRender () - the brief moment before the page is displayed to the user  as HTML, Unload() - when page finishes loading.

Where does the Web page belong in the .NET Framework class hierarchy?System.Web.UI.Page

Where do you store the information about the user's locale?System.Web.UI.Page.Culture

What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?CodeBehind is relevant to Visual Studio.NET only.

Wednesday, September 11, 2013

How to make Registration and Login Page in ASP.NET using C#

Hi Friends!Today i am going to make a Custom  Registration and Login Page.This is not a simple web form page.In this Form i have used many concepts.You can easily implement this concept to any where in .NET Application. In this application i have covered all things which is required in various Registration and Login Form in any  website.I am really saying to you,if you run this application on your computer then you will feel how much good it is.You can download this application from bottom and run on your visual studio.There are some controls which i have used in this application.

There are some steps to make this application.Please follow this.
Step 1: First open your visual studio->File->New->website->ASP.NET Empty website->click OK.->Now open Solution Explorer->Add New Item-> Web form-> click Add.

How to Host ASP.NET Application on Free Server somee.com

Hi friend ! Today i am going to tell you How to Host ASP.NET Application on Server Free. It is totally free of cost you can easily host  your ASP.NET application on the Server. You can easily configure your domain name also without any cost.You can open your ASP.NET application any where in the world.It is for testing purpose. There are some data limitation also which is mentioned on website.I have hosted many website for testing purpose.
There are some steps follow them one by one which is shown below:

Step :1 First open a URL Click Here -->Click Order Now -->Filled the Registration Fields-->Click Register new user and continue.

How to use Navigation Control in ASP.NET


Navigation controls are very important for websites.Navigation controls are basically used to navigate the user through webpage .It is more helpful for making the navigation of pages easier .There  are three controls in ASP.NET ,Which are used for Navigation on the webpage.
  1. TreeView control
  2. Menu Control
  3. SiteMapPath control
There are some Namespaces, which are used for above Navigation controls which are given below:
Using.System.Web.UI.WebControls.TreeView ;
Using.System.Web.UI.WebControls.Menu ;
Using.System.Web.UI.WebControls.SiteMapPath ;

In this tutorial,i will show you ,how to add navigation control on the web page.I will also give you real example of each control.Please read each control very carefully and use it on ASP.NET website.You can download each controlapplication from bottom and implement on your system.

1. ) THE TREEVIEW CONTROL:- 

Sunday, August 11, 2013

Highlight Search Text in Search Result

Introduction

In search engines we often see the text/string we are searching for comes highlighted in the search result. In this article we will learn how to highlight the search text in search result.

(Image:1)

Background

Before going through this article you should have basic knowledge in C# , ASP.NET Gridview Control and how to use template field in Gridview.

Tuesday, August 6, 2013

Creating Calculator using HTML,CSS and JavaScript

Introduction
In this trick, we are going to create a calculator. We need to create a basic structure using HTML, style it using CSS and make it work using JavaScript.

Let's Start

Create an HTML Document

Making ASP.NET GridView Responsive With jQuery FooTable

As the current trend is to make website compatible with all platforms like desktop, tablet and mobile..etc, Responsive Design technique comes into the picture. Using it, the website adapts the layout to the environment that it is being viewed in. In this post, we will make ASP.NET gridview responsive using jQuery FooTable plugin. It hides certain columns of data at different resolutions based on data-* attributes and converts hidden data to expandable rows. First, I recommend to read this post to understand how it works.

Monday, August 5, 2013

Canvas Control Library and New Forms Based System for building Web Pages and Websites

Introduction  

I was wondering if anyone wants to pay me to do their website for them using Canvas Control Library without being physically present i.e. telecommuting wise if so please send me an email to akshay.srin@gmail.com with an offer.
I would like to dedicate this invention of mine in memory of the hero John Galt from the novel Atlas Shrugged by Ayn Rand. Read it and understand what happened and is happening to America and the world it controls Smile | <img src=.
Changes to article that caused this new version:
Since the article is very long as it documents the entire system of Canvas Control Library I will use this section to describe what has changed in the article from the last version to this current one so you do not have to go through the entire article again.  Towards that end here are the changes:

Saturday, August 3, 2013

Connecting to a SQL database from ASP .NET

Connecting to a SQL database from ASP .NET 


Muhammad
Faizan
khan (MFKJ)
This tutorial (divided in two parts) will show you how to connect from an ASP .NET web application to a SQL database using SQL authentication. To accomplish this you need to follow a series of steps, first to change some of the settings of SQL Server 2000 and create a database and a user and then to actually connect to the database using ASP .NET with Visual Studio .NET.



I suppose you're going to use the MSDE 2000 (Microsoft SQL Server 2000 Desktop Engine) - the free version of the database.

First set up the database using the tutorial named 'Setting up MS SQL Server 2000'.

Monday, July 29, 2013

Introduction to MVC architecture and Separation of Concerns

Topics to be Covered

  1. What does MVC mean.
  2. Understanding MVC Architecture.
  3. Separation of Concerns

Players

Model: The business entity on which the overall application operates. Many applications use a persistent storage mechanism (such as a database) to store data. MVC does not specifically mention the data access layer because it is understood to be encapsulated by the Model.
View: The user interface that renders the model into a form of interaction.
Controller: Handles a request from a view and updates the model that results a change in Model’s state.
To implement MVC in .NET we need mainly three classes (View, Controller and the Model).

Validation For File Upload Control in ASP

By , 25 Jul 2013



Introduction
In this tip, I explain validation with a file upload control using regular expression validation control in ASP.NET. This tip will help you to validate the extension of a file to be uploaded before the file is uploaded in ASP.NET.

Select Multiple RowS in DataGrid with Checkbox

By , 28 Jul 2013


Introduction 

It is difficult to retrieve data from selected row in datagrid to another control like button. To solve this problem, this code is useful for the user to retrieve data from selected row of datagrid in other control of ASP.NET.

Sunday, July 28, 2013

How to Create a Responsive Website in About 15 Minutes

The buzz around responsive design has been going on for several months now, and a lot of websites are already responsive, or underway. You know what that means? Today I will teach you how to create a responsive website.
If you follow 1WD on Facebook or Twitter, then you already know that we’re already preparing for an explosive design, which includes being responsive. Watch out for it!
  • Tutorial Level: Beginner
  • Skills Required: Basic knowledge in HTML and CSS
  • Completion Time: Approximately 15 minutes
  • Warning: this tutorial is targeted towards beginners, but it can also be for designers and developers who want to have fun!
By the end of this quick tutorial about responsive design, you will already be on your way to web stardom, and by that I mean you’ll be ready to convert and create responsive websites!
Are you ready? Show me your war faces! Roaaar!

Preparing for the Responsive Website Tutorial

I promised that it will only take about 15 minutes to create a responsive website, and I will hold true to my words. Only, we shall start slow and small. We will start by creating a simple single-page website. Cool? Okay!

Thursday, July 25, 2013

Building Apps with HTML5: What You Need to Know

HTML5 is here, and the Web will never be the same.
You’ve no doubt heard that before, or something like it. I’d guess that when you did, you got excited, rolled your eyes, or mouthed the word “why?” and furrowed your brow a bit. Perhaps your reaction was a mix of all three.
I wouldn’t blame you for any of these. HTML5 is exciting, and it does have the potential to change the Web as we know it, but it also gets blown out of proportion. What’s more, its true meaning can be elusive. I’ve experienced each of those reactions myself while building applications with HTML5. It’s a broad topic, so it’s difficult to wrap your head around HTML5, much less know where to begin with this exciting new set of technologies.
This is the first article in a series for MSDN Magazine, and the goal is to give you a complete picture of why the first sentence in this article is true—and important. Over the next several months, I want to help you understand what HTML5 means to you—both as a Web developer and as a developer who uses Microsoft tools and technologies. I hope to simplify some of the complexity around HTML5 for you, and demystify much of the hype. I’ll also introduce some HTML5 features that are available today, as well as some exciting technologies that, though a bit further out, are worth paying attention to. Finally, I’ll leave you with some tips that will help you adopt HTML5 technologies now, while you continue to 
provide great experiences to users with older browsers.
If you’re excited about HTML5, I want to help you turn that excitement into ideas you can put into practice immediately. If you’re skeptical, I want to help you understand just why HTML5 is important. And if you’re just confused about what HTML5 even means, fear not: that’s our first stop in this series.

Tuesday, July 23, 2013

ASP.NET - Export GridView to Excel

ASP.NET - Export GridView to Excel


Exporting GridView Data to Excel Sheet in ASP.NET is a common task for many Applications. In this article I am explaining problem and solution for this task.

In this article, I am going to explain steps for exporting GridView Data to Excel Sheet and what are the problems we face in this task.

There are two cases  when you export GridView Data-


1. GridView without  control like (Button, LinkButton, ImageButton etc.)
2. GridView with  control like (Button, LinkButton, ImageButton etc.)

30 Sites That Offer Free Website Templates and Free Flash Templates

How long does it take to create a new website? Is it a matter of days or weeks? Wrong: it’s a matter of hours! If you have doubts, then you have never used website templates (web designs that enable you to build static websites) or Flash templates (web designs that enable you to build animated websites). So, why don’t you download a free website template or a free Flash template and test it? After all, free templates are free and you have nothing to loose.

40 Useful Responsive Web Design Tools

With the great popularity of tablets and smart-phones, the demand for responsive website design is more serious than ever. Right now, more and more websites are adopting responsive layouts and this trend is expected to become more intense as the percentage of mobile Internet users increase. This development have created tremendous demand for the services of web designers and developers proficient in this highly adaptable system of website layouts. Already, we can see responsive WordPress themes, available from major theme providers that meet the challenges of adopting to different screen sizes.
As expected, some pretty useful responsive web design tools have surfaced recently to support the design and development process of responsive websites. Thanks to the large community of talented developers who made all these resources available. You may ask – what exactly is a responsive web design tool used for? Which tools do I need myself to be ahead of the responsive game? If you are a web designer or developer considering to explore and possibly specialize in responsive web design, you have come to the right place. We are sharing with you, some of the most useful tools and resources here to help you build a responsive design toolbox.