Академический Документы
Профессиональный Документы
Культура Документы
Answer: Here I have taken information regarding Share Point Portal Server 2003 provides mainly
access to the crucial business information and applications.With the help of Share Point Server we
can server information between Public Folders, Data Bases, File Servers and the websites that
are based on Windows server 2003. This Share Point Portal is integrated with MSAccess and
Windows servers,So we can get a Wide range of document management functionality. We can
also create a full featured portal with readymade navigation and structure.
Question:-How to call method that handles the Click event for several buttons ?
Answer: Protected Sub AnyClicked(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Button1.Click, Button2.Click, Button3.Click
Dim b As Button = CType(sender, Button)
Response.Write("You clicked the button labeled " & b.ID) End Sub
Question:-Can you define what is SharePoint and some overview about this ?
Answer: SharePoint helps workers for creating powerful personalized interfaces only by dragging
and drop pre-defined Web Part Components. And these Web Parts components also helps non
programmers to get information which care and customize the appearance of Web pages. To
under stand it we take an example one Web Part might display a user's information another might
create a graph showing current employee status and a third might show a list of Employees
Salary. This is also possible that each functions has a link to a video or audio presentation.So now
Developers are unable to create these Web Part components and make them available to
SharePoint users.
Question:-What is Sandbox in SQL server and explain permission level in Sql Server ?
Answer: Sandbox is place where we run trused program or script which is created from the third
party. There are three type of Sandbox where user code run.
Safe Access Sandbox:-Here we can only create stored procedure,triggers,functions,datatypes
etc.But we doesnot have acess memory ,disk etc.
External Access Sandbox:-We cn access File systems outside the box. We can not play with
threading,memory allocation etc.
Unsafe Access Sandbox:-Here we can write unreliable and unsafe code.
Use the View State property to save data in a hidden field on a page. Because ViewState stores
data on the page, it is limited to items that can be serialized. If you want to store more complex
items in View State, you must convert the items to and from a string.
ASP.NET provides the following ways to retain variables between requests:
Context.Handler object Use this object to retrieve public members of one Web form’s class from
a subsequently displayed Web form.
Query strings Use these strings to pass information between requests and responses as part of
the Web address. Query strings are visible to the user, so they should not contain secure
information such as passwords.
Cookies Use cookies to store small amounts of information on a client. Clients might refuse
cookies, so your code has to anticipate that possibility.
View state ASP.NET stores items added to a page’s ViewState property as hidden fields on the
page.
Session state Use Session state variables to store items that you want keep local to the current
session (single user).
Application state Use Application state variables to store items that you want be available to all
users of the application.
Programmers understand that they're responsible for releasing any memory that they allocate, but
they're not very good at actually doing it. In addition, functions that allocate memory as a side
effect abound in the Windows API and in the C runtime library. It's nearly impossible for a
programmer to know all of the rules. Even when the programmer follows the rules, a small memory
leak in a support library can cause big problems if called enough.
The .NET Framework solves the memory management problems by implementing a garbage
collector that can keep track of allocated memory references and release the memory when it is no
longer referenced. A large part of what makes this possible is the blazing speed of today's
processors. When you're running a 2 GHz machine, it's easy to spare a few cycles for memory
management. Not that the garbage collector takes a huge number of cycles--it's incredibly
efficient.
The garbage collector isn't perfect and it doesn't solve the problem of mis-managing other scarce
resources (file handles, for example), but it relieves programmers from having to worry about a
huge source of bugs that trips almost everybody up in other programming environments.
On balance, automatic memory management is a huge win in almost every situation.
Question: What is Ref Cursor in .NET and how it is link with ExecuteReader ?
Answer: Ref cursor play its role when doing with the oracle database these comes in ODP.NET.
Ref Cursors are objects that link to Oracle server-side cursors.These Ref Cursor can be converted
in oracle datareader with this Ref cursor we can get result with query written to pl/sql and the result
can be get in .net.Now the question arise why we use Ref Cursor when we have an option of
ExceuteReader reson is simple when we need more query in pl/sql means our work is done in
pl/sql then we need this ref cursor for getting result set because doennot have direct connection to
that table.Becasue advantage of pl/sql we can take two opertion in one query.
dr= cmd.ExecuteReader(CommandBehavior.CloseConnection);
The associated connection will be closed automatically when the Close method of the Datareader
is called. This makes it all the more important to always remember to call Close on your
datareaders.
Question:-Which method do you invoke on the DataAdapter control to load your generated
dataset with data?
Answer: The Fill() method.
Question:-What are good ADO.NET object(s) to replace the ADO Recordset object?
Answer: There are alot...but the base once are SqlConnection, OleDbConnection, etc...
Question:-Can you explain the difference between an ADO.NET Dataset and an ADO
Recordset?
Answer:Valid answers are:
• A DataSet can represent an entire relational database in memory, complete with tables,
relations, and views.
• A DataSet is designed to work without any continuing connection to the original data
source.
• Data in a DataSet is bulk-loaded, rather than being loaded on demand.
• There's no concept of cursor types in a DataSet.
• DataSets have no current record pointer You can use For Each loops to move through the
data.
• You can store many edits in a DataSet, and write them to the original data source in a
single operation.
• Though the DataSet is universal, other objects in ADO.NET come in different versions for
different data sources.
Question: Can you define basic element of WebServices and explain any one from them?
Answer: These are as follows SOAP, WSDL and UDDI. And I am explaining about the
SOAP(Simple Object Access Protocol) it is a communication protocol it is for communication
between application it is platform and language independent.It is based on XML and also help to
get from Firwall.
Http-Post:-This is same as Http-Get but the diffrence is that in place of sending parameters onto
the URL information is send with HTTP request message with some extra information which
contains Parameters and their values.This Protocols is limited to sending name/value
pairs.SOAP:-The only diffrence is that its relies on the XML as compares to Http-Get,Http-
Post.SOAP can send not only the name/value pairs but also some complex object also as for
example datatypes,class,objects.SOAP can also uses request/reponse model as Http-Get,Http-
post but it is not limited to Request/Response it can also send types of message.Because its uses
XML that is pure text so firewalls not created so much problem because its easily converted in to
HTML. .
Question: How .NET and non .NET component communicate with each other when they are
on different platform?
Answer: In past when we have to communicate .NET with non .NET component we are using
COM component this component helps in doing this. At the moment we are using in both apps a
COM component that has an intermediary Windows service running on one machine. But this
component is quite old and not in use now because it will create a problem when we are using
firewall. So to handle this we use Web-Services which really have a solution for Firewall.
Question: Why do some web service classes derive from System.Web.WebServices while
others do not ?
Answer: Those asp net Web Service classes which employ objects like Application, Session,
Context, Server, and User have to derive from System.Web.WebServices. If it does not use these
objects, it is not necessary to be derived from it.
Question: What is the standard you use to wrap up a call to a Web service ?
Answer: HTTP with SOAP.
Question: Is it possible to generate the source code for an ASP.NET Web service from a
WSDL ?
Answer: The Wsdl.exe tool (.NET Framework SDK) can be used to generate source code for an
ASP.NET web service with its WSDL link.
Example: wsdl /server http://api.google.com/GoogleSearch.wsdl.
Question: Can you give an example of when it would be appropriate to use a web service as
opposed to a non-serviced .NET component ?
Answer: When to Use Asp Net Web Services:
(i)Communicating through a Firewall When building a distributed application with 100s/1000s of
users spread over multiple locations, there is always the problem of communicating between client
and server because of firewalls and proxy servers. Exposing your middle tier components as Web
Services and invoking the directly from a Windows UI is a very valid option.
(ii)Application Integration When integrating applications written in various languages and running
on disparate systems. Or even applications running on the same platform that have been written
by separate vendors.
(iii)Business-to-Business Integration This is an enabler for B2B intergtation which allows one to
expose vital business processes to authorized supplier and customers. An example would be
exposing electronic ordering and invoicing, allowing customers to send you purchase orders and
suppliers to send you invoices electronically.
(iv)Software Reuse This takes place at multiple levels. Code Reuse at the Source code level or
binary componet-based resuse. The limiting factor here is that you can reuse the code but not the
data behind it. Webservice overcome this limitation. A scenario could be when you are building an
app that aggregates the functionality of serveral other Applicatons. Each of these functions could
be performed by individual apps, but there is value in perhaps combining the the multiple apps to
present a unifiend view in a Portal or Intranet.
Question:-What is Channels ?
Answer: Remote objects are accessed through Channels. Channels physically transport the
messages to and from remote objects. There are two existing channels TcpChannel and
HttpChannel. Their names give away the protocols that they use. In addition, the TcpChannel or
HttpChannel can be extended, or a new channel created if you determine the existing channels do
not meet your needs.
The .NET Remoting system, as an integral part of the .NET Framework, supports full .NET type
system fidelity. You can pass any object across the wire to a client. This is in contrast to ASP.NET,
which is limited to data types that can be expressed with WSDL and XSD.
Question:-What is Abstract ?
Answer: .NET Remoting provides a powerful and high performance way of working with remote
objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the
network without the overhead posed by SOAP based WebServices. .NET Remoting is easier to
use than Java's RMI, but definately more difficult than creating a WebService.
Before we get into the nuts and bolts of how Remoting works and how to write programs that take
advantage of it, you need to understand some basic Remoting concepts.