I'm Gary Little, a realtor in the small town of Sechelt, British Columbia, located about 40 minutes by ferry from Vancouver. Before returning to Canada a few years...
Today's $10 deal of the day at http://www.apress.com/info/dailydeal is
Ultra-Fast ASP.NET: Building Ultra-Fast and Ultra-Scalable Websites Using ASP.NET and SQL Server by Richard Kessig - ISBN 978-1-4302-2383-2
I won a copy of this book at 101 Books. Richard Kessig is an all-star member of forums.asp.net - see http://forums.asp.net/members/RickNZ.aspx
"
Ultra-Fast ASP.NET provides a practical guide to building extremely fast and scalable web sites using ASP.NET and SQL Server. It strikes a balance between imparting usable advice and backing that advice up with supporting background information.
$49.99 | Published Nov 2009 | Rick Kiessig"
Hi,
I have been searching for image hosting website that displays images of a user in a nice and managed way.
I want to upload the files to that image hosting website in my account of that website from a page in my website.
i.e if i have a website abc.com then user browse my website abc.com. Uploads the file to my website. Now I want to transfer the uploaded file to the image hosting website so that it can be viewed by other users of that hosting website and get better visibility to world
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.
(Cross-posted with the Official Google Code Blog ) With Google I/O 2010 finally upon us, what better time to introduce developers to the latest updates to the Google...
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.
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#.
How should I comment a method?
What are the best practices on commenting code?
Example:
/* Checks if a color is allowed in a given point
* of the bitmapdata of the current floor
* @param value - color to be checked
* @return boolean - if color is allowed returns true, else, return false
*/
private function isAllowed(value:uint):Boolean {
//code...
}
Is that the best way to comment a method?
I´ve heard there´s the use of the tag @see. What should be on this tag?
I wonder if it could be something that has a relation to the method, is that right?
Thanks.
I am currently using a font from the google font directory on my website. I don't fully understand how it works, but it seems like when someone opens my site, their browser is told to go and fetch the font from Google. (correct me if I'm wrong).
Now, what I'm wondering is, what are the pros and cons of this over just specifying a font family the old-school way? Presumably doing it the google font directory way has the advantage that they'll definitely see the font I want them to. (as long as the font directory is up).
But does this way have disadvantages? Maybe using fonts that are stored locally speeds up the site loading?
Very recently I have started to write python scripts that need to connect few databases on mySQL server. The problem is that when I work from office my script works fine but running a script from my home while on office VPN generates connection error.
I also noticed the mySQL client Squirrel also cannot connect from my home but works fine on Office computer. I think both are giving problem for the same reason.
Do I need to create a ssh tunnel and forward the port? If yes how do I do it? mySQL is installed on server I have ssh access.
Please help me on this
AK
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.
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.
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.
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.
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.
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.
I have a dozen server applications installed on my customers intranets (they can send http requests over the internet but cannot be called from outside). They're written in various technologies, mainly java and Go.
I want them to regularly push information about their state towards a central server which is visible on internet. Some of this information is generic (is it ON ?), some is specific (size of a cache in an application for example). The main goal is to be able to make a small web page on which I could instantly check the state of every servers. And maybe later add some kind of notification in case of problem.
Obviously I can do this by writing a few dozen lines of code each side (or a little more if I put this data in a database) but in order to ease future evolution, it could be interesting to use some existing norms or libraries.
So, what are the current opensource free and light solutions to do this, preferably with no central configuration when I add a server ? I'd prefer a norm over a library.
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.
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.
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.
Location, location, location . In case you haven’t noticed, we’re really excited about all the ways location can make mobile apps and websites more useful. With Google Latitude...