Wednesday, 21 February 2018

Data Render Using Razor

Display Student Record on cshtml page in table using Razor


@model IEnumerable<Britanic_MIS.Models.InvoiceModel>
<table >
        <thead>
            <tr><th>Roll</th><th>Name</th><th>City</th></tr>
        </thead>
        <tbody >
                 
                @foreach (var item in Model)
                {

MVC Data Reader with Razor


Store Procedure


USE [Girfa_StudentDB]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
alter proc [dbo].[GetStudentList]
AS
BEGIN
     SET NOCOUNT ON;
           select roll,name,city from dbo.Student

     SET NOCOUNT OFF;
END


Model


public class StudentModel

Saturday, 17 February 2018

OSI Layer C Graphics

OSI Layer C Graphics

Amazing OSI layer animation using c language graphics programming 




/*==============================
     Girfa Student Help
     Program : OSI Layer Using C Graphics
     More Program : http://girfahelp.blogspot.in/p/graphics-c-language.html
     Coder : Mayank Khare,BCA
================================*/
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#define x 1000
int main(void)
{
   /* request auto detection */
   int gdriver = DETECT, gmode, errorcode;
   int xmax, ymax,i;

   /* initialize graphics and local variables */
   initgraph(&gdriver, &gmode, "");

   /* read result of initialization */
   errorcode = graphresult();

Friday, 16 February 2018

Get Data from server MVC C# ajax application

$ajax({
    url: '/Student/Show/',
    dataType: "json",
    type: "GET",
    contentType: 'application/json; charset=utf-8',
    data: { id: $("#txtroll").val() },
    success: function (data) {
        var html="";
            $j.each(data, function (i, item) {

                html += "<tr><td>" + item.roll + "</td><td>" + item.Name + "</td><td>" + item.city + "</td></tr>";