Saturday, 26 January 2019

Pascal Triangle

Q: Write a program to make pascal triangle ?

Answer :

Pascal Triangle :

Pascal's Triangle is more than just a big triangle of numbers. There are two major areas where Pascal's Triangle is used, in Algebra and in Probability / Combinatorics.


Rule 

Wednesday, 23 January 2019

Get multiple list using single object

MVC transfer data from controller to list in the form of list. If a page needs to load multiple lists using razor then you will have to wrap multiple lists into single object list. Following code will help you to accomplish this.

Modal


public class MarketingStaffModal
   {
      public string  ID  {get;set;}
       public string Name {get;set;}
      

   }

Monday, 21 January 2019

Jquery Radio button operations

Jquery Radio button operations

Check selected radio button


HTML


<input type="radio" value="Active" checked name="rdostatus" />Active

Friday, 18 January 2019

HTML inside if

HTML example for Radio button  inside of if-else using C# MVC

Code :



  @if(@Model.Status=="1")
  {
       @:<input type="radio" value="Active" checked name="rdostatus" />Active