<h4>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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">
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
<table>
<tr>
<td>
<asp:WebPartZone ID="MainZone" runat="server" HeaderText="My WebPart Zone">
<ZoneTemplate>
<asp:Label ID="Label1" runat="server" Title="Content">
<h2>Welcome to my Webparts world</h2>
</asp:Label>
</ZoneTemplate>
</asp:WebPartZone>
</td>
</tr>
</table>
</form>
</body>
</html>
</h4>
<a href="http://www.codecollege.NET">www.codecollege.NET</a>
Showing posts with label LINQ. Show all posts
Showing posts with label LINQ. Show all posts
ASP.NET Webpart basic sample
Tuesday, October 6, 2009
Labels:
.NET 3.0,
.NET 3.5,
asp.net,
c#.net,
Example Codes,
Interview Questions and Answers,
LINQ
LINQ Basic Sample with arrays
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LINQSamp1
{
class Program
{
static void Main()
{
int[] ages = { 47, 45, 53, 57,44,63,66 };
IEnumerable seniorcitizen =
from n in ages
where n >50
select n;
foreach (var x in seniorcitizen)
Console.Write("Senior Citizen aged:{0}\n", x);
Console.Read();
}
}
}
from n in ages
where n >50
select n;
foreach (var x in seniorcitizen)
Console.Write("Senior Citizen aged:{0}\n", x);
Console.Read();
}
}
}
www.codecollege.NET
Labels:
.NET 3.0,
.NET 3.5,
c#.net,
Example Codes,
Interview Questions and Answers,
LINQ
What are the disadvantages of LINQ over Stored Procedures ?
Thursday, August 13, 2009
1.Network traffic: LINQ needs to send the entire query over the network whereas the SP need only to send sproc-name and argument.
2.Control over DB: LINQ has lesser control over DB compared to SPs as they run within the DB.
www.codecollege.NET
Labels:
.NET 3.0,
.NET 3.5,
Interview Questions and Answers,
LINQ,
SQL Server
What are the important extensions of LINQ ?
Friday, July 31, 2009
The following are the important extensions to LINQ:
1. LINQ to Object
2. LINQ to SQL
3. LINQ to XML
4. LINQ to DataSet
www.codecollege.NET
Labels:
.NET 3.5,
Interview Questions and Answers,
LINQ
What is LINQ ?
LINQ (Language Integrated Query) is a set of language extensions using which you can perform query,set and tranform operations. It extends C# or VB.NET with syntax for queries and provides class libraries to use these features.
www.codecollege.NET
Labels:
.NET 3.0,
c#.net,
Interview Questions and Answers,
LINQ,
vb.net
What are the key features of .NET 3.5?
Monday, July 27, 2009
Labels:
.net,
.NET 3.5,
AJAX,
Interview Questions and Answers,
LINQ
Subscribe to:
Posts (Atom)