Amit Panchal

Amit Panchal

Co-Founder,

Amitech Business Solutions

All Events

Textify

23 December 2011

Dynamically add conditions in linq

Written by Amit Panchal, Posted in Blog

Dynamically apply filters on multiple columns in your linq query with the help of PredicateBuilder class

Sometimes you may want to put "where" conditions in your LINQ query based on some criteria. You want to add dynamically filters in your query based on some conditions.

For ex. I have a table named tbl_Listings which has lots of columns like city, address, postal code, state, listing price, bathroom, bedroom, etc.

Now i want to query all the records if user has not specified any filter. I want to filter city column only if the user has specified city name in the search filter.

 

17 August 2010

Asynchronous File Upload in Asp.net using C# jquery Uploadify

Written by Amit Panchal, Posted in Blog

You might have a need for uploading files asynchronously in asp.net using c# with jquery.
here i will give u the best tutorial to do this.
You will need to download the jquery pluggin this.download this pluggin from here.
http://www.uploadify.com/download/
after u download this file extract this folder and rename it to uploadifyand put...

 

07 August 2010

Running specific JavaScript after partial postback (update panel)

Written by Amit Panchal, Posted in Blog

It is very easy to register a new javascript after postback, but if u are using a update panel and want to register a new javascript after a partial postback then you must use the different way then u use in first case.
Here is the code to solve that issue.

 

31 July 2010

Caching output in asp.net to improve perfomance

Written by Amit Panchal, Posted in Blog

Hello friends,
this post is to explain how to use caching in asp.net to improve performance of application.
whenever you make any function in your asp.net application you need to code it in the following way

 

29 July 2010

Automatics email sending using windows service

Written by Amit Panchal, Posted in Blog

Hello friends,
we have seen so many web application which sends us emails notification at some regular time.
eg. if ur subscription is about to expire the system automatically notifies you by a mail.
it is very easy to do using windows service and web service.
to start first creat a web service in your asp.net project.
it will add filename.asmx ans...

 

29 July 2010

Root Finding or finding Inverse function

Written by Amit Panchal, Posted in Blog

Hello Friends,
In this post i will explain you how to get the inverse of a function or how to find the root of a function.
suppose there is a function y=f(x)
and you want the value of x when the y is 0 or something else.
you can find this solution using Numerical analytical mathamatics.
to use this algorithms.
download the source code from CodeProject
in...

 

29 July 2010

HTML to pdf

Written by Amit Panchal, Posted in Blog

Hello friends,
i have searched a lot for exporting my webpage to pdf at server side and give option to download the web page in pdf format.
i found one component very interesting
http://www.winnovative-software.com/
this component takes url and export it to pdf but the problem is that it is too costly for me.
so i found another open source component.
htt...

 

29 July 2010

Modification to flot chart component

Written by Amit Panchal, Posted in Blog

Hello friends,
flot is very good and flexible component to use for graphs and charts.
you can download the flot component from here.
this flot component provides bar chart and line chart.
line chart works fine but in bar chat you can display only two series of data.because it has only two option to align the data. left and center. if you have some...

 

23 April 2010

How to send values from one aspx page to another aspx page using post method

Written by Amit Panchal, Posted in Blog

Problem:
How to send values from one aspx page to another aspx page using "post method"
Solution:
Create a class named RemotePost.vb
and add the following code in that class

 

23 April 2010

Validation of viewstate MAC failed

Written by Amit Panchal, Posted in Blog

Hello Friends
i was getting the error in my asp.net application like this
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
i googled it and got 791 results.
i tried every possible...

 

23 April 2010

Paging in repeater,datalist or datagrid c#

Written by Amit Panchal, Posted in Blog

Hello Friends,

if u want to use pagging in asp.net controls, i have the simplest method for it.