Skip to main content

Posts

Showing posts from October, 2012

Move items in drop down list from left to right using jQuery

Introduction: In my previous article I have explained about   Add remove select and set items in select drop down list . In this article I am going to explain about how to move items from left side to write side using jQuery Explanation: For example in my form I have two dropdown lists one with id “allcities” and another one with id “selectedcities”. And I have two buttons one for moving item from left to right (btnleft) and another one is to move item from right to left (btnright). Below is the html code.

Add remove select and set items in select drop down list

Introduction: In my previous article I have explained about Convert string to lowercase-uppercase in xslt . In this article I am going to explain about how to add,remove,check and set the items in select using jQuery Explanation: For example in my form I have a select option with id “ seloption ”. To add a item with value “option1” and with text “Option-1” below code is used.

Convert string to lowercase-uppercase in xslt

Introduction: In my previous article I have explained about   How to maintain scroll position on postback . In this article I am going to explain about how to convert the text to uppercase and lowercase in xslt. Explanation: Declare the three xslt variables one for lowercase characters and one for uppercase characters. And the third one is to assign the input value. Below is the sample code.

How to maintain scroll position on postback

Introduction: In my previous article I have explained about   C# code to send mail using smtp from gmail,yahoo mail and live mail . In this article I am going to explain about how to maintain scroll position on postback. Explanation: To maintain the scroll position on page wise set the MaintainScrollPositionOnPostback property to true in Page directive. Below is the sample code.

C# code to send mail using smtp from gmail,yahoo mail and live mail

Introduction: In my previous article I have explained about   How to bind/Unbind events in jQuery . In this article I am going to explain about how to send mail from ASP.Net using gmail,yahoomail and live mail credentials. Explanation: First Include the below namespaces in your code behind file. using System; using System.Net; using System.Net.Mail;

Bind unbind event in jQuery

Introduction: In my previous article I have explained about   How to get current url using javascript,jquery and C#Net . In this article I am going to explain about how to bind and unbind events in jQuery . Explanation: In the form I have a button with id “btnsubmit”. Below is the code.

Get current url using JavaScript jQuery

Introduction: In my previous article I have explained about how to run google apps script function periodically javascript. In this article I am going to explain about How to get current url in jquery,Javascript and C#.Net. Explanation: Get current url using jQuery var currenturl = $(location).attr('href'); In javascript var currenturl = window.location.href; In C#.net string url = HttpContext.Current.Request.Url.AbsoluteUri;