aspx Tutorial

NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here

Toolbar

Get our toolbar!

Advertize



{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, November 2, 2010
jQuery provide Trim method to remove spaces from start and end of a string... More
{#advanced_dlg.about_title}
by Aamir Hasan   on Thursday, October 7, 2010
You can easily find some javascript code over the internet to disable right click on your page. but jQuery make it so simple by using oneline of code.jQuery library provids a bind method bind() Attaching behavior to a document is called bind(). I have bind contextmenu event to document. Syntax .bind( eventType, [ eventData ], handler(eventObject) ) Why we disable right click Most of people wants to disable right click in their site because of "Save as images" but there are other options to save image. Before going to display HTML and images, it is download on own machine, its mean you can easily take images from your machine. To protect links to open in new tab. But, there are other options. Add following code under the HEAD tag of your aspx page Normal 0 false false false EN-US X-NONE X-NONE <head><script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>     <script type="text/javascript" language="javascript">         $(document).ready(function () {             $(document).bind("contextmenu", function (e) {                 return false;             });         });     </script> </head> Click here to see demo and source code
{#advanced_dlg.about_title}
by Aamir Hasan   on Thursday, August 19, 2010
In this tutorial, I will show you how to transmit JSON Object. I will also use the jTemplate with jQuery within ASP.NETMVC.... More
Tags:
{#advanced_dlg.about_title}
by Aamir Hasan   on Sunday, August 15, 2010
Here,i have  handle some problem coming to developers when they try to bind server side values to Textbox on client side. So i decide to solve this problem for those developers who have some week points.Let starts. Create a Person Class which have two members, which will set and get Firstname and Lastname as shown in below Figure 1.1. Figure 1.1   On aspx page drag and drop two TextBox's as shown in below Figure 1.2 Figure 1.2 Add jQuery reference under the Head tag as shown in below Figure 1.3. you can also include latest online jQuery reference. Figure 1.3 You can Override the LastName of Person class as shown in below Figure 1.4. Just for understanding who are on beginner level.   Figure 1.4 Display screen shows out in Internet Explorer as you see in Figure 1.5 Figure 1.5 Display screen shows out in Internet Explorer as you see in Figure 1.6 Figure 1.6 Demo Demo 1 Demo 2 Download Pass values to jquery and set to textbox
{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, July 27, 2010
how to optimize the web page, Loading fast page make the client experince. More
{#advanced_dlg.about_title}
by Aamir Hasan   on Tuesday, July 13, 2010
In this Article, I will demonstrate how to Disable/Enable button in asp.net use jQuery. To avoid multiple clicks on submit button, we simply disable the submit button during the process. More
Tags:
{#advanced_dlg.about_title}
by Aamir Hasan   on Friday, May 28, 2010
Here Aamir Hasan has explained that how to create background color effect on mouseover on a list text More
Tags: , ,
{#advanced_dlg.about_title}
by Aamir Hasan   on Wednesday, August 5, 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