ASP.NET 2.0 Interview Preparation Guide Download PDF
ASP.NET 2.0 Interview Questions and Answers will guide us that ASP.NET 2.0 introduced the concept of master pages, which allow for template based page development. A web application can have one or more master pages, which, beginning with ASP.NET 3.5, can be nested. Master templates have place holder controls, called ContentPlaceHolders to denote where the dynamic content goes, as well as HTML and JavaScript shared across child pages. Learn more with ASP.NET 2.0 Interview Questions with Answers
87 ASP.NET 2.0 Questions and Answers:
1 :: How to rename a table using sql queries?
This done by
exec sp_rename 'oldTableName' , 'newTableName'
Use server side for secure validation. Use client side for fast,user friendly validations.
Execute sp_rename 'oldtablename', 'newtableaname'
exec sp_rename 'oldTableName' , 'newTableName'
Use server side for secure validation. Use client side for fast,user friendly validations.
Execute sp_rename 'oldtablename', 'newtableaname'
2 :: Can a .NET web application consume Java web service?
Yeah Offcourse.Actually Webservices are independent to language. it depends on WSDL and SOAP. so any one can develope the Webservices anddisclose the wsdl and users can cosume the webservices.wsdl and soap both are xml based.. and all languages having xml parsing capability and access to http protocol will be able to work with Webservices
3 :: How many types of cookies are available in asp?
There are 2 types of cookies
Persistent and Non-persistent
there are 2 types they are
1. inmemory cookies
2. persistent cookies
Persistent and Non-persistent
there are 2 types they are
1. inmemory cookies
2. persistent cookies
4 :: Explain How is a property designated as read-only?
Using Get Accessor
Public ReadOnly property item() as integer Get() Return.item End Get End Property
Public ReadOnly property item() as integer Get() Return.item End Get End Property
5 :: Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
DisplayMember and ValueMember Properties need to be set.
DataTextField and DataValueField Property neeeds to be set
DataTextField and DataValueField Property neeeds to be set
6 :: What tags do you need to add within the asp: datagrid tags to bind columns manually?
<asp:TemplateColumn>
<HeaderTemplate >
Somename
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container, "DataItem.columnname") %>
</ItemTemplate>
</asp:TemplateColumn>
<HeaderTemplate >
Somename
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container, "DataItem.columnname") %>
</ItemTemplate>
</asp:TemplateColumn>
8 :: Explain What does WSDL stand for?
Web Services Description Language
9 :: What is the transport protocol you use to call a Web service SOAP?
Web service use only three types of protocal. first HTTP-GET,HTTP-POST and SOAP.
Web Services Description Language
Web Services Description Language
10 :: Which method do you use to redirect the user to another page without performing a round trip to the client?
Server.Transfer
11 :: What is the standard you use to wrap up a call to a Web service?
We use Soap standard to wrap calls to web service.Soap stands for Simple Object Access Protocol
12 :: What tag do you use to add a hyperlink column to the DataGrid?
HyperLink Column
Template column
Template column
13 :: How do you remove duplicates without using remove duplicate stage?
In the target make the column as the key column and run the job.
delete table tablename where rowid not in Select * from tablename group by column name
delete table tablename where rowid not in Select * from tablename group by column name
14 :: can u explain one critical mapping?
performance issue which one is better? whether connected lookup tranformation or unconnected one?
It depends on your data and the type of operation your doing.
If you need to calculate a value for all the rows or for the maximum rows coming out of the source then go for a connected lookup.Or,if it is not so then go for unconnectd lookup.Specially in conditional case like,we have to get value for a field 'customer' from order tabel or from customer_data table,on the basis of following rule:
If customer_name is null then ,customer=customer_data.ustomer_Id
otherwise
customer=order.customer_name.
So in this case we will go for unconnected lookup
If you need to calculate a value for all the rows or for the maximum rows coming out of the source then go for a connected lookup.Or,if it is not so then go for unconnectd lookup.Specially in conditional case like,we have to get value for a field 'customer' from order tabel or from customer_data table,on the basis of following rule:
If customer_name is null then ,customer=customer_data.ustomer_Id
otherwise
customer=order.customer_name.
So in this case we will go for unconnected lookup
15 :: What is Difference between DataList and GridView?
Gridview can display based on various colums avl in an single query or table. Also can customize it while can sort, edit, delete, insert. Datalist is a data bound list control that displays items using templates. Mainly it is all control bound.
DataList is using to list of all data in tree structure GridView is using to list of all value in table format
DataList is using to list of all data in tree structure GridView is using to list of all value in table format
16 :: What is different in .Net 1.1 and .Net 2.0?
The main difference is that we can add more control over 1.1 for ex we can do master page,themes and generic classes we use 2.0 it can be comes for to add gridview
Concept of partial classes in .NET 2.0
Concept of partial classes in .NET 2.0
17 :: Which two properties are on every validation control?
ControlToValidate property and Text property
This is done explicitly by adding the below code Response.Cookies("Name") = "myCookie"
Response.Cookies("Name").Expires = DateAdd("m", 1, Now());
ErrorMessage and ControlToValidate
This is done explicitly by adding the below code Response.Cookies("Name") = "myCookie"
Response.Cookies("Name").Expires = DateAdd("m", 1, Now());
ErrorMessage and ControlToValidate
18 :: How do you turn off cookies for one page in your site?
By setting the Cookie.Discard property false
cookie.discard=false
cookie.discard=false
19 :: What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
You must set the DataSource property and call the DataBind method
20 :: In what order do the events of an ASPX page execute. As a developer is it important to understand these events?
1. Object Initialization
2. Load Viewstate Data
3. LoadPostData Processes Postback Data
4. Object Load
5. Raise PostBack Change Events
6. Process Client-Side PostBack Event
7. Prerender the Objects
8. ViewState Saved
9. Render To HTML
10. Disposal
2. Load Viewstate Data
3. LoadPostData Processes Postback Data
4. Object Load
5. Raise PostBack Change Events
6. Process Client-Side PostBack Event
7. Prerender the Objects
8. ViewState Saved
9. Render To HTML
10. Disposal