Blog Archives

Filter Html Table Row in Jquery

Today trying to filter Html table and learning to create classes in javascript. It may help to someone if looking for the same: You can find working example here: Html Code <div id=”form”> <input type=”checkbox” value=”x1″ name=”ch”>x1</input> <input type=”checkbox” value=”x2″

Tagged with: , ,
Posted in Javascript, JQuery

Split string in Sql Server

Today I found very good solution, to split the string in Sql Server: //Sql Function CREATE FUNCTION [dbo].[Split] ( @String NVARCHAR(4000), @Delimiter NCHAR(1) ) RETURNS TABLE AS RETURN ( WITH Split(stpos,endpos) AS( SELECT 0 AS stpos, CHARINDEX(@Delimiter,@String) AS endpos UNION

Tagged with:
Posted in SQL Server

Knockoutjs and Jquery UI Slider

How to filter an observable array based on Jquery UI slider using knockoutJs: Html <span id=”minFare” data-bind=”text : minFare”></span> &nbsp;&nbsp;-&nbsp;&nbsp;Rs&nbsp; <span id=”maxFare” data-bind=”text : maxFare”></span> <div id=”slider-range”></div> Js //Min & Max Slider function vm() { var self = this; self.minFare

Tagged with: , ,
Posted in Asp.Net, Jquery UI, KnockoutJS, MVC

Best way to Parse Query String value in Asp.Net

Best way to parse query string value in Asp.Net //Use it string cityCode = Request.QueryString.GetValue<string>(“City”); //Extension method public static T GetValue<T>(this NameValueCollection collection, string key)         {             if (collection == null)             {                 throw new ArgumentNullException(“collection”);             }

Tagged with: ,
Posted in .Net, Asp.Net, C#

Umbraco 5 Surface Controller

In Umbraco5, Surface Controller is very interesting topic that everyone should know about this. Today I was digging with Umbraco 5.2 Beta version and successfully created my first surface controller which handle the contact form. Surface controller is important because

Tagged with: , , ,
Posted in Umbraco5

Export MS Chart to PDF using Itextsharp in Asp.Net

Export MS Chart to PDF in Asp.Net Using itextsharp, export ms chart into pdf file I am rendering a chart using chart control in asp.Net 4.0. Now we want to export that chart image into pdf file. Interesting point is,

Tagged with: , , , ,
Posted in .Net, Asp.Net, C#, ms Chart

Bar Chart random color in asp.Net

Display bars in random colors: IDictionary<string, int> list= new Dictionary<string, int>(); list.Add(“Val 1”, 90); list.Add(“Val  2”, 89); list.Add(“Val 3”, 50); list.Add(“Val 5”, 87); chrtBar2.Series[“Categories”].XValueMember = “key”; chrtBar2.Series[“Categories”].YValueMembers = “value”; chrtBar2.ChartAreas[“MainChartArea”].AxisX.MajorGrid.Enabled = false; chrtBar2.ChartAreas[“MainChartArea”].AxisX.MajorTickMark.Enabled = true; chrtBar2.ChartAreas[“MainChartArea”].AxisX.MinorGrid.Enabled = false; chrtBar2.ChartAreas[“MainChartArea”].AxisX.MinorTickMark.Enabled =

Tagged with: , , ,
Posted in .Net, Asp.Net, C#
Top Rated

Error: Please make sure the Twitter account is public.

Blog Stats
  • 30,264 hits