|
|
best fitness tracker under 2000
et the best fitness band and fitness tracker just in 2000. Here you can buy the
best fitness tracke
|
How to find controls in content page from another content page in asp.net
his article explains how we can find the controls from content page to content. First we will find t
|
How to remove the decimals from price datatype
ith below syntax, we can remove the decimals from price datatype.
<%# Eval("Price").ToS
|
ADO.NET interview questions: - Various ways to implement optimistic locking in ADO.NET.
This is one of the ADO.NET interview questions asked in the interview. Answer this question with the simple steps as follows.
Ways to implement optimistic locking using ADO.NET: -
When we call “Update” method of Data Adapter it handles locking internally. If the Dataset values are not matching with current data in Database, it raises concurrency exception error. We can easily trap this error using Try. Catch block and raise appropriate error message to the user.
Define a Dat
|
.NET/ASP.NET interview Questions - With the help of LINQ do simple insert, update and delete.
Answer:
Let us assume that we have the following table of Student with their
respective fields.
StudentId
int
StudentName
nvarchar(50)
StudentAdd
nvarchar(50)
First open visual studio > New > project > select ASP.NET empty web
application.
Add > New item > select Web Form and create a simple form like below.
&nb
|
.NET and ASP.NET interview Question - Define Threading and how to implement it?
Untitled Document
Threading is a parallel processing unit and helps you to access multiple tasks at a one moment of time. When we want to access parallel processing in our application we use Threading.
In order to use threading we first have to import System.Threading namespace in our application like below code.using System.Threading;
Below is the simple class in which I have defined two functions as Fun1 and Fun2.i have also created a DoTest function with an instance of th
|
how to save session in sql server - SqlSessionStateStore
SqlSessionStateStore: Follow below steps:
To add session in sql server.
Open w
|
.NET/ASP.NET Interview Question -Can you explain SOAP ?
Answer:
SOAP (Simple Object Access Protocol) is a standard XML format for
communicating between Server and Client in WebService.
The below diagram depicts an simple request and response using SOAP.
Please click here to see more .NET/ASP.NET
interview questions
Regards,
Visit Authors blog for more
.NET/ASP.NET interview questions
|
.NET/ASP.NET Interview Question - Explain WebService and how does it differ from Remoting?
Answer:
WebServices is a cross platform where we can invoke object which are lying on
different server or different georphical location.
Both WebService and Remoting are used for same Purpose but the difference in
Remoting is that both the server and client should be .NET platform while in
WebService the server and client can be in different platform.
Remoting is faster than WebService.
WebService can be access only through http protocol but Remoting can access
|
.NET/ASP.NET Interview Question - Can you explain remoting?
Answer:
Remoting is a .NET technology where we can invoke objects which are lying on
different server or different geographical location.
Below is the diagram shows the concept of Remoting.
In the above diagram, a client which is located in India want to access object
of .NET class from the server which is located in US, So this can be done by
Remoting.
Please click here to see more .NET/ASP.NET
interview questionsa
Regards,
V
|
.NET/ASP.NET Interview Question -Validate a Controls in ASP.NET page using JavaScript?
Answer: Let's see an Simple example to understand.
Assuming that we have a Textbox and Button on the ASP.NET page like
below.
<asp:TextBox ID="txtName" runat="server"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="return validate()" />
Now, Add the below code snippet on the page source.
<script language="javascript" type="text/javascript"> function ValidateTextBox() { &n
|
WCF Interview Question - Name and explain types of security in WCF?
Answer:
In WCF there are two types of Security, transport level security and
message level security.
Transport Security: Transport level security happens at the channel level.
Transport level security is the easiest to implement as it happens at the
communication level. WCF uses transport protocols like TCP, HTTP, MSMQ etc and
every of these protocols have their own security mechanisms. One of the common
implementation of transport level security is HTTPS. HTTPS is imp
|
WCF Interview Question -Can you distinguish between Basic httpbinding and WShttpbinding?
Answer:
Basic Httpbinding:In httpbinding Data is sent as a plain text.In other
words,there is no security provided for the message when the client calls
happen.
This is aimed for clients who do not have .NET 3.0 installed and it supports
wider ranges of clients. Many of the clients like Windows 2000 still do not run
.NET 3.0. So older version of .NET can consume this service.
It uses SOAP1.1 version.
WShttpbinding:As WsHttBinding supports WS-*, it has WS-Security enabled by
|
WCF Interview Question - What is WCF?
lt;p><b>Answer: </b> <br /> <p>WCF is a unification technology, whi
|
WCF Interview Question - What are Service Contract,Operation Contract and Data Contract?
Answer:
Service Contract:-Service Contract is used to define the service name.
Operation Contract:-Operation contract defines the methods in the services.
Data Contract:-Data contract defines custom data types in the services.
Please click here to see more WCF
interview questions
Regards,
Visit Authors blog for more
WCF interview questions
|
.NET/ASP.NET Interview Question -What is Viewstate?
Answer:
ViewState is a state management technique build in ASP.NET.
ViewState basically maintains the state of the pages between postbacks.
ViewState maintain the session within the same page.
ViewState allows the state of objects to be stored in a hidden field on the
page.
Regards,
Please click here to see more .NET/ASP.NET
interview questions
|
How to use ORDERBY on RowFilter in Asp.Net
Requirement: Where Rows need to show Order wise Ascending or descending in code behind. e.g we are r
|
Add a confirmation popup on button click
have you ever faced situation where you need to get the confirmation from user before execute th
|
Maintain an entered password in textbox after postback
Have you seen that when a post back occurs, the password field empty field empty its value. We may
|
Removing a Solution from Sourcesafe
In Shared environment, developer needs to use some software like VSS. Visual Source Safe. Once you
|
DataView RowFilter with multiple conditions
In Some conditions we need to apply some condition on dataset in code behind. To apply condition
|
CLR environment
It is a component of .NET Framework. It is the environment that manages code execution i.e. it is r
|
Validation on Textbox in Gridview
This tutorial will tell you how to make validations on Textbox in GridView TemplateColumn. To valida
|
Method overloading in webservices
Method overloading comes in basics of OOPS. In Method overloading we multiple methods with same name
|
Unsafe code Example in .net
If you try to run a website with unsafe code (Like pointers) in Asp.net website then compiler will g
|
Send mail using CDO.Message
lt;p><p>
Some time we have requirement that we have to send a mail without SMTP informat
|
How to get value from readonly textbox
I have a situation where user is selecting a date from calendar and With javascript I am entering th
|
Menus not working in Safari and Chrome
The reason for the issue is the rendering way of browsers. To solve these issues in the website you
|
Hide the colum in Gridview
Some times, may have the conditions where developer need to hide the Gridview Column. We need to r
|
Substring
n ASP.Net C# substring string function returns the part of a string starting from the specified star
|
|