Section - A Answer Any FOUR Questions
Section - A Answer Any FOUR Questions
Section - A Answer Any FOUR Questions
It is used to get or set name of the current DataSet. It is used to get a custom view
of the data contained in the DataSet to allow filtering and searching.
The parentElement property returns the parent element of the specified element.
SECTION -B
SqlDataAdapter: This class fills a DataSet or DataTable with data from a SQL
Server database.
Methods: Fill(), Update()
System.Xml.Xsl
Contains classes that provide support for XSLT transformations
System.Xml.XPath
Contains classes that provide support for executing XPath queries
System.Xml.Schema
Contains classes that provide standards-based support for W3C XML schemas
System.Xml.Serialization
Contains classes that are used to serialize and de-serialize .NET Framework
objects to and from XML
Syntax
Namespaces are declared using the namespace keyword.
namespace namespace-name {}
Namespace Example
namespace FirstNamespace
{
class Test
{
public void ShowMessage()
{
Console.WriteLine("This is the first namespace!");
}
}
}
SECTION -C
→In this case we do not require a continuous connection with the Data Source
for accessing data.
→Here the “DataSet” class holds the data in the client machines.
using System;
using System.Web;
namespace CookieManagementDemo
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.Cookies["username"] != null)
{
cookie.Value = txtUsername.Text;
cookie.Expires = DateTime.Now.AddDays(7);
Response.Cookies.Add(cookie);
pnlForm.Visible = false;
}
pnlForm.Visible = true;
}
}
}