Thursday 5 April 2018

Structure sorting,searching with array

Define a structure that describes a hotel. It should have members that include the name, address, grade, average room charge and number of rooms.

Write a function to perform the following tasks.

i) To print all hotels details of a given grade in order of charges.
ii) To print hotel details with room charges less than given values.

Solution :
/********************************
     Program : Structure sorting,searching with array
     for more program visit :http://girfahelp.blogspot.in/p/c-language-structure-programming.html
**********************************/
#include<stdio.h>
#include<conio.h>
#include<string.h>
#define MAX 10
typedef struct ht
{
     char name[30];
     char address[40];
     char grade;
     int room;
     int charge;
}hotel;
void input(hotel*,int);
void print(hotel *);
void printbyRate(hotel *,int,int);
void printByGrade(hotel *str,char,int s);
void main()
{
     int i,opt,rate;
     hotel rec[MAX];
     char ch;
     clrscr();
     printf("How many record you want to insert>> ");
     scanf("%

Thursday 29 March 2018

Get Single value from database using ajax



Store Procedure


USE [Girfa_StudentHelp]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER proc [dbo].[GetPhone]
(
   @id int

Thursday 22 March 2018

Get Data from server Using ajax

Target Audience


Beginners who are learning C# MVC and want to get record from SQL server to browser using jquery  ajax.

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

View

<input type="button" value="Get Data" onclick="GetData()"/>
<table>
    <thead>

Tuesday 20 March 2018

Internet & Web design Sample paper set 2

I
Internet & Web Design

Time: 1 hour                                                                                           Name: ______________

Note: All question of part-1 is mandatory and each question is carrying one marks. 2 questions are compulsory out of 4 from part-2.

(Part one)
Multiple Choices

1.  Effectiveness of data communication is depend on
a)      Delivery   b) Accuracy   c)Timeliness   d)All

2. Which of the following is not considered as network performance criteria?
a) Performance    b) Reliability   c)Security   d) Brand

3. Application of data communication is
a) Marketing & Sales   b)Manufacturing c) EDI  d) All