Dec 30, 2015

Popup close issue in crome browser while dragging mouse outside from the popup area

I faced popup close issue in crome browser while dragging mouse outside from the popup area.
How to solve the issues of popup close in crome browser while dragging to outside the popup

You need to pass option parameter in popup js call blur=false so it will not close the popup in crome.

Lets see below example and code.


 

Dec 24, 2015

Tech-coder.com has been reached 100 blog post

I am glad to inform you that http://www.tech-coder.com has been reached 100 blog post's and that all post serve to technologies related stuff.

Hope readers are enjoyed till date and got some technology related information. So please keep reading for same and I will try to provide more and more new technologies related post.

Thanks to everyone those are visited my blog post and given support to tech-coder.com to reached 100 posts.

Hope will getting same support for future post also.

Dec 15, 2015

jQuery Chosen plugin - Dynamically populated list by Ajax (Cascading dropdown)


I am going to Write regarding jQuery Chosen plugin. What is the reason behind writing this blog post, sharing my experience for one of the functionality (Populate list of drop-down using Ajax call) was achieve using jQuery Chosen plugin.
It was little twiky solution for me at moment and their for I had googling and found good solution so for reason I was thinking like why I should not share to other.

So here I am going to share one of the issue. Which was worked on drop-down populate data using Ajax call but somehow it was not render proper CSS after updating drop-down data.

For that purpose had some R&D on that and found the solution for same.

Lets see full demo of code. How to get sub-Category (Cascading dropdown) based on category selection trigger Ajax call and update the list of drop-down using trigger action of jQuery .

Step by step solution:
Step1 :: Add jQuery and chosen jQuery JS file

Step2 :: Call dropdown initialize functions (i.e for Chosen)









Step3:: Ajax call for get subcategory and update dropdown using trigger action so css of dropdown bind again.

Happy Coding!

Dec 7, 2015

Mix Razor and Javascript code on MVC 5

Many Developer confused when writing JavaScript code on Razor view at time they need to write mix c# code and Javascript code.

Such scenarios occurs when need to write mix code  on razor view.
lets see example what we are talking and how to resolve.
Just need to add @: before javascript statement.

Hope you are getting and useful.

Dec 3, 2015

Asp.net - Input string was not in a correct format.

Today's techno world, people are making everyday silly mistack with coding.

Here I am trying to cover one simple error message "Input string was not in correct format".

Base on above error message experience developer know where he/she had make a mistack but I am writing this blog for newbie of Asp.Net, C# developer.

when you try to convert any empty string, double value etc into integer value. that time getting above message.

Lets check example.
var intValue1 = Convert.ToInt32("-52.066666"); // error

var intValue2 = Convert.ToInt32("52.066666"); // error

var intValue3 = Int32.Parse("52.066666");  // error

var intValue4 = Int32.Parse("52");  // Correct

var intValue1 = Convert.ToInt32("-52"); // Correct


Hope you getting basic idea for string conversion issue.