aspx Tutorial

.NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services, .NET articles, Sharepoint 2010, visual studio 2010,Aamir Hasan,IT, Building Your First Web Application Project
Advertise Here

Toolbar

Get our toolbar!

Advertize



{#advanced_dlg.about_title}
by Aamir Hasan   on Sunday, August 28, 2011
You can easily build your pages using coding style in Visual Studio 2010.. More
{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, June 28, 2011
In this example, you will learn how to maintain scroll position in asp.net page after Postback is fired. More
{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, April 5, 2011
I have noticed that many developers have problems when they face “407 Proxy Authentication Required” exception on the internet by application. Your application required proxy server when you use your application behind the LAN. More
{#advanced_dlg.about_title}
by Aamir Hasan   on Thursday, March 17, 2011
Some developers say that DataSet is better and some says DataReader is better. But, both are Microsoft developments... More
{#advanced_dlg.about_title}
by Aamir Hasan   on Sunday, February 27, 2011
Web services have not any mechanism by which can maintain state. But web services can access asp.net objects like Session, More
{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, February 22, 2011
This article describes how to secure your password before going to save in database or XML file etc More
{#advanced_dlg.about_title}
by Aamir Hasan   on Thursday, February 3, 2011
By default, the web server assigns random selected port for localhost.. More
{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, January 11, 2011
In this post, you will see how to get number of active visitor's online in asp.net web site... More
{#advanced_dlg.about_title}
by Aamir Hasan   on Sunday, January 9, 2011
In this tutorial, you will get to know about how to create a SSAS cube using wizard upon a data warehouse in visual studio 2008.... More
{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, August 4, 2009
DAL DbConnectionusing System.Configuration;namespace AamirHasan.DAL{    public class DBConnection    {        public DataACDataContext GetDBContext()        {            return new DataACDataContext(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);        }    }}   DataAC.dbml     AamirHasan.BLL ICountry.cs using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace AamirHasan.BLL{    public class ICountry    {        private long id;        private string name;        public long ID        {            get { return id; }            set { id = value; }        }        public string Name { get { return name; } set { name = value; } }    }} Country.cs using System;using System.Collections.Generic;using System.Linq;using System.Text;using AamirHasan.DAL;namespace AamirHasan.BLL{    public class Country : ICountry    {        public List<Country> getAllCountriesName()        {            DBConnection d = new DBConnection();            using (var db = d.GetDBContext())            {                List<Country> _List = (from Obj in db.countries                                       select new Country                                       { ID = Obj.id, Name = Obj.name }).ToList<Country>();                return _List;            }        }    }} <script src="JavaScript/jquery.js" type="text/javascript"></script>    <script src="JavaScript/jtemplates.js" type="text/javascript"></script>   <link href="CSS/StyleSheet.css" rel="stylesheet" type="text/css" />    <script type="text/javascript">        $(document).ready(function() {            $.ajax({                type: "POST",                url: "Default.aspx/getAllCountriesName",                data: "{}",                contentType: "application/json; charset=utf-8",                dataType: "json",                success: (function Success(data, status) {                    $('#placeholder').setTemplateURL('JTemplates/ForEachTemplate.htm');                    $('#placeholder').processTemplate(data.d);                })            });                 });    </script></head><body>    <form id="form1" runat="server">        <p><h1>How to Apply Jtemplate in asp.net using,Linq</h1></p>    <p><h4>Author:Aamir Hasan<br />www.aspxtutorial.com<br />092 333 5494532</h4></p>    <div id="placeholder" style="clear: both;"></div>    </form>   Download password:aamirhasan
Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5