|
How to put meta tags in content pages in asp.net
or SEO purpose meta tags are very important. If we are using master pages then we need to add meta t
|
Umbraco error solution : Database connection initialisation failed
hen we try to install Umbraco, can get following error "Database connection initialisation failed."
|
The path '/Umbraco/App_GlobalResources/' maps to a directory outside this application, which is not supported.
his error occured when you run Umbraco. To solve this error, follow below steps. To Go to IIS. Writ
|
Steps to create window service in .net
(1) Open Visual Studio
(2) Create a window service with any name
(3) Now write your logic the
|
Syntax of DataBinder.Eval(Container.DataItem) in code behind
When we want to access the value of row of dataset or make any condition on any value of datalist
|
.NET/ASP.NET interview Questions - Show how to do Render and PreRender?
Answer:
PreRender: - PreRender is an event which is used for modifying server
controls just before sending them to the client.
Render: - Render is an method which actually puts the HTML output to
the response stream.
Lets see an simple example to get an better idea, below is the code snippet
for the same.
To use PreRender event, we have to override it and can make necessary
changes to the controls we want to. protected override void On
|
.NET/ASP.NET interview Questions - Mention us reviewing of code using FxCop in .NET?
Answer:
FxCop is a code analyzer tool which runs on .NET dll file it helps you to
analyze the quality of .NET code. (Quality in terms of coding standards, best
practices etc.)
To view how exactly the FxCop do code review you need to download the FxCop from
MSDN site and install it on your local host machine.
As FxCop runs on .NET dll file you need to add the dll file of your project on
which you want to do code review.
The below diagram will give you an idea of how wi
|
.NET/ASP.NET Interview Question - Unit Testing can be done by using Nunit?
Answer:
Unit testing is validation and verification technology where the developer
tests the individual units of source code. These individual units can be
functions, methods or class.
Below is the simple Math class which has a Add function with two input
parameter. The Add function basically adds the number and gives the addition
of these two numbers.
As a developer we would like to test is this Add function actually works
properly or not .
nam
|
WCF Interview Question - Method to perform Self-Hosting in WCF?
Answer:
The following steps are followed to do Self-hosting.
Step1: //Create a URI to serve as the base address
// Address as well binding
Uri httpUrl = new Uri(" http://localhost:8010/MyService/HelloWorld ");
Step2: //Create ServiceHost
ServiceHost host = new ServiceHost(typeof(ClassLibrary1.HelloWorldService),htt
|
.NET and ASP.NET interview question -Elaborate differentiation between Cache and Application?
Answer:
Application and Cache both help to share global data and cache data
across the users.but cache object is proactive and you can define dependency.In
application object you can't define depenency.
Below is the code for declaring application and cache object.
CacheDependency objCacheDependency = new CacheDependency(Server.MapPath ("Banner.txt"));
Cache.Insert("Banner", strBanner, objCacheDependency); Application["Banner"] = "strBanner";
In the above code,
|
.NET/ASP.NET Interview Question - Various types of Validators?
Answer:
A validator is a computer program used to check the
validity or syntactical correctness of a fragment of code or text.
IN ASP.NET there are six different types of Validators.
1.Required Field Validator.
2.Regular Expression Validator.
3.Compare Validator.
4.Range Validator.
5.CustomValidator.
6.Validation Summary
RequiredFieldValidator:- Ensure that the control
has a value to assign in it or user does not skip an entry.
For Example:- &nbs
|
.NET/ASP.NET Interview Question -What role does Session object play?
.NET/ASP.NET Interview Question -What role does
Session object play?
Answer:
HTTP is a stateless protocol; it can't hold the client information on page.
In other words after every request and response the server does not remember the
state, data and who the user was. If user inserts some information, and move to
the next page, that data will be lost and user would not able to retrieve the
information.So, Session provides that facility to store information on server
memory.
|
w3.org validation error: There is no attribute "border" In Image Button
Solution:
Delete Border properties in Image tag and Implement below procedure.
|
How to bind sqldatasource in code behind
ow to rebind sqldatasource in code behind with dropdown. How to bind sqldatasource at runtime Synt
|
How to add select word at 0 index while using sqldatasource and Dropdownliast
rite the property of dropdownlist. AppendDataBoundItems="true" Now write next line < asp:ListI
|
What is output.RenderEndTag
Tag is used while creating the Custom COntrol. While form renders it Creates HTML and
convert th
|
iTextBox - Convert datalist and image in PDF
Normal
0
MicrosoftInternetExplorer4
|