An ASP.NET rating control....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
The article introduces an innovative approach to develop web forms in enterprise software rather than either ASP.NET or MVC through step by step comparison on development complexity, reusability, performance and maintainability. The approach is implemented as an important UI component of RapidWebDev...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Sharp DOM is a view engine for ASP.NET MVC platform allowing developers to design extendable and maintenable dynamic HTML layouts using C# 4.0 language. It is also possible to use Sharp DOM project to generate HTML layouts outisde of MVC framework....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
The website www.imsuperb.com is looking for an ASP.NET developer to help them out with a site update. This is a contract position that could lead to a full time job. Contact Nick Lynch at [email protected] you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
While creating Web Setup, Visual J# .NET automatically included in the MSI package.When we install this MSI on a server machine which does not have Visual J# .NET installed, installer prompts a message to install Visual J# .NET.
Usually we dont need to install Visual J# .NET and it can be avoided to add into installer. To do this:-
- Open setUp project (.vdproj) file in a text editor.- Find below section for LauchCondition for Visual J# .NET and remove it."LaunchCondition" { "{836E08B8-0285-4809-BA42-01DB6754A45D}:_237E8F40F1A4464FBD27D8992CFDD623" { "Name" = "8:Visual J# .NET" "Condition" = "8:REQ_VJSLIB_VER_PRESENT = \"TRUE\"" "Message" = "8:[VSDVJSMSG]" "InstallUrl" = "8:http://msdn.microsoft.com/vjsharp" } "{836E08B8-0285-4809-BA42-01DB6754A45D}:_DF1CA2119CD64D4B94CE993CF1624ACE" { "Name" = "8:IIS Condition" "Condition" = "8:IISVERSION >= \"#4\"" "Message" = "8:[VSDIISMSG]" "InstallUrl" = "8:" } }- Save .vdproj file and Build again to generate new MSI installer.- Install the MSI on a new machine again where J# does not exist, It should not prompt the same message to install J#.
Retrieving & Processing HTML from Websites in .Net Applications...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
About
ASP.Net MVC
The
ASP.Net MVC is the framework provided by Microsoft that lets you develop the
applications that follows the principles of Model-View-Controller (MVC) design
pattern. The .Net programmers new to MVC thinks that it is similar to WebForms Model (Normal ASP.Net), but it is far
different from the WebForms programming.
This article will tell you how to
quick learn the basics of MVC along with some frequently asked interview
questions and answers on ASP.Net MVC
1.
What is ASP.Net MVC
The ASP.Net MVC is
the framework provided by Microsoft to achieve
separation of concerns that leads to easy maintainability of
the application.
Model is supposed to handle data
related activity
View deals with user
interface related work
Controller is meant for managing the
application flow by communicating between Model and View.
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
2. Why to use ASP.Net MVC
The strength of MVC (i.e. ASP.Net MVC)
listed below will answer this question
MVC reduces the
dependency between the components; this makes your code more testable.
MVC does not
recommend use of server controls, hence the processing time required to
generate HTML response is drastically reduced.
The integration of
java script libraries like jQuery, Microsoft MVC becomes easy as compared to
Webforms approach.
3. What do you mean by Razor
The Razor is the new View engine introduced
in MVC 3.0.
The View engine is responsible for processing the view files [e.g. .aspx,
.cshtml] in order to generate HTML response.
The previous versions of MVC were dependent on ASPX view engine.
4. Can we use ASPX view engine in
latest versions of MVC
Yes. The Recommended way is to prefer
Razor View
5. What are the benefits of
Razor View?
The syntax for server
side code is simplified
The length of code is
drastically reduced
Razor syntax is easy
to learn and reduces the complexity
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
6. What is the extension of Razor
View file?
.cshtml (for c#) and .vbhtml (for vb)
7. How to create a Controller in MVC
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
Create a simple class and extend it
from Controller class. The bare minimum requirement for a class to become a controller is to inherit it from ControllerBase is the class that is required to
inherit to create the controller but Controller class inherits from ControllerBase.
8. How to create an Action method in MVC
Add a simple method inside a controller
class with ActionResult return type.
9. How to access a view on the
server
The browser generates the request in
which the information like Controller name, Action Name and Parameters are
provided, when server receives this URL it resolves the Name of Controller and
Action, after that it calls the specified action with provided parameters. Action
normally does some processing and returns the ViewResult by specifying the view
name (blank name searches according to naming conventions).
10. What is the default Form method
(i.e. GET, POST) for an action method
GET.
To change this you can add an action level attribute e.g [HttpPost]
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
11. What is a Filter in MVC?
When user (browser) sends a request to server
an action method of a controller gets invoked; sometimes you may require executing
a custom code before or after action method gets invoked, this custom code is
called as Filter.
12. What are the different types of Filters
in MVC?
a. Authorization filter
b. Action filter
c. Result filter
d. Exception filter
[Do not forget the order mentioned
above as filters gets executed as per above mentioned sequence]
13. Explain the use of Filter with
an example?
Suppose you are working on a MVC application
where URL is sent in an encrypted format instead of a plain text, once encrypted
URL is received by server it will ignore action parameters because of URL
encryption.
To solve this issue you can create
global action filter by overriding OnActionExecuting method of controller class, in this you
can extract the action parameters from the encrypted URL and these parameters
can be set on filterContext to send plain text parameters to the actions.
14. What is a HTML helper?
A HTML helper is a method that returns string;
return string usually is the HTML tag. The standard HTML helpers (e.g. Html.BeginForm(),Html.TextBox())
available in MVC are
lightweight as it does not rely on event model or view state as that of in ASP.Net
server controls.
Upload Multiple Files in ASP.NET using jQuery...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
981201 ... A hotfix is available for ASP.NET 2.0 that enables support for extended protectionThis RSS feed provided by kbAlerz.com.Visit kbAlertz.com to
subscribe. It's 100% free and you'll be able to recieve e-mail or RSS updates for the technologies you pick
from the Microsoft Knowledge Base....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Quick and easy Active Directory authentication using LDAP and ASP.NET...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
If you upgrade an Azure web instance to use ASP.NET MVC 2, make sure you mark the System.Web.Mvc reference as Copy Local = true. Otherwise, your deployment will fail. And you wont get any good feedback from Windows Azure as to the cause of the problem. So youll start searching the web for help, and perhaps youll stumble on this post, and youll realize that you didnt set Copy Local = true on your System.Web.Mvc assembly reference in your ASP.NET MVC 2 web instance. And youll leave happy (or at least slightly happier) than when you came. That is all.
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Tutorial - How to utilize ASP.NET MultiHandleSlider extender to select year and month in a range, and set the Chart controls in action...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
In this article, Vince examines the creation of an ASP.NET web application that uses the CrystalReportPartsViewer Control to create a drill through report where the user can view summary level data and click on a hyperlink to drill into the details.Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Aspose.Form for .NET now provides full support for InfoPath 2010 controls. Now it is possible to load InfoPath 2010 forms and XSN Templates in .NET Web Applications. Following is the list of InfoPath 2010 controls that are fully supported.
Text Box
Rich Text Box ...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
981266 ... Referenced assemblies of a .NET Framework 2.0-based 32-bit application are loaded multiple timesThis RSS feed provided by kbAlerz.com.Visit kbAlertz.com to
subscribe. It's 100% free and you'll be able to recieve e-mail or RSS updates for the technologies you pick
from the Microsoft Knowledge Base....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
I got Ingo Rammers permission to post this video of one of his Teched EMEA 2008 talks its about hardcore production debugging, and its a wonderful talk. I highly recommend you watch it. Also you should consider getting the book Advanced .NET Debugging its wonderful (though pretty advanced!) FYI, you can find many other .NET and unit testing videos here.
...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Devart has recently announced the release of dotConnect products for Oracle, MySQL, PostgreSQL, and SQLite - ADO.NET providers that offer Entity Framework support, LINQ to SQL support, and contain an ORM model designer for developing LINQ to SQL and EF models based on different database engines.
New dotConnect ADO.NET Providers offer advanced LinqConnect ORM solution (formerly known as Devart LINQ support) closely compatible with Microsoft LINQ to SQL and having its own advanced features.
Devart...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Use Open Office and Sun PDF Import plugin to create PDF forms and display with ASP.NET MVC...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
ASP.NET MVC is a free, fully supported framework to quickly build powerful, standards-based Web sites. Read our What's New in ASP.NET MVC 2 document or visit our ASP.NET MVC section to learn more.
This article explains SortedSet Collection class added in Base Class Libraries (BCL) of .NET 4.0...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Get the .NET code for programmatically converting PowerPoint presentation files into images or HTML files....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Since the version 2.0, the ASP.NET documentation suggests that we should keep our connection strings in web.config. This raises a number of concerns. There is a better way......Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
A step wizard for ASP.net to export database objects to CSV, TXT, HTML, XML, or SQL....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
A step wizard for ASP.net to export database objects to CSV, TXT, HTML, XML, or SQL....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
Class to convert .NET classes into readable debug output with less effort...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.