Thursday, 11 December 2014

    How to Display Google Maps Using C#.Net

    Design:
    Open->VS2008/10->FileàNewàprojectàselect Window form Applicationàok
    Create design using controls like Textboxes, Button, Labels and webBrowser1
    Coding
    In search Button Click
    private void button1_Click(object sender, EventArgs e)
            {
                StringBuilder url = new StringBuilder();
                url.Append("https://maps.google.com/maps?q=");

                if (textBox1.Text == "")
                {
                    MessageBox.Show("Enter the Location");
                }
                else if (textBox2.Text == "")
                {
                    MessageBox.Show("Enter the Criteria");
                }
                else
                {
                    url.Append(textBox1.Text + "," + "+");
                    url.Append(textBox2.Text + "," + "+");
                    webBrowser1.Navigate(url.ToString());
                }
            }


Saturday, 27 September 2014

How to insert the values into Database using LINQ


Source Code:


Imports System.Linq


Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Not IsPostBack Then
            Dim db As DataClassesDataContext = New DataClassesDataContext()

            Dim data = From emp In db.registers
                      Select emp

            DropDownList1.DataSource = data
            DropDownList1.DataTextField = "email"
            DropDownList1.DataBind()
        End If
     
    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim db1 As New DataClassesDataContext()

        Dim cust As register = New register()
        cust.fname = TextBox1.Text
        cust.lname = TextBox2.Text
        cust.email = TextBox3.Text
        cust.address = TextBox4.Text
        cust.phnumber = TextBox5.Text
        cust.designation = TextBox6.Text

        db1.registers.InsertOnSubmit(cust)
        db1.SubmitChanges()



    End Sub

    Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click
        Dim db As DataClassesDataContext = New DataClassesDataContext()

        Dim data = From emp In db.registers
                  Select emp

        GridView1.DataSource = data
        GridView1.DataBind()


    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim db1 As New DataClassesDataContext()

        Dim cust = (From reg In db1.registers Where reg.email = DropDownList1.Text).[Single]()


        cust.fname = TextBox1.Text
        cust.lname = TextBox2.Text
        cust.address = TextBox4.Text
        cust.phnumber = TextBox5.Text
        cust.designation = TextBox6.Text

        db1.SubmitChanges()

    End Sub

    Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim db1 As New DataClassesDataContext()

        Dim cust = From reg In db1.registers
                   Where reg.email.Contains(DropDownList1.Text)
        Select reg

        db1.registers.DeleteOnSubmit(cust)
        db1.SubmitChanges()
    End Sub
End Class


Designing




Sunday, 18 May 2014

How to use Java Script [ Client-side Validations ]


Java script is one of the script language.Java script is easy to learn..It is lightwaight object oriented programming language. This javascript is integrated with HTMLs and cross-platform.It works in client side.The JavaScript code is executed when the user submits the form, and only if all the entries are valid they would be submitted to the Web Server. If you want to implement the javascript we are using one tag i.e <script language="javascript"> </script> it is write in header part.

For Source Code Click Here

How to insert the Values From Frontend to Backend in PHP

HTML as Hyper Text Markup Language.It is used for to create the web pages in client side/browser side.HTML is easy to learn.


Create connection file ... conn.php

<?php

define('DB_NAME', 'gk');
define('DB_USER', 'gk');
define('DB_PASSWORD', 'gk123');
define('DB_HOST', 'localhost');
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}

//Select database
$db = mysql_select_db(DB_NAME);
if(!$db) {
die("Unable to select database");
}

?>

For Source Code


Saturday, 17 May 2014

    Image Sliding Effect Using JavaScript


    Source Code: Click Here

How to send the Secret Key to Gmail using Asp.Net with C#.Net

For Source code : Click Here

Wednesday, 30 April 2014

Windows Presentation Foundation [WPF]

Introduction to WPF

WPF is Windows Presentation Foundation,it also introduced in Dotnet 3.0 and higher versions..It is a next generation of presentation system for building desktop [standalone] and web browser applications.
In this we are using one type of namespace is
using System.Windows;

WPF programming is similar to dotnet programming like classes,properties,methods and event handlings.this programming language is in either c#.net or vb.net.

Features:

XAML [Extensible Application Markup Language]
Layouts - controls
Animations --- 2-D, 3-D Graphics
Documents --- Styles,Templates

More Tutorial for WPF


