Here in this post i will show how to group rows using Jquery DataTable Plugin.
This plugin was provided by third party vendor for DataTables, but the link provided was not working so i decided to show how to use it... in this post... for more examples U can refer
http://www.datatables.net/extras/
Out Put :
ASPX Page :
Tuesday, April 16, 2013
Monday, April 8, 2013
maintain scroll position on postback asp.net OR maintain scroll position on postback using jquery OR JavaScript
In this post i will show how to maintain scroll position in asp.net page.
Actually MaintainScrollPositionOnPostback="true" is not working So,
below is the script to maintain scroll position.....
Script For Maintaining ScrollPosition on PostBack
Actually MaintainScrollPositionOnPostback="true" is not working So,
below is the script to maintain scroll position.....
Script For Maintaining ScrollPosition on PostBack
jquery on focus change background color AND onfocus select all text OR input text select all on focus
In the previous post i had shown how to select All text of the control and continuing the post now i will show change border color of the focused control as shown below.........
and this works for textbox, dropdownlist, listbox, textarea ...
Out Put :
CSS for for color :
and this works for textbox, dropdownlist, listbox, textarea ...
Out Put :
CSS for for color :
Sunday, April 7, 2013
onfocus select all text OR input text select all on focus
In this post i will show how to select all text on focus of the control as shown ...
OutPut :
Aspx Coding :
OutPut :
Aspx Coding :
drop down list with search asp.net OR search option in dropdownlist asp.net
Here in this post i will show how Search Option in ASP.NET dropdownlist .....
OutPut :
Default.aspx Page
OutPut :
Default.aspx Page
Sunday, March 31, 2013
Convert a Comma Delimited String to an ArrayList in C#
In the previous post i had shown u how to Convert comma delimited string to Dictionary
Now i will show how to Convert comma delimited string to string array, is easy as shown below...
string Val = "a,b,c,d,e";
string[]
myStringArray = Val.Split(',');
in the same way converting comma delimited string to arraylist is also easy in a single line as shown below....
ArrayList myArrayList = new ArrayList();
myArrayList.AddRange(Val.Split(','));
//Method 2
ArrayList list = new ArrayList(Val.Split(','));
Out Put :
myArrayList[0] = a;
myArrayList[1] = b;
myArrayList[1] = b;
myArrayList[2] = c;
myArrayList[3] = d;
myArrayList[4] = e;
myArrayList[4] = e;
Convert a Comma Delimited String to an Dictionary in C#
Here i will show how to Convert a Comma Delimited String to an Dictionary in C#
In the previous post i had shown u how to get all selected values from ListBox
continuing the above link.....
In the previous post i had shown u how to get all selected values from ListBox
continuing the above link.....
string Val = "a,b,c,d,e";
Dictionary<string, string>
MyDict1 = new Dictionary<string, string>();
MyDict1 = Val.Split(',').ToDictionary(key
=> key.Trim(), value => value.Trim());
Out Put :
a -> a
b -> b
b -> b
c -> c
d -> d
e -> e
Subscribe to:
Posts (Atom)