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:-