Tuesday, 29 April 2014

How to Build Web Application using Asp.Net

Web Application using asp.net with c#.net

A Web Form is an asp.net technology that we use to create a programmable web page,and we can use code on the server to impliment application logic.

Features
This Web form run on a various browsers automatically render the browser compliant html it is built on the CLR(Common Language Runtime) .
Page Directives
The Page Directives are used to control certain features of page,this directives are called as commands.The compiler executes this directives.These directives can be place at the top.
Example:
<%@ %>
Some Page Directives are:
@page : This is used for to declare many page-related attributes about a particular page.This directive commonly used in asp.net.
Example:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
@import : It is used for to import different types of namespaces in the page.
Example:
<%@Import Namespace="System.Data.SqlClient" %>
@Master : It is similar to the @Page Directive. The only difference is that the @master directive is for Master pages.Any content page can inherit all the properties

Create Web application







Frequently Asked Questions-Sql server Questions & Answers

Here,we are providing a list of frequently asked questions and various programming interviews to developers. I have also shared my answers for these questions for quick revision and easy to understand.

Q) What are the different index configurations a table can have?
A) A table can have different types of index configurations: No indexes , A clustered index , A clustered index and many nonclustered indexes , A nonclustered index , Many nonclustered indexes.

Q) What is constraints?
A) constraints are used to specify rules for the data in a table. It can be specified when the table is created (inside the CREATE TABLE statement) or after the table is created (inside the ALTER TABLE statement). There are following types of constraints.

Unique, Default, Check, Primary Key, Foreign Key, Not Null.
Q) What is Normalization?
A) Database normalization is a data design and organization process applied to data structures based on rules that help building relational databases. In relational database design, the process of organizing data to minimize redundancy is called normalization. Normalization usually involves dividing a database into two or more tables and defining relationships between the tables. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database via the defined relationships.

SqlServer Interview questions

Gridview Operations [ Insert , Delete , Update ] using asp.net with c#.net

Gridview is one of the server-side control.It mostly used in asp.net control that retrieves data from database and shows the total information in the form of table format.Gridview must linked to any DataSource in order to show the data on webpage. SQLDatasource is one of the DataSource that GridView supports. The task of the SQLDataSource is to retrieve the data from SQL server Database.

Click Here For Free Source Code


Monday, 28 April 2014

About Web Services


WebServices is a business object running on web server and providing its functionality to any type of application i.e server to client ...by using SOAP [ Simple Object Access Protocol ] protocol.


Create Web Service;


File-->new--->asp.net empty website--->ok..

after open page--->solution explorer-->add new item-->select web service-->ok

Attach .Mdf file in Sql Server Database

How to attach database data files like .mdf and .ldf files into Sql Server database.

Sunday, 27 April 2014

About Language Integrated Query

Why we are using LINQ?

LINQ means Language Integrated Query.It is data access programming in .Net.LINQ is used to retriving the data from data bases like LINQ to XML, LINQ to SqlServer.
Namespace is : using System.Linq;

This LINQ has different types of components

Linq to Objects : It works with in memory data, that impliments IEnumerable interface

Namespace is : using System.Collections.Generic;
Example for Generate odd numbers:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{

IEnumerable<int> oddNums
= ((ParallelQuery<int>)ParallelEnumerable.Range(20, 2000))
.Where(x => x % 2 != 0)
.Select(i => i);
foreach (int n in oddNums) { Console.WriteLine(n); }
Console.ReadLine();
}

}
}

Frequently Asked Questions-JQuery Questions & Answers

Here,we are providing a list of frequently asked questions and various programming interviews to developers. I have also shared my answers for these questions for quick revision and easy to understand.



Q) What is jQuery ?
A) jQuery is fast, lightweight and feature-rich client side JavaScript Library/Framework. It is used for to create different types of animations, Ajax interaction, manipulate the page content, change the style and provide User Interface effects. It is one of the most popular client side library.

Q) What is the difference between JavaScript , Ajax and JQuery?
A) Javascript is a scripting language . It is dynamic.JavaScript is prototype-based.JavaScript code are all in text.JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that are not achievable with simple HTML.

AJAX is a technique to communicate between the browser and the server within a page. You can manage this interaction with Javascript on the client side, using an XMLHTTP Object provided by the browser. Ajax is a method to dynamically update parts of the UI without having to reload the page.

