INSERT,UPDATE,DELETE IN WINDOWS COMMUNICATION FOUNDATION

INSERT,UPDATE,DELETE IN WCF

Visual studio 2008àfileànewàprojectàwcfservicesà

WCF SERVICES HAVE TWO PAGES:
1.SERVICE.CS
2.ISERVICE

SERVICE.CS:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
using System.Data.SqlClient;

WINDOWS COMMUNICATION FOUNDATION

BASIC OF WINDOWS COMMUNICATION FOUNDATION.


            WCF communicate any technology and all channels(http,tcp).
             Wcf have services,endpoints and binding.

Services:

The services is basically written on .net language. which contain some methods.that are exposed through wcf services.

Endpoints:

       
A service may have one or more endpoints.endpoint is responsibe for communication for service to the client.
     endpoint is A,B,C

CAPTCHA CREATION

CAPTCHA CREATION



captcha.aspx


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="captcha.aspx.cs" Inherits="captcha" %>

HOW TO CREATE A CAPTCHA IN FORM USING C#

HOW TO CREATE A CAPTCHA IN FORM USING C#



Registration.aspx


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="Registration" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

HOW TO GET A RANDOM VALUE IN BUTTON CLICK

HOW TO GET A RANDOM VALUE IN BUTTON CLICK

random.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="random.aspx.cs" Inherits="random" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
    </div>
    <asp:TextBox ID="TextBox1" runat="server" ToolTip="RANDOM VALUE"></asp:TextBox>
    <asp:Button ID="Button1"
        runat="server" Text="Button" onclick="Button1_Click" />
    </form>
</body>
</html>

SENDING MAIL USING C#

SENDING MAIL USING C#

email.aspx


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="email.aspx.cs" Inherits="email" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table >
    <tr><td><asp:Label ID="labto" runat="server" Text="To"></asp:Label></td><td>:</td><td><asp:TextBox ID="txtto" runat="server" ></asp:TextBox></td></tr>
    <tr><td><asp:Label ID="labsub" runat="server" Text="Sub"></asp:Label></td><td>:</td><td><asp:TextBox ID="txtsub" runat="server" ></asp:TextBox></td></tr>
    <tr><td><asp:Label ID="labmsg" runat="server" Text="Message"></asp:Label></td><td>:</td><td><asp:TextBox ID="txtmsg" runat="server" ></asp:TextBox></td></tr>
   
    </table>
    </div>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    </form>
</body>
</html>


MOVE DATAS FROM ONE GRIDVIEW ROWS TO ANOTHER GRIDVIEW IN ASP.NET

MOVE DATAS FROM ONE GRIDVIEW ROWS TO ANOTHER GRIDVIEW IN ASP.NET


grid.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="groid.aspx.cs" Inherits="groid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">