Some times we have to use our own Modal binding mechanism in MVC. In MVC default Modal binding machansim is perfect. It binds our modal to posted variables . We can create our custom Modal binder. We can use DefaultModalBinder Or IModalBinder to do that. In following video you can find Custom ModalBinder Using IModalBinder. Custom Modal Binder in MVC Download Source Code Advertisements
Some times Reading Excel files can be bit cumbersome. I needed to allow user to upload excel document and read data from excel file. So I followed following way to get it done. Download source files Video tutorial
So I just created simple but nice menu in code pen using jquery and css. You can find it in below simple amazing popup menu
So when we are in web development we want show Currency value with some formatting. Like thousand separator, decimal separator and currency symbol. I am using below Jquery function to format the currency values. We can format currency value as we required. If we just pass the currency value it will give us value with default formatting. formatCurrency(5873839) will give us ” $5,873,839.00″
So I wanted to integrate Bootstrap according to a website. Then I created enhanced Bootstrap according. Below you can find a Code pen. I think it might help you. Enhanced bootstrap according
So some times we want to read xml file in sql server. I am passing list of details to sql server using xml file format. It reduce several db calls when we passing list of data. Suppose we have List of Students. In List of Student we have to loop it and fire db calls to save data. To overcome this I create xml of List of Student and Pass it to sql server with one db call and then in my stored procedure I will handle those data as follow.
So some times we want to convert object to xml. We can follow severel cumbersome methods. So I am using Utlity methods to convert c# object to xml and xml to c# object. Suppose we have class like below And we want serialize List<Student> to xml. So we can use this utlity function As a example we populate List<student> with dummy data Then call out utility function then out xml variable look like as below