jQuery is a library which is used for to simplifyclient side web development . It creates a layer of abstracion so you can reuse common languages like CSS and HTML in Javascript. It also includes functions which can be used to communicate with servers very easily (AJAX). 

Saturday, 26 April 2014

Frequently Asked Questions-WCF Questions & Answers

Here,we are providing a list of frequently asked questions and various programming interviews to developers. I have also shared my answers for these questions for quick revision and easy to understand.

Q) What is WCF?
A) Windows Communication Foundation (WCF) is an SDK for developing and deploying services on Windows. It provides a runtime environment for services.It helps in building applications to communicate with each other.
1 . ASP .NET Web services(.asmx)
2. Remoting
3. MSMQ (Microsoft Message Queue)
4. Enterprise Services 

Q) What is the difference between WCF and Web services?
A) WCF has managing distributed programming infrastructures. It offers more flexibility and portability..
WCF supports both http and tcp protocol while webservice supports only http protocol. WCF is more flexible than web service. WCF is combination of WebService, Remoting, MSMQ
Q) What is service and client in perspective of data communication?
A) A service is a unit of functionality exposed to the world. The client of a service is merely the party consuming the service

Q) What are different binding supported by WCF?
A) Basic Binding , TCP Binding , Peer Network Binding , Web Service Binding .

Friday, 25 April 2014

Adrotator Control using Asp.net


Adrotator control is used for to display the advertisements in sequence order.This coding file is in the form of XML format.In this XML we are giving ads..    For Video Tutorials : 


Adrotator Control using Asp.net


Adrotator control is used for to display the advertisements in sequence order.This coding file is in the form of XML format.In this XML we are giving ads

Elements:

Image Url : used for to give the path <ImageUrl>
Alternate Text : To write text message for image <AlternateText>
Navigate Url : used for to navigaet from page to page wher user click on image. <NavigateUrl>

Properties:

AdvertisementFile : we give the xml file path. The XML file that contains ad information.

Source code :  AdRotator

Introduction to ASP.Net

 ASP.NET is a programming framework built on the common language runtime that can be used on a server to build powerful Web applications. ASP.NET offers several important advantages over previous Web development models:

What is ASP.Net web form?

The ASP.NET Web Forms page framework is a scalable common language runtime programming model that can be used on the server to dynamically generate Web pages. 

Intended as a logical evolution of ASP (ASP.NET provides syntax compatibility with existing pages), the ASP.NET Web Forms framework has been specifically designed to address a number of key deficiencies in the previous model.

For more : Asp.Net

Gridview Operations [ Insert , Delete , Update ] using asp.net with c#.net

Gridview is one of the server-side control.It mostly used in asp.net control that retrieves data from database and shows the total information in the form of table format.Gridview must linked to any DataSource in order to show the data on webpage. SQLDatasource is one of the DataSource that GridView supports. The task of the SQLDataSource is to retrieve the data from SQL server Database. 
 More :  Gridview Operations

Working with Gridview Control      for more details


Gridview is one of the server-side control.It mostly used in asp.net control that retrieves data from database and shows the total information in the form of table format.Gridview must linked to any DataSource in order to show the data on webpage. SQLDatasource is one of the DataSource that GridView supports. The task of the SQLDataSource is to retrieve the data from SQL server Database.

For Video Tutorials :  

How to Create the Tables in Database using SqlServer


What is SqlServer?

Sql means Structured Query Language.It is interface of the Relational Database Management System[RDBMS].It is used for to store the client information in server side for providing security to user data.The data is stored in the form of tables. Table is collection rows and columns.In this servers we are using different type of commands like create,insert,update,delete,select,alter.
In SqlServer,we are providing security to database by using 2 types of authentications.
1)Windows Authentication: it doesnot Provide the security to database.Every user can use this database directily.
2) Server Authentication: By using this authentication, Only perticular user can access this database.it provides the security to data on userid and password.

Introduction

PHP means PHP(Personal Home Page) Hypertext Pre-processor..Php is open source code.It is a server-side scripting language, and is powerful tool making the dynamic web pages.This server-sidescripts are special commands you must place in Web pages. PHP is html embedded script language,it is the common syntax like c,java..It is vary easy to design the web page and to reduce the time to create the large web pages.It is widely-used as an alternate to ASP.PHP is interacts with number of databases like mysql, sqlserver, oracle.It is simple,efficience,flexible to learn.