Vasavi College of Engineering
Vasavi College of Engineering
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
con.Open();
}
protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
{
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
Sno
<asp:TextBox ID="T1" runat="server"></asp:TextBox>
<br />
Sname<asp:TextBox ID="T2" runat="server"></asp:TextBox>
<br />
Branch<asp:TextBox ID="T3" runat="server"></asp:TextBox>
<br />
<asp:Button ID="B1" runat="server" EnableTheming="False"
onclick="Button1_Click" Text="Submit" Width="91px" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
onselecting="SqlDataSource1_Selecting"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
SelectCommand="SELECT * FROM "STUDENT""></asp:SqlDataSource>
</form>
</body>
</html>
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService" in both
code and config file together.
[ServiceContract]
public interface IService
{
[OperationContract]
int adder(int val1, int val2);
[OperationContract]
string GetData(int value);
[OperationContract]
CompositeType GetDataUsingDataContract(CompositeType composite);
[DataMember]
public bool BoolValue
{
get { return boolValue; }
set { boolValue = value; }
}
[DataMember]
public string StringValue
{
get { return stringValue; }
set { stringValue = value; }
}
}
VASAVI COLLEGE OF ENGINEERING
(Affiliated to Osmania University)
Hyderabad - 500 031.
DEPARTMENT OF : Computer Science and
engineering
NAME OF LABORATORY : Web Programming and
Networking
Name Roll No.
Page No
Wcf service
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service" in code, svc
and config file together.
public class Service : IService
{
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ServiceReference1;
}
protected void Button1_Click(object sender, EventArgs e)
{
int a = Convert.ToInt32(TextBox1.Text);
int b = Convert.ToInt32(TextBox2.Text);
</body>
</html>
Square.jsp